linux/sound/soc/codecs/wm8991.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * wm8991.h  --  audio driver for WM8991
 *
 * Copyright 2007 Wolfson Microelectronics PLC.
 * Author: Graeme Gregory
 *         [email protected] or [email protected]
 */

#ifndef _WM8991_H
#define _WM8991_H

/*
 * Register values.
 */
#define WM8991_RESET
#define WM8991_POWER_MANAGEMENT_1
#define WM8991_POWER_MANAGEMENT_2
#define WM8991_POWER_MANAGEMENT_3
#define WM8991_AUDIO_INTERFACE_1
#define WM8991_AUDIO_INTERFACE_2
#define WM8991_CLOCKING_1
#define WM8991_CLOCKING_2
#define WM8991_AUDIO_INTERFACE_3
#define WM8991_AUDIO_INTERFACE_4
#define WM8991_DAC_CTRL
#define WM8991_LEFT_DAC_DIGITAL_VOLUME
#define WM8991_RIGHT_DAC_DIGITAL_VOLUME
#define WM8991_DIGITAL_SIDE_TONE
#define WM8991_ADC_CTRL
#define WM8991_LEFT_ADC_DIGITAL_VOLUME
#define WM8991_RIGHT_ADC_DIGITAL_VOLUME
#define WM8991_GPIO_CTRL_1
#define WM8991_GPIO1_GPIO2
#define WM8991_GPIO3_GPIO4
#define WM8991_GPIO5_GPIO6
#define WM8991_GPIOCTRL_2
#define WM8991_GPIO_POL
#define WM8991_LEFT_LINE_INPUT_1_2_VOLUME
#define WM8991_LEFT_LINE_INPUT_3_4_VOLUME
#define WM8991_RIGHT_LINE_INPUT_1_2_VOLUME
#define WM8991_RIGHT_LINE_INPUT_3_4_VOLUME
#define WM8991_LEFT_OUTPUT_VOLUME
#define WM8991_RIGHT_OUTPUT_VOLUME
#define WM8991_LINE_OUTPUTS_VOLUME
#define WM8991_OUT3_4_VOLUME
#define WM8991_LEFT_OPGA_VOLUME
#define WM8991_RIGHT_OPGA_VOLUME
#define WM8991_SPEAKER_VOLUME
#define WM8991_CLASSD1
#define WM8991_CLASSD3
#define WM8991_INPUT_MIXER1
#define WM8991_INPUT_MIXER2
#define WM8991_INPUT_MIXER3
#define WM8991_INPUT_MIXER4
#define WM8991_INPUT_MIXER5
#define WM8991_INPUT_MIXER6
#define WM8991_OUTPUT_MIXER1
#define WM8991_OUTPUT_MIXER2
#define WM8991_OUTPUT_MIXER3
#define WM8991_OUTPUT_MIXER4
#define WM8991_OUTPUT_MIXER5
#define WM8991_OUTPUT_MIXER6
#define WM8991_OUT3_4_MIXER
#define WM8991_LINE_MIXER1
#define WM8991_LINE_MIXER2
#define WM8991_SPEAKER_MIXER
#define WM8991_ADDITIONAL_CONTROL
#define WM8991_ANTIPOP1
#define WM8991_ANTIPOP2
#define WM8991_MICBIAS
#define WM8991_PLL1
#define WM8991_PLL2
#define WM8991_PLL3

#define WM8991_REGISTER_COUNT
#define WM8991_MAX_REGISTER

/*
 * Field Definitions.
 */

/*
 * R0 (0x00) - Reset
 */
#define WM8991_SW_RESET_CHIP_ID_MASK

/*
 * R1 (0x01) - Power Management (1)
 */
#define WM8991_SPK_ENA
#define WM8991_SPK_ENA_BIT
#define WM8991_OUT3_ENA
#define WM8991_OUT3_ENA_BIT
#define WM8991_OUT4_ENA
#define WM8991_OUT4_ENA_BIT
#define WM8991_LOUT_ENA
#define WM8991_LOUT_ENA_BIT
#define WM8991_ROUT_ENA
#define WM8991_ROUT_ENA_BIT
#define WM8991_MICBIAS_ENA
#define WM8991_MICBIAS_ENA_BIT
#define WM8991_VMID_MODE_MASK
#define WM8991_VREF_ENA
#define WM8991_VREF_ENA_BIT

/*
 * R2 (0x02) - Power Management (2)
 */
#define WM8991_PLL_ENA
#define WM8991_PLL_ENA_BIT
#define WM8991_TSHUT_ENA
#define WM8991_TSHUT_ENA_BIT
#define WM8991_TSHUT_OPDIS
#define WM8991_TSHUT_OPDIS_BIT
#define WM8991_OPCLK_ENA
#define WM8991_OPCLK_ENA_BIT
#define WM8991_AINL_ENA
#define WM8991_AINL_ENA_BIT
#define WM8991_AINR_ENA
#define WM8991_AINR_ENA_BIT
#define WM8991_LIN34_ENA
#define WM8991_LIN34_ENA_BIT
#define WM8991_LIN12_ENA
#define WM8991_LIN12_ENA_BIT
#define WM8991_RIN34_ENA
#define WM8991_RIN34_ENA_BIT
#define WM8991_RIN12_ENA
#define WM8991_RIN12_ENA_BIT
#define WM8991_ADCL_ENA
#define WM8991_ADCL_ENA_BIT
#define WM8991_ADCR_ENA
#define WM8991_ADCR_ENA_BIT

/*
 * R3 (0x03) - Power Management (3)
 */
#define WM8991_LON_ENA
#define WM8991_LON_ENA_BIT
#define WM8991_LOP_ENA
#define WM8991_LOP_ENA_BIT
#define WM8991_RON_ENA
#define WM8991_RON_ENA_BIT
#define WM8991_ROP_ENA
#define WM8991_ROP_ENA_BIT
#define WM8991_LOPGA_ENA
#define WM8991_LOPGA_ENA_BIT
#define WM8991_ROPGA_ENA
#define WM8991_ROPGA_ENA_BIT
#define WM8991_LOMIX_ENA
#define WM8991_LOMIX_ENA_BIT
#define WM8991_ROMIX_ENA
#define WM8991_ROMIX_ENA_BIT
#define WM8991_DACL_ENA
#define WM8991_DACL_ENA_BIT
#define WM8991_DACR_ENA
#define WM8991_DACR_ENA_BIT

/*
 * R4 (0x04) - Audio Interface (1)
 */
#define WM8991_AIFADCL_SRC
#define WM8991_AIFADCR_SRC
#define WM8991_AIFADC_TDM
#define WM8991_AIFADC_TDM_CHAN
#define WM8991_AIF_BCLK_INV
#define WM8991_AIF_LRCLK_INV
#define WM8991_AIF_WL_MASK
#define WM8991_AIF_WL_16BITS
#define WM8991_AIF_WL_20BITS
#define WM8991_AIF_WL_24BITS
#define WM8991_AIF_WL_32BITS
#define WM8991_AIF_FMT_MASK
#define WM8991_AIF_TMF_RIGHTJ
#define WM8991_AIF_TMF_LEFTJ
#define WM8991_AIF_TMF_I2S
#define WM8991_AIF_TMF_DSP

/*
 * R5 (0x05) - Audio Interface (2)
 */
#define WM8991_DACL_SRC
#define WM8991_DACR_SRC
#define WM8991_AIFDAC_TDM
#define WM8991_AIFDAC_TDM_CHAN
#define WM8991_DAC_BOOST_MASK
#define WM8991_DAC_COMP
#define WM8991_DAC_COMPMODE
#define WM8991_ADC_COMP
#define WM8991_ADC_COMPMODE
#define WM8991_LOOPBACK

/*
 * R6 (0x06) - Clocking (1)
 */
#define WM8991_TOCLK_RATE
#define WM8991_TOCLK_ENA
#define WM8991_OPCLKDIV_MASK
#define WM8991_DCLKDIV_MASK
#define WM8991_BCLK_DIV_MASK
#define WM8991_BCLK_DIV_1
#define WM8991_BCLK_DIV_1_5
#define WM8991_BCLK_DIV_2
#define WM8991_BCLK_DIV_3
#define WM8991_BCLK_DIV_4
#define WM8991_BCLK_DIV_5_5
#define WM8991_BCLK_DIV_6
#define WM8991_BCLK_DIV_8
#define WM8991_BCLK_DIV_11
#define WM8991_BCLK_DIV_12
#define WM8991_BCLK_DIV_16
#define WM8991_BCLK_DIV_22
#define WM8991_BCLK_DIV_24
#define WM8991_BCLK_DIV_32
#define WM8991_BCLK_DIV_44
#define WM8991_BCLK_DIV_48

/*
 * R7 (0x07) - Clocking (2)
 */
#define WM8991_MCLK_SRC
#define WM8991_SYSCLK_SRC
#define WM8991_CLK_FORCE
#define WM8991_MCLK_DIV_MASK
#define WM8991_MCLK_DIV_1
#define WM8991_MCLK_DIV_2
#define WM8991_MCLK_INV
#define WM8991_ADC_CLKDIV_MASK
#define WM8991_ADC_CLKDIV_1
#define WM8991_ADC_CLKDIV_1_5
#define WM8991_ADC_CLKDIV_2
#define WM8991_ADC_CLKDIV_3
#define WM8991_ADC_CLKDIV_4
#define WM8991_ADC_CLKDIV_5_5
#define WM8991_ADC_CLKDIV_6
#define WM8991_DAC_CLKDIV_MASK
#define WM8991_DAC_CLKDIV_1
#define WM8991_DAC_CLKDIV_1_5
#define WM8991_DAC_CLKDIV_2
#define WM8991_DAC_CLKDIV_3
#define WM8991_DAC_CLKDIV_4
#define WM8991_DAC_CLKDIV_5_5
#define WM8991_DAC_CLKDIV_6

/*
 * R8 (0x08) - Audio Interface (3)
 */
#define WM8991_AIF_MSTR1
#define WM8991_AIF_MSTR2
#define WM8991_AIF_SEL
#define WM8991_ADCLRC_DIR
#define WM8991_ADCLRC_RATE_MASK

/*
 * R9 (0x09) - Audio Interface (4)
 */
#define WM8991_ALRCGPIO1
#define WM8991_ALRCBGPIO6
#define WM8991_AIF_TRIS
#define WM8991_DACLRC_DIR
#define WM8991_DACLRC_RATE_MASK

/*
 * R10 (0x0A) - DAC CTRL
 */
#define WM8991_AIF_LRCLKRATE
#define WM8991_DAC_MONO
#define WM8991_DAC_SB_FILT
#define WM8991_DAC_MUTERATE
#define WM8991_DAC_MUTEMODE
#define WM8991_DEEMP_MASK
#define WM8991_DAC_MUTE
#define WM8991_DACL_DATINV
#define WM8991_DACR_DATINV

/*
 * R11 (0x0B) - Left DAC Digital Volume
 */
#define WM8991_DAC_VU
#define WM8991_DACL_VOL_MASK
#define WM8991_DACL_VOL_SHIFT
/*
 * R12 (0x0C) - Right DAC Digital Volume
 */
#define WM8991_DAC_VU
#define WM8991_DACR_VOL_MASK
#define WM8991_DACR_VOL_SHIFT
/*
 * R13 (0x0D) - Digital Side Tone
 */
#define WM8991_ADCL_DAC_SVOL_MASK
#define WM8991_ADCL_DAC_SVOL_SHIFT
#define WM8991_ADCR_DAC_SVOL_MASK
#define WM8991_ADCR_DAC_SVOL_SHIFT
#define WM8991_ADC_TO_DACL_MASK
#define WM8991_ADC_TO_DACL_SHIFT
#define WM8991_ADC_TO_DACR_MASK
#define WM8991_ADC_TO_DACR_SHIFT

/*
 * R14 (0x0E) - ADC CTRL
 */
#define WM8991_ADC_HPF_ENA
#define WM8991_ADC_HPF_ENA_BIT
#define WM8991_ADC_HPF_CUT_MASK
#define WM8991_ADC_HPF_CUT_SHIFT
#define WM8991_ADCL_DATINV
#define WM8991_ADCL_DATINV_BIT
#define WM8991_ADCR_DATINV
#define WM8991_ADCR_DATINV_BIT

/*
 * R15 (0x0F) - Left ADC Digital Volume
 */
#define WM8991_ADC_VU
#define WM8991_ADCL_VOL_MASK
#define WM8991_ADCL_VOL_SHIFT

/*
 * R16 (0x10) - Right ADC Digital Volume
 */
#define WM8991_ADC_VU
#define WM8991_ADCR_VOL_MASK
#define WM8991_ADCR_VOL_SHIFT

/*
 * R18 (0x12) - GPIO CTRL 1
 */
#define WM8991_IRQ
#define WM8991_TEMPOK
#define WM8991_MICSHRT
#define WM8991_MICDET
#define WM8991_PLL_LCK
#define WM8991_GPI8_STATUS
#define WM8991_GPI7_STATUS
#define WM8991_GPIO6_STATUS
#define WM8991_GPIO5_STATUS
#define WM8991_GPIO4_STATUS
#define WM8991_GPIO3_STATUS
#define WM8991_GPIO2_STATUS
#define WM8991_GPIO1_STATUS

/*
 * R19 (0x13) - GPIO1 & GPIO2
 */
#define WM8991_GPIO2_DEB_ENA
#define WM8991_GPIO2_IRQ_ENA
#define WM8991_GPIO2_PU
#define WM8991_GPIO2_PD
#define WM8991_GPIO2_SEL_MASK
#define WM8991_GPIO1_DEB_ENA
#define WM8991_GPIO1_IRQ_ENA
#define WM8991_GPIO1_PU
#define WM8991_GPIO1_PD
#define WM8991_GPIO1_SEL_MASK

/*
 * R20 (0x14) - GPIO3 & GPIO4
 */
#define WM8991_GPIO4_DEB_ENA
#define WM8991_GPIO4_IRQ_ENA
#define WM8991_GPIO4_PU
#define WM8991_GPIO4_PD
#define WM8991_GPIO4_SEL_MASK
#define WM8991_GPIO3_DEB_ENA
#define WM8991_GPIO3_IRQ_ENA
#define WM8991_GPIO3_PU
#define WM8991_GPIO3_PD
#define WM8991_GPIO3_SEL_MASK

/*
 * R21 (0x15) - GPIO5 & GPIO6
 */
#define WM8991_GPIO6_DEB_ENA
#define WM8991_GPIO6_IRQ_ENA
#define WM8991_GPIO6_PU
#define WM8991_GPIO6_PD
#define WM8991_GPIO6_SEL_MASK
#define WM8991_GPIO5_DEB_ENA
#define WM8991_GPIO5_IRQ_ENA
#define WM8991_GPIO5_PU
#define WM8991_GPIO5_PD
#define WM8991_GPIO5_SEL_MASK

/*
 * R22 (0x16) - GPIOCTRL 2
 */
#define WM8991_RD_3W_ENA
#define WM8991_MODE_3W4W
#define WM8991_TEMPOK_IRQ_ENA
#define WM8991_MICSHRT_IRQ_ENA
#define WM8991_MICDET_IRQ_ENA
#define WM8991_PLL_LCK_IRQ_ENA
#define WM8991_GPI8_DEB_ENA
#define WM8991_GPI8_IRQ_ENA
#define WM8991_GPI8_ENA
#define WM8991_GPI7_DEB_ENA
#define WM8991_GPI7_IRQ_ENA
#define WM8991_GPI7_ENA

/*
 * R23 (0x17) - GPIO_POL
 */
#define WM8991_IRQ_INV
#define WM8991_TEMPOK_POL
#define WM8991_MICSHRT_POL
#define WM8991_MICDET_POL
#define WM8991_PLL_LCK_POL
#define WM8991_GPI8_POL
#define WM8991_GPI7_POL
#define WM8991_GPIO6_POL
#define WM8991_GPIO5_POL
#define WM8991_GPIO4_POL
#define WM8991_GPIO3_POL
#define WM8991_GPIO2_POL
#define WM8991_GPIO1_POL

/*
 * R24 (0x18) - Left Line Input 1&2 Volume
 */
#define WM8991_IPVU
#define WM8991_LI12MUTE
#define WM8991_LI12MUTE_BIT
#define WM8991_LI12ZC
#define WM8991_LI12ZC_BIT
#define WM8991_LIN12VOL_MASK
#define WM8991_LIN12VOL_SHIFT
/*
 * R25 (0x19) - Left Line Input 3&4 Volume
 */
#define WM8991_IPVU
#define WM8991_LI34MUTE
#define WM8991_LI34MUTE_BIT
#define WM8991_LI34ZC
#define WM8991_LI34ZC_BIT
#define WM8991_LIN34VOL_MASK
#define WM8991_LIN34VOL_SHIFT

/*
 * R26 (0x1A) - Right Line Input 1&2 Volume
 */
#define WM8991_IPVU
#define WM8991_RI12MUTE
#define WM8991_RI12MUTE_BIT
#define WM8991_RI12ZC
#define WM8991_RI12ZC_BIT
#define WM8991_RIN12VOL_MASK
#define WM8991_RIN12VOL_SHIFT

/*
 * R27 (0x1B) - Right Line Input 3&4 Volume
 */
#define WM8991_IPVU
#define WM8991_RI34MUTE
#define WM8991_RI34MUTE_BIT
#define WM8991_RI34ZC
#define WM8991_RI34ZC_BIT
#define WM8991_RIN34VOL_MASK
#define WM8991_RIN34VOL_SHIFT

/*
 * R28 (0x1C) - Left Output Volume
 */
#define WM8991_OPVU
#define WM8991_LOZC
#define WM8991_LOZC_BIT
#define WM8991_LOUTVOL_MASK
#define WM8991_LOUTVOL_SHIFT
/*
 * R29 (0x1D) - Right Output Volume
 */
#define WM8991_OPVU
#define WM8991_ROZC
#define WM8991_ROZC_BIT
#define WM8991_ROUTVOL_MASK
#define WM8991_ROUTVOL_SHIFT
/*
 * R30 (0x1E) - Line Outputs Volume
 */
#define WM8991_LONMUTE
#define WM8991_LONMUTE_BIT
#define WM8991_LOPMUTE
#define WM8991_LOPMUTE_BIT
#define WM8991_LOATTN
#define WM8991_LOATTN_BIT
#define WM8991_RONMUTE
#define WM8991_RONMUTE_BIT
#define WM8991_ROPMUTE
#define WM8991_ROPMUTE_BIT
#define WM8991_ROATTN
#define WM8991_ROATTN_BIT

/*
 * R31 (0x1F) - Out3/4 Volume
 */
#define WM8991_OUT3MUTE
#define WM8991_OUT3MUTE_BIT
#define WM8991_OUT3ATTN
#define WM8991_OUT3ATTN_BIT
#define WM8991_OUT4MUTE
#define WM8991_OUT4MUTE_BIT
#define WM8991_OUT4ATTN
#define WM8991_OUT4ATTN_BIT

/*
 * R32 (0x20) - Left OPGA Volume
 */
#define WM8991_OPVU
#define WM8991_LOPGAZC
#define WM8991_LOPGAZC_BIT
#define WM8991_LOPGAVOL_MASK
#define WM8991_LOPGAVOL_SHIFT

/*
 * R33 (0x21) - Right OPGA Volume
 */
#define WM8991_OPVU
#define WM8991_ROPGAZC
#define WM8991_ROPGAZC_BIT
#define WM8991_ROPGAVOL_MASK
#define WM8991_ROPGAVOL_SHIFT
/*
 * R34 (0x22) - Speaker Volume
 */
#define WM8991_SPKVOL_MASK
#define WM8991_SPKVOL_SHIFT

/*
 * R35 (0x23) - ClassD1
 */
#define WM8991_CDMODE
#define WM8991_CDMODE_BIT

/*
 * R37 (0x25) - ClassD3
 */
#define WM8991_DCGAIN_MASK
#define WM8991_DCGAIN_SHIFT
#define WM8991_ACGAIN_MASK
#define WM8991_ACGAIN_SHIFT
/*
 * R39 (0x27) - Input Mixer1
 */
#define WM8991_AINLMODE_MASK
#define WM8991_AINLMODE_SHIFT
#define WM8991_AINRMODE_MASK
#define WM8991_AINRMODE_SHIFT

/*
 * R40 (0x28) - Input Mixer2
 */
#define WM8991_LMP4
#define WM8991_LMP4_BIT
#define WM8991_LMN3
#define WM8991_LMN3_BIT
#define WM8991_LMP2
#define WM8991_LMP2_BIT
#define WM8991_LMN1
#define WM8991_LMN1_BIT
#define WM8991_RMP4
#define WM8991_RMP4_BIT
#define WM8991_RMN3
#define WM8991_RMN3_BIT
#define WM8991_RMP2
#define WM8991_RMP2_BIT
#define WM8991_RMN1
#define WM8991_RMN1_BIT

/*
 * R41 (0x29) - Input Mixer3
 */
#define WM8991_L34MNB
#define WM8991_L34MNB_BIT
#define WM8991_L34MNBST
#define WM8991_L34MNBST_BIT
#define WM8991_L12MNB
#define WM8991_L12MNB_BIT
#define WM8991_L12MNBST
#define WM8991_L12MNBST_BIT
#define WM8991_LDBVOL_MASK
#define WM8991_LDBVOL_SHIFT

/*
 * R42 (0x2A) - Input Mixer4
 */
#define WM8991_R34MNB
#define WM8991_R34MNB_BIT
#define WM8991_R34MNBST
#define WM8991_R34MNBST_BIT
#define WM8991_R12MNB
#define WM8991_R12MNB_BIT
#define WM8991_R12MNBST
#define WM8991_R12MNBST_BIT
#define WM8991_RDBVOL_MASK
#define WM8991_RDBVOL_SHIFT

/*
 * R43 (0x2B) - Input Mixer5
 */
#define WM8991_LI2BVOL_MASK
#define WM8991_LI2BVOL_SHIFT
#define WM8991_LR4BVOL_MASK
#define WM8991_LR4BVOL_SHIFT
#define WM8991_LL4BVOL_MASK
#define WM8991_LL4BVOL_SHIFT

/*
 * R44 (0x2C) - Input Mixer6
 */
#define WM8991_RI2BVOL_MASK
#define WM8991_RI2BVOL_SHIFT
#define WM8991_RL4BVOL_MASK
#define WM8991_RL4BVOL_SHIFT
#define WM8991_RR4BVOL_MASK
#define WM8991_RR4BVOL_SHIFT

/*
 * R45 (0x2D) - Output Mixer1
 */
#define WM8991_LRBLO
#define WM8991_LRBLO_BIT
#define WM8991_LLBLO
#define WM8991_LLBLO_BIT
#define WM8991_LRI3LO
#define WM8991_LRI3LO_BIT
#define WM8991_LLI3LO
#define WM8991_LLI3LO_BIT
#define WM8991_LR12LO
#define WM8991_LR12LO_BIT
#define WM8991_LL12LO
#define WM8991_LL12LO_BIT
#define WM8991_LDLO
#define WM8991_LDLO_BIT

/*
 * R46 (0x2E) - Output Mixer2
 */
#define WM8991_RLBRO
#define WM8991_RLBRO_BIT
#define WM8991_RRBRO
#define WM8991_RRBRO_BIT
#define WM8991_RLI3RO
#define WM8991_RLI3RO_BIT
#define WM8991_RRI3RO
#define WM8991_RRI3RO_BIT
#define WM8991_RL12RO
#define WM8991_RL12RO_BIT
#define WM8991_RR12RO
#define WM8991_RR12RO_BIT
#define WM8991_RDRO
#define WM8991_RDRO_BIT

/*
 * R47 (0x2F) - Output Mixer3
 */
#define WM8991_LLI3LOVOL_MASK
#define WM8991_LLI3LOVOL_SHIFT
#define WM8991_LR12LOVOL_MASK
#define WM8991_LR12LOVOL_SHIFT
#define WM8991_LL12LOVOL_MASK
#define WM8991_LL12LOVOL_SHIFT

/*
 * R48 (0x30) - Output Mixer4
 */
#define WM8991_RRI3ROVOL_MASK
#define WM8991_RRI3ROVOL_SHIFT
#define WM8991_RL12ROVOL_MASK
#define WM8991_RL12ROVOL_SHIFT
#define WM8991_RR12ROVOL_MASK
#define WM8991_RR12ROVOL_SHIFT

/*
 * R49 (0x31) - Output Mixer5
 */
#define WM8991_LRI3LOVOL_MASK
#define WM8991_LRI3LOVOL_SHIFT
#define WM8991_LRBLOVOL_MASK
#define WM8991_LRBLOVOL_SHIFT
#define WM8991_LLBLOVOL_MASK
#define WM8991_LLBLOVOL_SHIFT

/*
 * R50 (0x32) - Output Mixer6
 */
#define WM8991_RLI3ROVOL_MASK
#define WM8991_RLI3ROVOL_SHIFT
#define WM8991_RLBROVOL_MASK
#define WM8991_RLBROVOL_SHIFT
#define WM8991_RRBROVOL_MASK
#define WM8991_RRBROVOL_SHIFT

/*
 * R51 (0x33) - Out3/4 Mixer
 */
#define WM8991_VSEL_MASK
#define WM8991_LI4O3
#define WM8991_LI4O3_BIT
#define WM8991_LPGAO3
#define WM8991_LPGAO3_BIT
#define WM8991_RI4O4
#define WM8991_RI4O4_BIT
#define WM8991_RPGAO4
#define WM8991_RPGAO4_BIT
/*
 * R52 (0x34) - Line Mixer1
 */
#define WM8991_LLOPGALON
#define WM8991_LLOPGALON_BIT
#define WM8991_LROPGALON
#define WM8991_LROPGALON_BIT
#define WM8991_LOPLON
#define WM8991_LOPLON_BIT
#define WM8991_LR12LOP
#define WM8991_LR12LOP_BIT
#define WM8991_LL12LOP
#define WM8991_LL12LOP_BIT
#define WM8991_LLOPGALOP
#define WM8991_LLOPGALOP_BIT
/*
 * R53 (0x35) - Line Mixer2
 */
#define WM8991_RROPGARON
#define WM8991_RROPGARON_BIT
#define WM8991_RLOPGARON
#define WM8991_RLOPGARON_BIT
#define WM8991_ROPRON
#define WM8991_ROPRON_BIT
#define WM8991_RL12ROP
#define WM8991_RL12ROP_BIT
#define WM8991_RR12ROP
#define WM8991_RR12ROP_BIT
#define WM8991_RROPGAROP
#define WM8991_RROPGAROP_BIT

/*
 * R54 (0x36) - Speaker Mixer
 */
#define WM8991_LB2SPK
#define WM8991_LB2SPK_BIT
#define WM8991_RB2SPK
#define WM8991_RB2SPK_BIT
#define WM8991_LI2SPK
#define WM8991_LI2SPK_BIT
#define WM8991_RI2SPK
#define WM8991_RI2SPK_BIT
#define WM8991_LOPGASPK
#define WM8991_LOPGASPK_BIT
#define WM8991_ROPGASPK
#define WM8991_ROPGASPK_BIT
#define WM8991_LDSPK
#define WM8991_LDSPK_BIT
#define WM8991_RDSPK
#define WM8991_RDSPK_BIT

/*
 * R55 (0x37) - Additional Control
 */
#define WM8991_VROI

/*
 * R56 (0x38) - AntiPOP1
 */
#define WM8991_DIS_LLINE
#define WM8991_DIS_RLINE
#define WM8991_DIS_OUT3
#define WM8991_DIS_OUT4
#define WM8991_DIS_LOUT
#define WM8991_DIS_ROUT

/*
 * R57 (0x39) - AntiPOP2
 */
#define WM8991_SOFTST
#define WM8991_BUFIOEN
#define WM8991_BUFDCOPEN
#define WM8991_POBCTRL
#define WM8991_VMIDTOG

/*
 * R58 (0x3A) - MICBIAS
 */
#define WM8991_MCDSCTH_MASK
#define WM8991_MCDTHR_MASK
#define WM8991_MCD
#define WM8991_MBSEL

/*
 * R60 (0x3C) - PLL1
 */
#define WM8991_SDM
#define WM8991_PRESCALE
#define WM8991_PLLN_MASK

/*
 * R61 (0x3D) - PLL2
 */
#define WM8991_PLLK1_MASK

/*
 * R62 (0x3E) - PLL3
 */
#define WM8991_PLLK2_MASK

#define WM8991_MCLK_DIV
#define WM8991_DACCLK_DIV
#define WM8991_ADCCLK_DIV
#define WM8991_BCLK_DIV

#define SOC_WM899X_OUTPGA_SINGLE_R_TLV(xname, reg, shift, max, invert,\
					 tlv_array)

#endif /* _WM8991_H */