linux/sound/soc/codecs/wm8985.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * wm8985.h  --  WM8985 ASoC driver
 *
 * Copyright 2010 Wolfson Microelectronics plc
 *
 * Author: Dimitris Papastamos <[email protected]>
 */

#ifndef _WM8985_H
#define _WM8985_H

#define WM8985_SOFTWARE_RESET
#define WM8985_POWER_MANAGEMENT_1
#define WM8985_POWER_MANAGEMENT_2
#define WM8985_POWER_MANAGEMENT_3
#define WM8985_AUDIO_INTERFACE
#define WM8985_COMPANDING_CONTROL
#define WM8985_CLOCK_GEN_CONTROL
#define WM8985_ADDITIONAL_CONTROL
#define WM8985_GPIO_CONTROL
#define WM8985_JACK_DETECT_CONTROL_1
#define WM8985_DAC_CONTROL
#define WM8985_LEFT_DAC_DIGITAL_VOL
#define WM8985_RIGHT_DAC_DIGITAL_VOL
#define WM8985_JACK_DETECT_CONTROL_2
#define WM8985_ADC_CONTROL
#define WM8985_LEFT_ADC_DIGITAL_VOL
#define WM8985_RIGHT_ADC_DIGITAL_VOL
#define WM8985_EQ1_LOW_SHELF
#define WM8985_EQ2_PEAK_1
#define WM8985_EQ3_PEAK_2
#define WM8985_EQ4_PEAK_3
#define WM8985_EQ5_HIGH_SHELF
#define WM8985_DAC_LIMITER_1
#define WM8985_DAC_LIMITER_2
#define WM8985_NOTCH_FILTER_1
#define WM8985_NOTCH_FILTER_2
#define WM8985_NOTCH_FILTER_3
#define WM8985_NOTCH_FILTER_4
#define WM8985_ALC_CONTROL_1
#define WM8985_ALC_CONTROL_2
#define WM8985_ALC_CONTROL_3
#define WM8985_NOISE_GATE
#define WM8985_PLL_N
#define WM8985_PLL_K_1
#define WM8985_PLL_K_2
#define WM8985_PLL_K_3
#define WM8985_3D_CONTROL
#define WM8985_OUT4_TO_ADC
#define WM8985_BEEP_CONTROL
#define WM8985_INPUT_CTRL
#define WM8985_LEFT_INP_PGA_GAIN_CTRL
#define WM8985_RIGHT_INP_PGA_GAIN_CTRL
#define WM8985_LEFT_ADC_BOOST_CTRL
#define WM8985_RIGHT_ADC_BOOST_CTRL
#define WM8985_OUTPUT_CTRL0
#define WM8985_LEFT_MIXER_CTRL
#define WM8985_RIGHT_MIXER_CTRL
#define WM8985_LOUT1_HP_VOLUME_CTRL
#define WM8985_ROUT1_HP_VOLUME_CTRL
#define WM8985_LOUT2_SPK_VOLUME_CTRL
#define WM8985_ROUT2_SPK_VOLUME_CTRL
#define WM8985_OUT3_MIXER_CTRL
#define WM8985_OUT4_MONO_MIX_CTRL
#define WM8985_OUTPUT_CTRL1
#define WM8985_BIAS_CTRL

#define WM8985_REGISTER_COUNT
#define WM8985_MAX_REGISTER

/*
 * Field Definitions.
 */

/*
 * R0 (0x00) - Software Reset
 */
#define WM8985_SOFTWARE_RESET_MASK
#define WM8985_SOFTWARE_RESET_SHIFT
#define WM8985_SOFTWARE_RESET_WIDTH

/*
 * R1 (0x01) - Power management 1
 */
#define WM8985_OUT4MIXEN
#define WM8985_OUT4MIXEN_MASK
#define WM8985_OUT4MIXEN_SHIFT
#define WM8985_OUT4MIXEN_WIDTH
#define WM8985_OUT3MIXEN
#define WM8985_OUT3MIXEN_MASK
#define WM8985_OUT3MIXEN_SHIFT
#define WM8985_OUT3MIXEN_WIDTH
#define WM8985_PLLEN
#define WM8985_PLLEN_MASK
#define WM8985_PLLEN_SHIFT
#define WM8985_PLLEN_WIDTH
#define WM8985_MICBEN
#define WM8985_MICBEN_MASK
#define WM8985_MICBEN_SHIFT
#define WM8985_MICBEN_WIDTH
#define WM8985_BIASEN
#define WM8985_BIASEN_MASK
#define WM8985_BIASEN_SHIFT
#define WM8985_BIASEN_WIDTH
#define WM8985_BUFIOEN
#define WM8985_BUFIOEN_MASK
#define WM8985_BUFIOEN_SHIFT
#define WM8985_BUFIOEN_WIDTH
#define WM8985_VMIDSEL
#define WM8985_VMIDSEL_MASK
#define WM8985_VMIDSEL_SHIFT
#define WM8985_VMIDSEL_WIDTH

/*
 * R2 (0x02) - Power management 2
 */
#define WM8985_ROUT1EN
#define WM8985_ROUT1EN_MASK
#define WM8985_ROUT1EN_SHIFT
#define WM8985_ROUT1EN_WIDTH
#define WM8985_LOUT1EN
#define WM8985_LOUT1EN_MASK
#define WM8985_LOUT1EN_SHIFT
#define WM8985_LOUT1EN_WIDTH
#define WM8985_SLEEP
#define WM8985_SLEEP_MASK
#define WM8985_SLEEP_SHIFT
#define WM8985_SLEEP_WIDTH
#define WM8985_BOOSTENR
#define WM8985_BOOSTENR_MASK
#define WM8985_BOOSTENR_SHIFT
#define WM8985_BOOSTENR_WIDTH
#define WM8985_BOOSTENL
#define WM8985_BOOSTENL_MASK
#define WM8985_BOOSTENL_SHIFT
#define WM8985_BOOSTENL_WIDTH
#define WM8985_INPGAENR
#define WM8985_INPGAENR_MASK
#define WM8985_INPGAENR_SHIFT
#define WM8985_INPGAENR_WIDTH
#define WM8985_INPPGAENL
#define WM8985_INPPGAENL_MASK
#define WM8985_INPPGAENL_SHIFT
#define WM8985_INPPGAENL_WIDTH
#define WM8985_ADCENR
#define WM8985_ADCENR_MASK
#define WM8985_ADCENR_SHIFT
#define WM8985_ADCENR_WIDTH
#define WM8985_ADCENL
#define WM8985_ADCENL_MASK
#define WM8985_ADCENL_SHIFT
#define WM8985_ADCENL_WIDTH

/*
 * R3 (0x03) - Power management 3
 */
#define WM8985_OUT4EN
#define WM8985_OUT4EN_MASK
#define WM8985_OUT4EN_SHIFT
#define WM8985_OUT4EN_WIDTH
#define WM8985_OUT3EN
#define WM8985_OUT3EN_MASK
#define WM8985_OUT3EN_SHIFT
#define WM8985_OUT3EN_WIDTH
#define WM8985_ROUT2EN
#define WM8985_ROUT2EN_MASK
#define WM8985_ROUT2EN_SHIFT
#define WM8985_ROUT2EN_WIDTH
#define WM8985_LOUT2EN
#define WM8985_LOUT2EN_MASK
#define WM8985_LOUT2EN_SHIFT
#define WM8985_LOUT2EN_WIDTH
#define WM8985_RMIXEN
#define WM8985_RMIXEN_MASK
#define WM8985_RMIXEN_SHIFT
#define WM8985_RMIXEN_WIDTH
#define WM8985_LMIXEN
#define WM8985_LMIXEN_MASK
#define WM8985_LMIXEN_SHIFT
#define WM8985_LMIXEN_WIDTH
#define WM8985_DACENR
#define WM8985_DACENR_MASK
#define WM8985_DACENR_SHIFT
#define WM8985_DACENR_WIDTH
#define WM8985_DACENL
#define WM8985_DACENL_MASK
#define WM8985_DACENL_SHIFT
#define WM8985_DACENL_WIDTH

/*
 * R4 (0x04) - Audio Interface
 */
#define WM8985_BCP
#define WM8985_BCP_MASK
#define WM8985_BCP_SHIFT
#define WM8985_BCP_WIDTH
#define WM8985_LRP
#define WM8985_LRP_MASK
#define WM8985_LRP_SHIFT
#define WM8985_LRP_WIDTH
#define WM8985_WL_MASK
#define WM8985_WL_SHIFT
#define WM8985_WL_WIDTH
#define WM8985_FMT_MASK
#define WM8985_FMT_SHIFT
#define WM8985_FMT_WIDTH
#define WM8985_DLRSWAP
#define WM8985_DLRSWAP_MASK
#define WM8985_DLRSWAP_SHIFT
#define WM8985_DLRSWAP_WIDTH
#define WM8985_ALRSWAP
#define WM8985_ALRSWAP_MASK
#define WM8985_ALRSWAP_SHIFT
#define WM8985_ALRSWAP_WIDTH
#define WM8985_MONO
#define WM8985_MONO_MASK
#define WM8985_MONO_SHIFT
#define WM8985_MONO_WIDTH

/*
 * R5 (0x05) - Companding control
 */
#define WM8985_WL8
#define WM8985_WL8_MASK
#define WM8985_WL8_SHIFT
#define WM8985_WL8_WIDTH
#define WM8985_DAC_COMP_MASK
#define WM8985_DAC_COMP_SHIFT
#define WM8985_DAC_COMP_WIDTH
#define WM8985_ADC_COMP_MASK
#define WM8985_ADC_COMP_SHIFT
#define WM8985_ADC_COMP_WIDTH
#define WM8985_LOOPBACK
#define WM8985_LOOPBACK_MASK
#define WM8985_LOOPBACK_SHIFT
#define WM8985_LOOPBACK_WIDTH

/*
 * R6 (0x06) - Clock Gen control
 */
#define WM8985_CLKSEL
#define WM8985_CLKSEL_MASK
#define WM8985_CLKSEL_SHIFT
#define WM8985_CLKSEL_WIDTH
#define WM8985_MCLKDIV_MASK
#define WM8985_MCLKDIV_SHIFT
#define WM8985_MCLKDIV_WIDTH
#define WM8985_BCLKDIV_MASK
#define WM8985_BCLKDIV_SHIFT
#define WM8985_BCLKDIV_WIDTH
#define WM8985_MS
#define WM8985_MS_MASK
#define WM8985_MS_SHIFT
#define WM8985_MS_WIDTH

/*
 * R7 (0x07) - Additional control
 */
#define WM8985_M128ENB
#define WM8985_M128ENB_MASK
#define WM8985_M128ENB_SHIFT
#define WM8985_M128ENB_WIDTH
#define WM8985_DCLKDIV_MASK
#define WM8985_DCLKDIV_SHIFT
#define WM8985_DCLKDIV_WIDTH
#define WM8985_SR_MASK
#define WM8985_SR_SHIFT
#define WM8985_SR_WIDTH
#define WM8985_SLOWCLKEN
#define WM8985_SLOWCLKEN_MASK
#define WM8985_SLOWCLKEN_SHIFT
#define WM8985_SLOWCLKEN_WIDTH

/*
 * R8 (0x08) - GPIO Control
 */
#define WM8985_GPIO1GP
#define WM8985_GPIO1GP_MASK
#define WM8985_GPIO1GP_SHIFT
#define WM8985_GPIO1GP_WIDTH
#define WM8985_GPIO1GPU
#define WM8985_GPIO1GPU_MASK
#define WM8985_GPIO1GPU_SHIFT
#define WM8985_GPIO1GPU_WIDTH
#define WM8985_GPIO1GPD
#define WM8985_GPIO1GPD_MASK
#define WM8985_GPIO1GPD_SHIFT
#define WM8985_GPIO1GPD_WIDTH
#define WM8758_OPCLKDIV_MASK
#define WM8758_OPCLKDIV_SHIFT
#define WM8758_OPCLKDIV_WIDTH
#define WM8985_GPIO1POL
#define WM8985_GPIO1POL_MASK
#define WM8985_GPIO1POL_SHIFT
#define WM8985_GPIO1POL_WIDTH
#define WM8985_GPIO1SEL_MASK
#define WM8985_GPIO1SEL_SHIFT
#define WM8985_GPIO1SEL_WIDTH

/*
 * R9 (0x09) - Jack Detect Control 1
 */
#define WM8758_JD_VMID1_MASK
#define WM8758_JD_VMID1_SHIFT
#define WM8758_JD_VMID1_WIDTH
#define WM8758_JD_VMID0_MASK
#define WM8758_JD_VMID0_SHIFT
#define WM8758_JD_VMID0_WIDTH
#define WM8985_JD_EN
#define WM8985_JD_EN_MASK
#define WM8985_JD_EN_SHIFT
#define WM8985_JD_EN_WIDTH
#define WM8985_JD_SEL_MASK
#define WM8985_JD_SEL_SHIFT
#define WM8985_JD_SEL_WIDTH

/*
 * R10 (0x0A) - DAC Control
 */
#define WM8985_SOFTMUTE
#define WM8985_SOFTMUTE_MASK
#define WM8985_SOFTMUTE_SHIFT
#define WM8985_SOFTMUTE_WIDTH
#define WM8985_DACOSR128
#define WM8985_DACOSR128_MASK
#define WM8985_DACOSR128_SHIFT
#define WM8985_DACOSR128_WIDTH
#define WM8985_AMUTE
#define WM8985_AMUTE_MASK
#define WM8985_AMUTE_SHIFT
#define WM8985_AMUTE_WIDTH
#define WM8985_DACPOLR
#define WM8985_DACPOLR_MASK
#define WM8985_DACPOLR_SHIFT
#define WM8985_DACPOLR_WIDTH
#define WM8985_DACPOLL
#define WM8985_DACPOLL_MASK
#define WM8985_DACPOLL_SHIFT
#define WM8985_DACPOLL_WIDTH

/*
 * R11 (0x0B) - Left DAC digital Vol
 */
#define WM8985_DACVU
#define WM8985_DACVU_MASK
#define WM8985_DACVU_SHIFT
#define WM8985_DACVU_WIDTH
#define WM8985_DACVOLL_MASK
#define WM8985_DACVOLL_SHIFT
#define WM8985_DACVOLL_WIDTH

/*
 * R12 (0x0C) - Right DAC digital vol
 */
#define WM8985_DACVU
#define WM8985_DACVU_MASK
#define WM8985_DACVU_SHIFT
#define WM8985_DACVU_WIDTH
#define WM8985_DACVOLR_MASK
#define WM8985_DACVOLR_SHIFT
#define WM8985_DACVOLR_WIDTH

/*
 * R13 (0x0D) - Jack Detect Control 2
 */
#define WM8985_JD_EN1_MASK
#define WM8985_JD_EN1_SHIFT
#define WM8985_JD_EN1_WIDTH
#define WM8985_JD_EN0_MASK
#define WM8985_JD_EN0_SHIFT
#define WM8985_JD_EN0_WIDTH

/*
 * R14 (0x0E) - ADC Control
 */
#define WM8985_HPFEN
#define WM8985_HPFEN_MASK
#define WM8985_HPFEN_SHIFT
#define WM8985_HPFEN_WIDTH
#define WM8985_HPFAPP
#define WM8985_HPFAPP_MASK
#define WM8985_HPFAPP_SHIFT
#define WM8985_HPFAPP_WIDTH
#define WM8985_HPFCUT_MASK
#define WM8985_HPFCUT_SHIFT
#define WM8985_HPFCUT_WIDTH
#define WM8985_ADCOSR128
#define WM8985_ADCOSR128_MASK
#define WM8985_ADCOSR128_SHIFT
#define WM8985_ADCOSR128_WIDTH
#define WM8985_ADCRPOL
#define WM8985_ADCRPOL_MASK
#define WM8985_ADCRPOL_SHIFT
#define WM8985_ADCRPOL_WIDTH
#define WM8985_ADCLPOL
#define WM8985_ADCLPOL_MASK
#define WM8985_ADCLPOL_SHIFT
#define WM8985_ADCLPOL_WIDTH

/*
 * R15 (0x0F) - Left ADC Digital Vol
 */
#define WM8985_ADCVU
#define WM8985_ADCVU_MASK
#define WM8985_ADCVU_SHIFT
#define WM8985_ADCVU_WIDTH
#define WM8985_ADCVOLL_MASK
#define WM8985_ADCVOLL_SHIFT
#define WM8985_ADCVOLL_WIDTH

/*
 * R16 (0x10) - Right ADC Digital Vol
 */
#define WM8985_ADCVU
#define WM8985_ADCVU_MASK
#define WM8985_ADCVU_SHIFT
#define WM8985_ADCVU_WIDTH
#define WM8985_ADCVOLR_MASK
#define WM8985_ADCVOLR_SHIFT
#define WM8985_ADCVOLR_WIDTH

/*
 * R18 (0x12) - EQ1 - low shelf
 */
#define WM8985_EQ3DMODE
#define WM8985_EQ3DMODE_MASK
#define WM8985_EQ3DMODE_SHIFT
#define WM8985_EQ3DMODE_WIDTH
#define WM8985_EQ1C_MASK
#define WM8985_EQ1C_SHIFT
#define WM8985_EQ1C_WIDTH
#define WM8985_EQ1G_MASK
#define WM8985_EQ1G_SHIFT
#define WM8985_EQ1G_WIDTH

/*
 * R19 (0x13) - EQ2 - peak 1
 */
#define WM8985_EQ2BW
#define WM8985_EQ2BW_MASK
#define WM8985_EQ2BW_SHIFT
#define WM8985_EQ2BW_WIDTH
#define WM8985_EQ2C_MASK
#define WM8985_EQ2C_SHIFT
#define WM8985_EQ2C_WIDTH
#define WM8985_EQ2G_MASK
#define WM8985_EQ2G_SHIFT
#define WM8985_EQ2G_WIDTH

/*
 * R20 (0x14) - EQ3 - peak 2
 */
#define WM8985_EQ3BW
#define WM8985_EQ3BW_MASK
#define WM8985_EQ3BW_SHIFT
#define WM8985_EQ3BW_WIDTH
#define WM8985_EQ3C_MASK
#define WM8985_EQ3C_SHIFT
#define WM8985_EQ3C_WIDTH
#define WM8985_EQ3G_MASK
#define WM8985_EQ3G_SHIFT
#define WM8985_EQ3G_WIDTH

/*
 * R21 (0x15) - EQ4 - peak 3
 */
#define WM8985_EQ4BW
#define WM8985_EQ4BW_MASK
#define WM8985_EQ4BW_SHIFT
#define WM8985_EQ4BW_WIDTH
#define WM8985_EQ4C_MASK
#define WM8985_EQ4C_SHIFT
#define WM8985_EQ4C_WIDTH
#define WM8985_EQ4G_MASK
#define WM8985_EQ4G_SHIFT
#define WM8985_EQ4G_WIDTH

/*
 * R22 (0x16) - EQ5 - high shelf
 */
#define WM8985_EQ5C_MASK
#define WM8985_EQ5C_SHIFT
#define WM8985_EQ5C_WIDTH
#define WM8985_EQ5G_MASK
#define WM8985_EQ5G_SHIFT
#define WM8985_EQ5G_WIDTH

/*
 * R24 (0x18) - DAC Limiter 1
 */
#define WM8985_LIMEN
#define WM8985_LIMEN_MASK
#define WM8985_LIMEN_SHIFT
#define WM8985_LIMEN_WIDTH
#define WM8985_LIMDCY_MASK
#define WM8985_LIMDCY_SHIFT
#define WM8985_LIMDCY_WIDTH
#define WM8985_LIMATK_MASK
#define WM8985_LIMATK_SHIFT
#define WM8985_LIMATK_WIDTH

/*
 * R25 (0x19) - DAC Limiter 2
 */
#define WM8985_LIMLVL_MASK
#define WM8985_LIMLVL_SHIFT
#define WM8985_LIMLVL_WIDTH
#define WM8985_LIMBOOST_MASK
#define WM8985_LIMBOOST_SHIFT
#define WM8985_LIMBOOST_WIDTH

/*
 * R27 (0x1B) - Notch Filter 1
 */
#define WM8985_NFU
#define WM8985_NFU_MASK
#define WM8985_NFU_SHIFT
#define WM8985_NFU_WIDTH
#define WM8985_NFEN
#define WM8985_NFEN_MASK
#define WM8985_NFEN_SHIFT
#define WM8985_NFEN_WIDTH
#define WM8985_NFA0_13_7_MASK
#define WM8985_NFA0_13_7_SHIFT
#define WM8985_NFA0_13_7_WIDTH

/*
 * R28 (0x1C) - Notch Filter 2
 */
#define WM8985_NFU
#define WM8985_NFU_MASK
#define WM8985_NFU_SHIFT
#define WM8985_NFU_WIDTH
#define WM8985_NFA0_6_0_MASK
#define WM8985_NFA0_6_0_SHIFT
#define WM8985_NFA0_6_0_WIDTH

/*
 * R29 (0x1D) - Notch Filter 3
 */
#define WM8985_NFU
#define WM8985_NFU_MASK
#define WM8985_NFU_SHIFT
#define WM8985_NFU_WIDTH
#define WM8985_NFA1_13_7_MASK
#define WM8985_NFA1_13_7_SHIFT
#define WM8985_NFA1_13_7_WIDTH

/*
 * R30 (0x1E) - Notch Filter 4
 */
#define WM8985_NFU
#define WM8985_NFU_MASK
#define WM8985_NFU_SHIFT
#define WM8985_NFU_WIDTH
#define WM8985_NFA1_6_0_MASK
#define WM8985_NFA1_6_0_SHIFT
#define WM8985_NFA1_6_0_WIDTH

/*
 * R32 (0x20) - ALC control 1
 */
#define WM8985_ALCSEL_MASK
#define WM8985_ALCSEL_SHIFT
#define WM8985_ALCSEL_WIDTH
#define WM8985_ALCMAX_MASK
#define WM8985_ALCMAX_SHIFT
#define WM8985_ALCMAX_WIDTH
#define WM8985_ALCMIN_MASK
#define WM8985_ALCMIN_SHIFT
#define WM8985_ALCMIN_WIDTH

/*
 * R33 (0x21) - ALC control 2
 */
#define WM8985_ALCHLD_MASK
#define WM8985_ALCHLD_SHIFT
#define WM8985_ALCHLD_WIDTH
#define WM8985_ALCLVL_MASK
#define WM8985_ALCLVL_SHIFT
#define WM8985_ALCLVL_WIDTH

/*
 * R34 (0x22) - ALC control 3
 */
#define WM8985_ALCMODE
#define WM8985_ALCMODE_MASK
#define WM8985_ALCMODE_SHIFT
#define WM8985_ALCMODE_WIDTH
#define WM8985_ALCDCY_MASK
#define WM8985_ALCDCY_SHIFT
#define WM8985_ALCDCY_WIDTH
#define WM8985_ALCATK_MASK
#define WM8985_ALCATK_SHIFT
#define WM8985_ALCATK_WIDTH

/*
 * R35 (0x23) - Noise Gate
 */
#define WM8985_NGEN
#define WM8985_NGEN_MASK
#define WM8985_NGEN_SHIFT
#define WM8985_NGEN_WIDTH
#define WM8985_NGTH_MASK
#define WM8985_NGTH_SHIFT
#define WM8985_NGTH_WIDTH

/*
 * R36 (0x24) - PLL N
 */
#define WM8985_PLL_PRESCALE
#define WM8985_PLL_PRESCALE_MASK
#define WM8985_PLL_PRESCALE_SHIFT
#define WM8985_PLL_PRESCALE_WIDTH
#define WM8985_PLLN_MASK
#define WM8985_PLLN_SHIFT
#define WM8985_PLLN_WIDTH

/*
 * R37 (0x25) - PLL K 1
 */
#define WM8985_PLLK_23_18_MASK
#define WM8985_PLLK_23_18_SHIFT
#define WM8985_PLLK_23_18_WIDTH

/*
 * R38 (0x26) - PLL K 2
 */
#define WM8985_PLLK_17_9_MASK
#define WM8985_PLLK_17_9_SHIFT
#define WM8985_PLLK_17_9_WIDTH

/*
 * R39 (0x27) - PLL K 3
 */
#define WM8985_PLLK_8_0_MASK
#define WM8985_PLLK_8_0_SHIFT
#define WM8985_PLLK_8_0_WIDTH

/*
 * R41 (0x29) - 3D control
 */
#define WM8985_DEPTH3D_MASK
#define WM8985_DEPTH3D_SHIFT
#define WM8985_DEPTH3D_WIDTH

/*
 * R42 (0x2A) - OUT4 to ADC
 */
#define WM8985_OUT4_2ADCVOL_MASK
#define WM8985_OUT4_2ADCVOL_SHIFT
#define WM8985_OUT4_2ADCVOL_WIDTH
#define WM8985_OUT4_2LNR
#define WM8985_OUT4_2LNR_MASK
#define WM8985_OUT4_2LNR_SHIFT
#define WM8985_OUT4_2LNR_WIDTH
#define WM8758_VMIDTOG_MASK
#define WM8758_VMIDTOG_SHIFT
#define WM8758_VMIDTOG_WIDTH
#define WM8758_OUT2DEL_MASK
#define WM8758_OUT2DEL_SHIFT
#define WM8758_OUT2DEL_WIDTH
#define WM8985_POBCTRL
#define WM8985_POBCTRL_MASK
#define WM8985_POBCTRL_SHIFT
#define WM8985_POBCTRL_WIDTH
#define WM8985_DELEN
#define WM8985_DELEN_MASK
#define WM8985_DELEN_SHIFT
#define WM8985_DELEN_WIDTH
#define WM8985_OUT1DEL
#define WM8985_OUT1DEL_MASK
#define WM8985_OUT1DEL_SHIFT
#define WM8985_OUT1DEL_WIDTH

/*
 * R43 (0x2B) - Beep control
 */
#define WM8985_BYPL2RMIX
#define WM8985_BYPL2RMIX_MASK
#define WM8985_BYPL2RMIX_SHIFT
#define WM8985_BYPL2RMIX_WIDTH
#define WM8985_BYPR2LMIX
#define WM8985_BYPR2LMIX_MASK
#define WM8985_BYPR2LMIX_SHIFT
#define WM8985_BYPR2LMIX_WIDTH
#define WM8985_MUTERPGA2INV
#define WM8985_MUTERPGA2INV_MASK
#define WM8985_MUTERPGA2INV_SHIFT
#define WM8985_MUTERPGA2INV_WIDTH
#define WM8985_INVROUT2
#define WM8985_INVROUT2_MASK
#define WM8985_INVROUT2_SHIFT
#define WM8985_INVROUT2_WIDTH
#define WM8985_BEEPVOL_MASK
#define WM8985_BEEPVOL_SHIFT
#define WM8985_BEEPVOL_WIDTH
#define WM8758_DELEN2_MASK
#define WM8758_DELEN2_SHIFT
#define WM8758_DELEN2_WIDTH
#define WM8985_BEEPEN
#define WM8985_BEEPEN_MASK
#define WM8985_BEEPEN_SHIFT
#define WM8985_BEEPEN_WIDTH

/*
 * R44 (0x2C) - Input ctrl
 */
#define WM8985_MBVSEL
#define WM8985_MBVSEL_MASK
#define WM8985_MBVSEL_SHIFT
#define WM8985_MBVSEL_WIDTH
#define WM8985_R2_2INPPGA
#define WM8985_R2_2INPPGA_MASK
#define WM8985_R2_2INPPGA_SHIFT
#define WM8985_R2_2INPPGA_WIDTH
#define WM8985_RIN2INPPGA
#define WM8985_RIN2INPPGA_MASK
#define WM8985_RIN2INPPGA_SHIFT
#define WM8985_RIN2INPPGA_WIDTH
#define WM8985_RIP2INPPGA
#define WM8985_RIP2INPPGA_MASK
#define WM8985_RIP2INPPGA_SHIFT
#define WM8985_RIP2INPPGA_WIDTH
#define WM8985_L2_2INPPGA
#define WM8985_L2_2INPPGA_MASK
#define WM8985_L2_2INPPGA_SHIFT
#define WM8985_L2_2INPPGA_WIDTH
#define WM8985_LIN2INPPGA
#define WM8985_LIN2INPPGA_MASK
#define WM8985_LIN2INPPGA_SHIFT
#define WM8985_LIN2INPPGA_WIDTH
#define WM8985_LIP2INPPGA
#define WM8985_LIP2INPPGA_MASK
#define WM8985_LIP2INPPGA_SHIFT
#define WM8985_LIP2INPPGA_WIDTH

/*
 * R45 (0x2D) - Left INP PGA gain ctrl
 */
#define WM8985_INPGAVU
#define WM8985_INPGAVU_MASK
#define WM8985_INPGAVU_SHIFT
#define WM8985_INPGAVU_WIDTH
#define WM8985_INPPGAZCL
#define WM8985_INPPGAZCL_MASK
#define WM8985_INPPGAZCL_SHIFT
#define WM8985_INPPGAZCL_WIDTH
#define WM8985_INPPGAMUTEL
#define WM8985_INPPGAMUTEL_MASK
#define WM8985_INPPGAMUTEL_SHIFT
#define WM8985_INPPGAMUTEL_WIDTH
#define WM8985_INPPGAVOLL_MASK
#define WM8985_INPPGAVOLL_SHIFT
#define WM8985_INPPGAVOLL_WIDTH

/*
 * R46 (0x2E) - Right INP PGA gain ctrl
 */
#define WM8985_INPGAVU
#define WM8985_INPGAVU_MASK
#define WM8985_INPGAVU_SHIFT
#define WM8985_INPGAVU_WIDTH
#define WM8985_INPPGAZCR
#define WM8985_INPPGAZCR_MASK
#define WM8985_INPPGAZCR_SHIFT
#define WM8985_INPPGAZCR_WIDTH
#define WM8985_INPPGAMUTER
#define WM8985_INPPGAMUTER_MASK
#define WM8985_INPPGAMUTER_SHIFT
#define WM8985_INPPGAMUTER_WIDTH
#define WM8985_INPPGAVOLR_MASK
#define WM8985_INPPGAVOLR_SHIFT
#define WM8985_INPPGAVOLR_WIDTH

/*
 * R47 (0x2F) - Left ADC BOOST ctrl
 */
#define WM8985_PGABOOSTL
#define WM8985_PGABOOSTL_MASK
#define WM8985_PGABOOSTL_SHIFT
#define WM8985_PGABOOSTL_WIDTH
#define WM8985_L2_2BOOSTVOL_MASK
#define WM8985_L2_2BOOSTVOL_SHIFT
#define WM8985_L2_2BOOSTVOL_WIDTH
#define WM8985_AUXL2BOOSTVOL_MASK
#define WM8985_AUXL2BOOSTVOL_SHIFT
#define WM8985_AUXL2BOOSTVOL_WIDTH

/*
 * R48 (0x30) - Right ADC BOOST ctrl
 */
#define WM8985_PGABOOSTR
#define WM8985_PGABOOSTR_MASK
#define WM8985_PGABOOSTR_SHIFT
#define WM8985_PGABOOSTR_WIDTH
#define WM8985_R2_2BOOSTVOL_MASK
#define WM8985_R2_2BOOSTVOL_SHIFT
#define WM8985_R2_2BOOSTVOL_WIDTH
#define WM8985_AUXR2BOOSTVOL_MASK
#define WM8985_AUXR2BOOSTVOL_SHIFT
#define WM8985_AUXR2BOOSTVOL_WIDTH

/*
 * R49 (0x31) - Output ctrl
 */
#define WM8758_HP_COM
#define WM8758_HP_COM_MASK
#define WM8758_HP_COM_SHIFT
#define WM8758_HP_COM_WIDTH
#define WM8758_LINE_COM
#define WM8758_LINE_COM_MASK
#define WM8758_LINE_COM_SHIFT
#define WM8758_LINE_COM_WIDTH
#define WM8985_DACL2RMIX
#define WM8985_DACL2RMIX_MASK
#define WM8985_DACL2RMIX_SHIFT
#define WM8985_DACL2RMIX_WIDTH
#define WM8985_DACR2LMIX
#define WM8985_DACR2LMIX_MASK
#define WM8985_DACR2LMIX_SHIFT
#define WM8985_DACR2LMIX_WIDTH
#define WM8985_OUT4BOOST
#define WM8985_OUT4BOOST_MASK
#define WM8985_OUT4BOOST_SHIFT
#define WM8985_OUT4BOOST_WIDTH
#define WM8985_OUT3BOOST
#define WM8985_OUT3BOOST_MASK
#define WM8985_OUT3BOOST_SHIFT
#define WM8985_OUT3BOOST_WIDTH
#define WM8758_OUT4ENDEL
#define WM8758_OUT4ENDEL_MASK
#define WM8758_OUT4ENDEL_SHIFT
#define WM8758_OUT4ENDEL_WIDTH
#define WM8758_OUT3ENDEL
#define WM8758_OUT3ENDEL_MASK
#define WM8758_OUT3ENDEL_SHIFT
#define WM8758_OUT3ENDEL_WIDTH
#define WM8985_TSOPCTRL
#define WM8985_TSOPCTRL_MASK
#define WM8985_TSOPCTRL_SHIFT
#define WM8985_TSOPCTRL_WIDTH
#define WM8985_TSDEN
#define WM8985_TSDEN_MASK
#define WM8985_TSDEN_SHIFT
#define WM8985_TSDEN_WIDTH
#define WM8985_VROI
#define WM8985_VROI_MASK
#define WM8985_VROI_SHIFT
#define WM8985_VROI_WIDTH

/*
 * R50 (0x32) - Left mixer ctrl
 */
#define WM8985_AUXLMIXVOL_MASK
#define WM8985_AUXLMIXVOL_SHIFT
#define WM8985_AUXLMIXVOL_WIDTH
#define WM8985_AUXL2LMIX
#define WM8985_AUXL2LMIX_MASK
#define WM8985_AUXL2LMIX_SHIFT
#define WM8985_AUXL2LMIX_WIDTH
#define WM8985_BYPLMIXVOL_MASK
#define WM8985_BYPLMIXVOL_SHIFT
#define WM8985_BYPLMIXVOL_WIDTH
#define WM8985_BYPL2LMIX
#define WM8985_BYPL2LMIX_MASK
#define WM8985_BYPL2LMIX_SHIFT
#define WM8985_BYPL2LMIX_WIDTH
#define WM8985_DACL2LMIX
#define WM8985_DACL2LMIX_MASK
#define WM8985_DACL2LMIX_SHIFT
#define WM8985_DACL2LMIX_WIDTH

/*
 * R51 (0x33) - Right mixer ctrl
 */
#define WM8985_AUXRMIXVOL_MASK
#define WM8985_AUXRMIXVOL_SHIFT
#define WM8985_AUXRMIXVOL_WIDTH
#define WM8985_AUXR2RMIX
#define WM8985_AUXR2RMIX_MASK
#define WM8985_AUXR2RMIX_SHIFT
#define WM8985_AUXR2RMIX_WIDTH
#define WM8985_BYPRMIXVOL_MASK
#define WM8985_BYPRMIXVOL_SHIFT
#define WM8985_BYPRMIXVOL_WIDTH
#define WM8985_BYPR2RMIX
#define WM8985_BYPR2RMIX_MASK
#define WM8985_BYPR2RMIX_SHIFT
#define WM8985_BYPR2RMIX_WIDTH
#define WM8985_DACR2RMIX
#define WM8985_DACR2RMIX_MASK
#define WM8985_DACR2RMIX_SHIFT
#define WM8985_DACR2RMIX_WIDTH

/*
 * R52 (0x34) - LOUT1 (HP) volume ctrl
 */
#define WM8985_OUT1VU
#define WM8985_OUT1VU_MASK
#define WM8985_OUT1VU_SHIFT
#define WM8985_OUT1VU_WIDTH
#define WM8985_LOUT1ZC
#define WM8985_LOUT1ZC_MASK
#define WM8985_LOUT1ZC_SHIFT
#define WM8985_LOUT1ZC_WIDTH
#define WM8985_LOUT1MUTE
#define WM8985_LOUT1MUTE_MASK
#define WM8985_LOUT1MUTE_SHIFT
#define WM8985_LOUT1MUTE_WIDTH
#define WM8985_LOUT1VOL_MASK
#define WM8985_LOUT1VOL_SHIFT
#define WM8985_LOUT1VOL_WIDTH

/*
 * R53 (0x35) - ROUT1 (HP) volume ctrl
 */
#define WM8985_OUT1VU
#define WM8985_OUT1VU_MASK
#define WM8985_OUT1VU_SHIFT
#define WM8985_OUT1VU_WIDTH
#define WM8985_ROUT1ZC
#define WM8985_ROUT1ZC_MASK
#define WM8985_ROUT1ZC_SHIFT
#define WM8985_ROUT1ZC_WIDTH
#define WM8985_ROUT1MUTE
#define WM8985_ROUT1MUTE_MASK
#define WM8985_ROUT1MUTE_SHIFT
#define WM8985_ROUT1MUTE_WIDTH
#define WM8985_ROUT1VOL_MASK
#define WM8985_ROUT1VOL_SHIFT
#define WM8985_ROUT1VOL_WIDTH

/*
 * R54 (0x36) - LOUT2 (SPK) volume ctrl
 */
#define WM8985_OUT2VU
#define WM8985_OUT2VU_MASK
#define WM8985_OUT2VU_SHIFT
#define WM8985_OUT2VU_WIDTH
#define WM8985_LOUT2ZC
#define WM8985_LOUT2ZC_MASK
#define WM8985_LOUT2ZC_SHIFT
#define WM8985_LOUT2ZC_WIDTH
#define WM8985_LOUT2MUTE
#define WM8985_LOUT2MUTE_MASK
#define WM8985_LOUT2MUTE_SHIFT
#define WM8985_LOUT2MUTE_WIDTH
#define WM8985_LOUT2VOL_MASK
#define WM8985_LOUT2VOL_SHIFT
#define WM8985_LOUT2VOL_WIDTH

/*
 * R55 (0x37) - ROUT2 (SPK) volume ctrl
 */
#define WM8985_OUT2VU
#define WM8985_OUT2VU_MASK
#define WM8985_OUT2VU_SHIFT
#define WM8985_OUT2VU_WIDTH
#define WM8985_ROUT2ZC
#define WM8985_ROUT2ZC_MASK
#define WM8985_ROUT2ZC_SHIFT
#define WM8985_ROUT2ZC_WIDTH
#define WM8985_ROUT2MUTE
#define WM8985_ROUT2MUTE_MASK
#define WM8985_ROUT2MUTE_SHIFT
#define WM8985_ROUT2MUTE_WIDTH
#define WM8985_ROUT2VOL_MASK
#define WM8985_ROUT2VOL_SHIFT
#define WM8985_ROUT2VOL_WIDTH

/*
 * R56 (0x38) - OUT3 mixer ctrl
 */
#define WM8985_OUT3MUTE
#define WM8985_OUT3MUTE_MASK
#define WM8985_OUT3MUTE_SHIFT
#define WM8985_OUT3MUTE_WIDTH
#define WM8985_OUT4_2OUT3
#define WM8985_OUT4_2OUT3_MASK
#define WM8985_OUT4_2OUT3_SHIFT
#define WM8985_OUT4_2OUT3_WIDTH
#define WM8985_BYPL2OUT3
#define WM8985_BYPL2OUT3_MASK
#define WM8985_BYPL2OUT3_SHIFT
#define WM8985_BYPL2OUT3_WIDTH
#define WM8985_LMIX2OUT3
#define WM8985_LMIX2OUT3_MASK
#define WM8985_LMIX2OUT3_SHIFT
#define WM8985_LMIX2OUT3_WIDTH
#define WM8985_LDAC2OUT3
#define WM8985_LDAC2OUT3_MASK
#define WM8985_LDAC2OUT3_SHIFT
#define WM8985_LDAC2OUT3_WIDTH

/*
 * R57 (0x39) - OUT4 (MONO) mix ctrl
 */
#define WM8985_OUT3_2OUT4
#define WM8985_OUT3_2OUT4_MASK
#define WM8985_OUT3_2OUT4_SHIFT
#define WM8985_OUT3_2OUT4_WIDTH
#define WM8985_OUT4MUTE
#define WM8985_OUT4MUTE_MASK
#define WM8985_OUT4MUTE_SHIFT
#define WM8985_OUT4MUTE_WIDTH
#define WM8985_OUT4ATTN
#define WM8985_OUT4ATTN_MASK
#define WM8985_OUT4ATTN_SHIFT
#define WM8985_OUT4ATTN_WIDTH
#define WM8985_LMIX2OUT4
#define WM8985_LMIX2OUT4_MASK
#define WM8985_LMIX2OUT4_SHIFT
#define WM8985_LMIX2OUT4_WIDTH
#define WM8985_LDAC2OUT4
#define WM8985_LDAC2OUT4_MASK
#define WM8985_LDAC2OUT4_SHIFT
#define WM8985_LDAC2OUT4_WIDTH
#define WM8985_BYPR2OUT4
#define WM8985_BYPR2OUT4_MASK
#define WM8985_BYPR2OUT4_SHIFT
#define WM8985_BYPR2OUT4_WIDTH
#define WM8985_RMIX2OUT4
#define WM8985_RMIX2OUT4_MASK
#define WM8985_RMIX2OUT4_SHIFT
#define WM8985_RMIX2OUT4_WIDTH
#define WM8985_RDAC2OUT4
#define WM8985_RDAC2OUT4_MASK
#define WM8985_RDAC2OUT4_SHIFT
#define WM8985_RDAC2OUT4_WIDTH

/*
 * R60 (0x3C) - OUTPUT ctrl
 */
#define WM8985_VIDBUFFTST_MASK
#define WM8985_VIDBUFFTST_SHIFT
#define WM8985_VIDBUFFTST_WIDTH
#define WM8985_HPTOG
#define WM8985_HPTOG_MASK
#define WM8985_HPTOG_SHIFT
#define WM8985_HPTOG_WIDTH

/*
 * R61 (0x3D) - BIAS CTRL
 */
#define WM8985_BIASCUT
#define WM8985_BIASCUT_MASK
#define WM8985_BIASCUT_SHIFT
#define WM8985_BIASCUT_WIDTH
#define WM8985_HALFIPBIAS
#define WM8985_HALFIPBIAS_MASK
#define WM8985_HALFIPBIAS_SHIFT
#define WM8985_HALFIPBIAS_WIDTH
#define WM8758_HALFIPBIAS
#define WM8758_HALFI_IPGA_MASK
#define WM8758_HALFI_IPGA_SHIFT
#define WM8758_HALFI_IPGA_WIDTH
#define WM8985_VBBIASTST_MASK
#define WM8985_VBBIASTST_SHIFT
#define WM8985_VBBIASTST_WIDTH
#define WM8985_BUFBIAS_MASK
#define WM8985_BUFBIAS_SHIFT
#define WM8985_BUFBIAS_WIDTH
#define WM8985_ADCBIAS_MASK
#define WM8985_ADCBIAS_SHIFT
#define WM8985_ADCBIAS_WIDTH
#define WM8985_HALFOPBIAS
#define WM8985_HALFOPBIAS_MASK
#define WM8985_HALFOPBIAS_SHIFT
#define WM8985_HALFOPBIAS_WIDTH

enum clk_src {};

#define WM8985_PLL

#endif