Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
rt5631.h File Reference

Go to the source code of this file.

Macros

#define RT5631_RESET   0x00
 
#define RT5631_SPK_OUT_VOL   0x02
 
#define RT5631_HP_OUT_VOL   0x04
 
#define RT5631_MONO_AXO_1_2_VOL   0x06
 
#define RT5631_AUX_IN_VOL   0x0A
 
#define RT5631_STEREO_DAC_VOL_1   0x0C
 
#define RT5631_MIC_CTRL_1   0x0E
 
#define RT5631_STEREO_DAC_VOL_2   0x10
 
#define RT5631_ADC_CTRL_1   0x12
 
#define RT5631_ADC_REC_MIXER   0x14
 
#define RT5631_ADC_CTRL_2   0x16
 
#define RT5631_VDAC_DIG_VOL   0x18
 
#define RT5631_OUTMIXER_L_CTRL   0x1A
 
#define RT5631_OUTMIXER_R_CTRL   0x1C
 
#define RT5631_AXO1MIXER_CTRL   0x1E
 
#define RT5631_AXO2MIXER_CTRL   0x20
 
#define RT5631_MIC_CTRL_2   0x22
 
#define RT5631_DIG_MIC_CTRL   0x24
 
#define RT5631_MONO_INPUT_VOL   0x26
 
#define RT5631_SPK_MIXER_CTRL   0x28
 
#define RT5631_SPK_MONO_OUT_CTRL   0x2A
 
#define RT5631_SPK_MONO_HP_OUT_CTRL   0x2C
 
#define RT5631_SDP_CTRL   0x34
 
#define RT5631_MONO_SDP_CTRL   0x36
 
#define RT5631_STEREO_AD_DA_CLK_CTRL   0x38
 
#define RT5631_PWR_MANAG_ADD1   0x3A
 
#define RT5631_PWR_MANAG_ADD2   0x3B
 
#define RT5631_PWR_MANAG_ADD3   0x3C
 
#define RT5631_PWR_MANAG_ADD4   0x3E
 
#define RT5631_GEN_PUR_CTRL_REG   0x40
 
#define RT5631_GLOBAL_CLK_CTRL   0x42
 
#define RT5631_PLL_CTRL   0x44
 
#define RT5631_INT_ST_IRQ_CTRL_1   0x48
 
#define RT5631_INT_ST_IRQ_CTRL_2   0x4A
 
#define RT5631_GPIO_CTRL   0x4C
 
#define RT5631_MISC_CTRL   0x52
 
#define RT5631_DEPOP_FUN_CTRL_1   0x54
 
#define RT5631_DEPOP_FUN_CTRL_2   0x56
 
#define RT5631_JACK_DET_CTRL   0x5A
 
#define RT5631_SOFT_VOL_CTRL   0x5C
 
#define RT5631_ALC_CTRL_1   0x64
 
#define RT5631_ALC_CTRL_2   0x65
 
#define RT5631_ALC_CTRL_3   0x66
 
#define RT5631_PSEUDO_SPATL_CTRL   0x68
 
#define RT5631_INDEX_ADD   0x6A
 
#define RT5631_INDEX_DATA   0x6C
 
#define RT5631_EQ_CTRL   0x6E
 
#define RT5631_VENDOR_ID   0x7A
 
#define RT5631_VENDOR_ID1   0x7C
 
#define RT5631_VENDOR_ID2   0x7E
 
#define RT5631_EQ_BW_LOP   0x00
 
#define RT5631_EQ_GAIN_LOP   0x01
 
#define RT5631_EQ_FC_BP1   0x02
 
#define RT5631_EQ_BW_BP1   0x03
 
#define RT5631_EQ_GAIN_BP1   0x04
 
#define RT5631_EQ_FC_BP2   0x05
 
#define RT5631_EQ_BW_BP2   0x06
 
#define RT5631_EQ_GAIN_BP2   0x07
 
#define RT5631_EQ_FC_BP3   0x08
 
#define RT5631_EQ_BW_BP3   0x09
 
#define RT5631_EQ_GAIN_BP3   0x0a
 
#define RT5631_EQ_BW_HIP   0x0b
 
#define RT5631_EQ_GAIN_HIP   0x0c
 
#define RT5631_EQ_HPF_A1   0x0d
 
#define RT5631_EQ_HPF_A2   0x0e
 
#define RT5631_EQ_HPF_GAIN   0x0f
 
#define RT5631_EQ_PRE_VOL_CTRL   0x11
 
#define RT5631_EQ_POST_VOL_CTRL   0x12
 
#define RT5631_TEST_MODE_CTRL   0x39
 
#define RT5631_CP_INTL_REG2   0x45
 
#define RT5631_ADDA_MIXER_INTL_REG3   0x52
 
#define RT5631_SPK_INTL_CTRL   0x56
 
#define RT5631_L_MUTE   (0x1 << 15)
 
#define RT5631_L_MUTE_SHIFT   15
 
#define RT5631_L_EN   (0x1 << 14)
 
#define RT5631_L_EN_SHIFT   14
 
#define RT5631_R_MUTE   (0x1 << 7)
 
#define RT5631_R_MUTE_SHIFT   7
 
#define RT5631_R_EN   (0x1 << 6)
 
#define RT5631_R_EN_SHIFT   6
 
#define RT5631_VOL_MASK   0x1f
 
#define RT5631_L_VOL_SHIFT   8
 
#define RT5631_R_VOL_SHIFT   0
 
#define RT5631_SPK_L_VOL_SEL_MASK   (0x1 << 14)
 
#define RT5631_SPK_L_VOL_SEL_VMID   (0x0 << 14)
 
#define RT5631_SPK_L_VOL_SEL_SPKMIX_L   (0x1 << 14)
 
#define RT5631_SPK_R_VOL_SEL_MASK   (0x1 << 6)
 
#define RT5631_SPK_R_VOL_SEL_VMID   (0x0 << 6)
 
#define RT5631_SPK_R_VOL_SEL_SPKMIX_R   (0x1 << 6)
 
#define RT5631_HP_L_VOL_SEL_MASK   (0x1 << 14)
 
#define RT5631_HP_L_VOL_SEL_VMID   (0x0 << 14)
 
#define RT5631_HP_L_VOL_SEL_OUTMIX_L   (0x1 << 14)
 
#define RT5631_HP_R_VOL_SEL_MASK   (0x1 << 6)
 
#define RT5631_HP_R_VOL_SEL_VMID   (0x0 << 6)
 
#define RT5631_HP_R_VOL_SEL_OUTMIX_R   (0x1 << 6)
 
#define RT5631_AUXOUT_1_VOL_SEL_MASK   (0x1 << 14)
 
#define RT5631_AUXOUT_1_VOL_SEL_VMID   (0x0 << 14)
 
#define RT5631_AUXOUT_1_VOL_SEL_OUTMIX_L   (0x1 << 14)
 
#define RT5631_MUTE_MONO   (0x1 << 13)
 
#define RT5631_MUTE_MONO_SHIFT   13
 
#define RT5631_AUXOUT_2_VOL_SEL_MASK   (0x1 << 6)
 
#define RT5631_AUXOUT_2_VOL_SEL_VMID   (0x0 << 6)
 
#define RT5631_AUXOUT_2_VOL_SEL_OUTMIX_R   (0x1 << 6)
 
#define RT5631_MIC1_DIFF_INPUT_CTRL   (0x1 << 15)
 
#define RT5631_MIC1_DIFF_INPUT_SHIFT   15
 
#define RT5631_MIC2_DIFF_INPUT_CTRL   (0x1 << 7)
 
#define RT5631_MIC2_DIFF_INPUT_SHIFT   7
 
#define RT5631_DAC_VOL_MASK   0xff
 
#define RT5631_M_OUTMIXER_L_TO_RECMIXER_L   (0x1 << 15)
 
#define RT5631_M_OUTMIXL_RECMIXL_BIT   15
 
#define RT5631_M_MIC1_TO_RECMIXER_L   (0x1 << 14)
 
#define RT5631_M_MIC1_RECMIXL_BIT   14
 
#define RT5631_M_AXIL_TO_RECMIXER_L   (0x1 << 13)
 
#define RT5631_M_AXIL_RECMIXL_BIT   13
 
#define RT5631_M_MONO_IN_TO_RECMIXER_L   (0x1 << 12)
 
#define RT5631_M_MONO_IN_RECMIXL_BIT   12
 
#define RT5631_M_OUTMIXER_R_TO_RECMIXER_R   (0x1 << 7)
 
#define RT5631_M_OUTMIXR_RECMIXR_BIT   7
 
#define RT5631_M_MIC2_TO_RECMIXER_R   (0x1 << 6)
 
#define RT5631_M_MIC2_RECMIXR_BIT   6
 
#define RT5631_M_AXIR_TO_RECMIXER_R   (0x1 << 5)
 
#define RT5631_M_AXIR_RECMIXR_BIT   5
 
#define RT5631_M_MONO_IN_TO_RECMIXER_R   (0x1 << 4)
 
#define RT5631_M_MONO_IN_RECMIXR_BIT   4
 
#define RT5631_M_RECMIXER_L_TO_OUTMIXER_L   (0x1 << 15)
 
#define RT5631_M_RECMIXL_OUTMIXL_BIT   15
 
#define RT5631_M_RECMIXER_R_TO_OUTMIXER_L   (0x1 << 14)
 
#define RT5631_M_RECMIXR_OUTMIXL_BIT   14
 
#define RT5631_M_DAC_L_TO_OUTMIXER_L   (0x1 << 13)
 
#define RT5631_M_DACL_OUTMIXL_BIT   13
 
#define RT5631_M_MIC1_TO_OUTMIXER_L   (0x1 << 12)
 
#define RT5631_M_MIC1_OUTMIXL_BIT   12
 
#define RT5631_M_MIC2_TO_OUTMIXER_L   (0x1 << 11)
 
#define RT5631_M_MIC2_OUTMIXL_BIT   11
 
#define RT5631_M_MONO_IN_P_TO_OUTMIXER_L   (0x1 << 10)
 
#define RT5631_M_MONO_INP_OUTMIXL_BIT   10
 
#define RT5631_M_AXIL_TO_OUTMIXER_L   (0x1 << 9)
 
#define RT5631_M_AXIL_OUTMIXL_BIT   9
 
#define RT5631_M_AXIR_TO_OUTMIXER_L   (0x1 << 8)
 
#define RT5631_M_AXIR_OUTMIXL_BIT   8
 
#define RT5631_M_VDAC_TO_OUTMIXER_L   (0x1 << 7)
 
#define RT5631_M_VDAC_OUTMIXL_BIT   7
 
#define RT5631_M_RECMIXER_L_TO_OUTMIXER_R   (0x1 << 15)
 
#define RT5631_M_RECMIXL_OUTMIXR_BIT   15
 
#define RT5631_M_RECMIXER_R_TO_OUTMIXER_R   (0x1 << 14)
 
#define RT5631_M_RECMIXR_OUTMIXR_BIT   14
 
#define RT5631_M_DAC_R_TO_OUTMIXER_R   (0x1 << 13)
 
#define RT5631_M_DACR_OUTMIXR_BIT   13
 
#define RT5631_M_MIC1_TO_OUTMIXER_R   (0x1 << 12)
 
#define RT5631_M_MIC1_OUTMIXR_BIT   12
 
#define RT5631_M_MIC2_TO_OUTMIXER_R   (0x1 << 11)
 
#define RT5631_M_MIC2_OUTMIXR_BIT   11
 
#define RT5631_M_MONO_IN_N_TO_OUTMIXER_R   (0x1 << 10)
 
#define RT5631_M_MONO_INN_OUTMIXR_BIT   10
 
#define RT5631_M_AXIL_TO_OUTMIXER_R   (0x1 << 9)
 
#define RT5631_M_AXIL_OUTMIXR_BIT   9
 
#define RT5631_M_AXIR_TO_OUTMIXER_R   (0x1 << 8)
 
#define RT5631_M_AXIR_OUTMIXR_BIT   8
 
#define RT5631_M_VDAC_TO_OUTMIXER_R   (0x1 << 7)
 
#define RT5631_M_VDAC_OUTMIXR_BIT   7
 
#define RT5631_M_MIC1_TO_AXO1MIXER   (0x1 << 15)
 
#define RT5631_M_MIC1_AXO1MIX_BIT   15
 
#define RT5631_M_MIC2_TO_AXO1MIXER   (0x1 << 11)
 
#define RT5631_M_MIC2_AXO1MIX_BIT   11
 
#define RT5631_M_OUTMIXER_L_TO_AXO1MIXER   (0x1 << 7)
 
#define RT5631_M_OUTMIXL_AXO1MIX_BIT   7
 
#define RT5631_M_OUTMIXER_R_TO_AXO1MIXER   (0x1 << 6)
 
#define RT5631_M_OUTMIXR_AXO1MIX_BIT   6
 
#define RT5631_M_MIC1_TO_AXO2MIXER   (0x1 << 15)
 
#define RT5631_M_MIC1_AXO2MIX_BIT   15
 
#define RT5631_M_MIC2_TO_AXO2MIXER   (0x1 << 11)
 
#define RT5631_M_MIC2_AXO2MIX_BIT   11
 
#define RT5631_M_OUTMIXER_L_TO_AXO2MIXER   (0x1 << 7)
 
#define RT5631_M_OUTMIXL_AXO2MIX_BIT   7
 
#define RT5631_M_OUTMIXER_R_TO_AXO2MIXER   (0x1 << 6)
 
#define RT5631_M_OUTMIXR_AXO2MIX_BIT   6
 
#define RT5631_MIC_BIAS_90_PRECNET_AVDD   1
 
#define RT5631_MIC_BIAS_75_PRECNET_AVDD   2
 
#define RT5631_MIC1_BOOST_CTRL_MASK   (0xf << 12)
 
#define RT5631_MIC1_BOOST_CTRL_BYPASS   (0x0 << 12)
 
#define RT5631_MIC1_BOOST_CTRL_20DB   (0x1 << 12)
 
#define RT5631_MIC1_BOOST_CTRL_24DB   (0x2 << 12)
 
#define RT5631_MIC1_BOOST_CTRL_30DB   (0x3 << 12)
 
#define RT5631_MIC1_BOOST_CTRL_35DB   (0x4 << 12)
 
#define RT5631_MIC1_BOOST_CTRL_40DB   (0x5 << 12)
 
#define RT5631_MIC1_BOOST_CTRL_34DB   (0x6 << 12)
 
#define RT5631_MIC1_BOOST_CTRL_50DB   (0x7 << 12)
 
#define RT5631_MIC1_BOOST_CTRL_52DB   (0x8 << 12)
 
#define RT5631_MIC1_BOOST_SHIFT   12
 
#define RT5631_MIC2_BOOST_CTRL_MASK   (0xf << 8)
 
#define RT5631_MIC2_BOOST_CTRL_BYPASS   (0x0 << 8)
 
#define RT5631_MIC2_BOOST_CTRL_20DB   (0x1 << 8)
 
#define RT5631_MIC2_BOOST_CTRL_24DB   (0x2 << 8)
 
#define RT5631_MIC2_BOOST_CTRL_30DB   (0x3 << 8)
 
#define RT5631_MIC2_BOOST_CTRL_35DB   (0x4 << 8)
 
#define RT5631_MIC2_BOOST_CTRL_40DB   (0x5 << 8)
 
#define RT5631_MIC2_BOOST_CTRL_34DB   (0x6 << 8)
 
#define RT5631_MIC2_BOOST_CTRL_50DB   (0x7 << 8)
 
#define RT5631_MIC2_BOOST_CTRL_52DB   (0x8 << 8)
 
#define RT5631_MIC2_BOOST_SHIFT   8
 
#define RT5631_MICBIAS1_VOLT_CTRL_MASK   (0x1 << 7)
 
#define RT5631_MICBIAS1_VOLT_CTRL_90P   (0x0 << 7)
 
#define RT5631_MICBIAS1_VOLT_CTRL_75P   (0x1 << 7)
 
#define RT5631_MICBIAS1_S_C_DET_MASK   (0x1 << 6)
 
#define RT5631_MICBIAS1_S_C_DET_DIS   (0x0 << 6)
 
#define RT5631_MICBIAS1_S_C_DET_ENA   (0x1 << 6)
 
#define RT5631_MICBIAS1_SHORT_CURR_DET_MASK   (0x3 << 4)
 
#define RT5631_MICBIAS1_SHORT_CURR_DET_600UA   (0x0 << 4)
 
#define RT5631_MICBIAS1_SHORT_CURR_DET_1500UA   (0x1 << 4)
 
#define RT5631_MICBIAS1_SHORT_CURR_DET_2000UA   (0x2 << 4)
 
#define RT5631_MICBIAS2_VOLT_CTRL_MASK   (0x1 << 3)
 
#define RT5631_MICBIAS2_VOLT_CTRL_90P   (0x0 << 3)
 
#define RT5631_MICBIAS2_VOLT_CTRL_75P   (0x1 << 3)
 
#define RT5631_MICBIAS2_S_C_DET_MASK   (0x1 << 2)
 
#define RT5631_MICBIAS2_S_C_DET_DIS   (0x0 << 2)
 
#define RT5631_MICBIAS2_S_C_DET_ENA   (0x1 << 2)
 
#define RT5631_MICBIAS2_SHORT_CURR_DET_MASK   (0x3)
 
#define RT5631_MICBIAS2_SHORT_CURR_DET_600UA   (0x0)
 
#define RT5631_MICBIAS2_SHORT_CURR_DET_1500UA   (0x1)
 
#define RT5631_MICBIAS2_SHORT_CURR_DET_2000UA   (0x2)
 
#define RT5631_DMIC_ENA_MASK   (0x1 << 15)
 
#define RT5631_DMIC_ENA_SHIFT   15
 
#define RT5631_DMIC_ENA   (0x1 << 15)
 
#define RT5631_DMIC_DIS   (0x0 << 15)
 
#define RT5631_DMIC_L_CH_MUTE   (0x1 << 13)
 
#define RT5631_DMIC_L_CH_MUTE_SHIFT   13
 
#define RT5631_DMIC_R_CH_MUTE   (0x1 << 12)
 
#define RT5631_DMIC_R_CH_MUTE_SHIFT   12
 
#define RT5631_DMIC_L_CH_LATCH_MASK   (0x1 << 9)
 
#define RT5631_DMIC_L_CH_LATCH_RISING   (0x1 << 9)
 
#define RT5631_DMIC_L_CH_LATCH_FALLING   (0x0 << 9)
 
#define RT5631_DMIC_R_CH_LATCH_MASK   (0x1 << 8)
 
#define RT5631_DMIC_R_CH_LATCH_RISING   (0x1 << 8)
 
#define RT5631_DMIC_R_CH_LATCH_FALLING   (0x0 << 8)
 
#define RT5631_DMIC_CLK_CTRL_MASK   (0x3 << 4)
 
#define RT5631_DMIC_CLK_CTRL_TO_128FS   (0x0 << 4)
 
#define RT5631_DMIC_CLK_CTRL_TO_64FS   (0x1 << 4)
 
#define RT5631_DMIC_CLK_CTRL_TO_32FS   (0x2 << 4)
 
#define RT5631_MONO_DIFF_INPUT_SHIFT   15
 
#define RT5631_M_RECMIXER_L_TO_SPKMIXER_L   (0x1 << 15)
 
#define RT5631_M_RECMIXL_SPKMIXL_BIT   15
 
#define RT5631_M_MIC1_P_TO_SPKMIXER_L   (0x1 << 14)
 
#define RT5631_M_MIC1P_SPKMIXL_BIT   14
 
#define RT5631_M_DAC_L_TO_SPKMIXER_L   (0x1 << 13)
 
#define RT5631_M_DACL_SPKMIXL_BIT   13
 
#define RT5631_M_OUTMIXER_L_TO_SPKMIXER_L   (0x1 << 12)
 
#define RT5631_M_OUTMIXL_SPKMIXL_BIT   12
 
#define RT5631_M_RECMIXER_R_TO_SPKMIXER_R   (0x1 << 7)
 
#define RT5631_M_RECMIXR_SPKMIXR_BIT   7
 
#define RT5631_M_MIC2_P_TO_SPKMIXER_R   (0x1 << 6)
 
#define RT5631_M_MIC2P_SPKMIXR_BIT   6
 
#define RT5631_M_DAC_R_TO_SPKMIXER_R   (0x1 << 5)
 
#define RT5631_M_DACR_SPKMIXR_BIT   5
 
#define RT5631_M_OUTMIXER_R_TO_SPKMIXER_R   (0x1 << 4)
 
#define RT5631_M_OUTMIXR_SPKMIXR_BIT   4
 
#define RT5631_M_SPKVOL_L_TO_SPOL_MIXER   (0x1 << 15)
 
#define RT5631_M_SPKVOLL_SPOLMIX_BIT   15
 
#define RT5631_M_SPKVOL_R_TO_SPOL_MIXER   (0x1 << 14)
 
#define RT5631_M_SPKVOLR_SPOLMIX_BIT   14
 
#define RT5631_M_SPKVOL_L_TO_SPOR_MIXER   (0x1 << 13)
 
#define RT5631_M_SPKVOLL_SPORMIX_BIT   13
 
#define RT5631_M_SPKVOL_R_TO_SPOR_MIXER   (0x1 << 12)
 
#define RT5631_M_SPKVOLR_SPORMIX_BIT   12
 
#define RT5631_M_OUTVOL_L_TO_MONOMIXER   (0x1 << 11)
 
#define RT5631_M_OUTVOLL_MONOMIX_BIT   11
 
#define RT5631_M_OUTVOL_R_TO_MONOMIXER   (0x1 << 10)
 
#define RT5631_M_OUTVOLR_MONOMIX_BIT   10
 
#define RT5631_SPK_L_MUX_SEL_MASK   (0x3 << 14)
 
#define RT5631_SPK_L_MUX_SEL_SPKMIXER_L   (0x0 << 14)
 
#define RT5631_SPK_L_MUX_SEL_MONO_IN   (0x1 << 14)
 
#define RT5631_SPK_L_MUX_SEL_DAC_L   (0x3 << 14)
 
#define RT5631_SPK_L_MUX_SEL_SHIFT   14
 
#define RT5631_SPK_R_MUX_SEL_MASK   (0x3 << 10)
 
#define RT5631_SPK_R_MUX_SEL_SPKMIXER_R   (0x0 << 10)
 
#define RT5631_SPK_R_MUX_SEL_MONO_IN   (0x1 << 10)
 
#define RT5631_SPK_R_MUX_SEL_DAC_R   (0x3 << 10)
 
#define RT5631_SPK_R_MUX_SEL_SHIFT   10
 
#define RT5631_MONO_MUX_SEL_MASK   (0x3 << 6)
 
#define RT5631_MONO_MUX_SEL_MONOMIXER   (0x0 << 6)
 
#define RT5631_MONO_MUX_SEL_MONO_IN   (0x1 << 6)
 
#define RT5631_MONO_MUX_SEL_SHIFT   6
 
#define RT5631_HP_L_MUX_SEL_MASK   (0x1 << 3)
 
#define RT5631_HP_L_MUX_SEL_HPVOL_L   (0x0 << 3)
 
#define RT5631_HP_L_MUX_SEL_DAC_L   (0x1 << 3)
 
#define RT5631_HP_L_MUX_SEL_SHIFT   3
 
#define RT5631_HP_R_MUX_SEL_MASK   (0x1 << 2)
 
#define RT5631_HP_R_MUX_SEL_HPVOL_R   (0x0 << 2)
 
#define RT5631_HP_R_MUX_SEL_DAC_R   (0x1 << 2)
 
#define RT5631_HP_R_MUX_SEL_SHIFT   2
 
#define RT5631_SDP_MODE_SEL_MASK   (0x1 << 15)
 
#define RT5631_SDP_MODE_SEL_MASTER   (0x0 << 15)
 
#define RT5631_SDP_MODE_SEL_SLAVE   (0x1 << 15)
 
#define RT5631_SDP_ADC_CPS_SEL_MASK   (0x3 << 10)
 
#define RT5631_SDP_ADC_CPS_SEL_OFF   (0x0 << 10)
 
#define RT5631_SDP_ADC_CPS_SEL_U_LAW   (0x1 << 10)
 
#define RT5631_SDP_ADC_CPS_SEL_A_LAW   (0x2 << 10)
 
#define RT5631_SDP_DAC_CPS_SEL_MASK   (0x3 << 8)
 
#define RT5631_SDP_DAC_CPS_SEL_OFF   (0x0 << 8)
 
#define RT5631_SDP_DAC_CPS_SEL_U_LAW   (0x1 << 8)
 
#define RT5631_SDP_DAC_CPS_SEL_A_LAW   (0x2 << 8)
 
#define RT5631_SDP_I2S_BCLK_POL_CTRL   (0x1 << 7)
 
#define RT5631_SDP_DAC_R_INV   (0x1 << 6)
 
#define RT5631_SDP_ADC_DATA_L_R_SWAP   (0x1 << 5)
 
#define RT5631_SDP_DAC_DATA_L_R_SWAP   (0x1 << 4)
 
#define RT5631_SDP_I2S_DL_MASK   (0x3 << 2)
 
#define RT5631_SDP_I2S_DL_16   (0x0 << 2)
 
#define RT5631_SDP_I2S_DL_20   (0x1 << 2)
 
#define RT5631_SDP_I2S_DL_24   (0x2 << 2)
 
#define RT5631_SDP_I2S_DL_8   (0x3 << 2)
 
#define RT5631_SDP_I2S_DF_MASK   (0x3)
 
#define RT5631_SDP_I2S_DF_I2S   (0x0)
 
#define RT5631_SDP_I2S_DF_LEFT   (0x1)
 
#define RT5631_SDP_I2S_DF_PCM_A   (0x2)
 
#define RT5631_SDP_I2S_DF_PCM_B   (0x3)
 
#define RT5631_I2S_PRE_DIV_MASK   (0x7 << 13)
 
#define RT5631_I2S_PRE_DIV_1   (0x0 << 13)
 
#define RT5631_I2S_PRE_DIV_2   (0x1 << 13)
 
#define RT5631_I2S_PRE_DIV_4   (0x2 << 13)
 
#define RT5631_I2S_PRE_DIV_8   (0x3 << 13)
 
#define RT5631_I2S_PRE_DIV_16   (0x4 << 13)
 
#define RT5631_I2S_PRE_DIV_32   (0x5 << 13)
 
#define RT5631_I2S_LRCK_SEL_N_BCLK_MASK   (0x1 << 12)
 
#define RT5631_I2S_LRCK_SEL_64_BCLK   (0x0 << 12) /* 64FS */
 
#define RT5631_I2S_LRCK_SEL_32_BCLK   (0x1 << 12) /* 32FS */
 
#define RT5631_DAC_OSR_SEL_MASK   (0x3 << 10)
 
#define RT5631_DAC_OSR_SEL_128FS   (0x3 << 10)
 
#define RT5631_DAC_OSR_SEL_64FS   (0x3 << 10)
 
#define RT5631_DAC_OSR_SEL_32FS   (0x3 << 10)
 
#define RT5631_DAC_OSR_SEL_16FS   (0x3 << 10)
 
#define RT5631_ADC_OSR_SEL_MASK   (0x3 << 8)
 
#define RT5631_ADC_OSR_SEL_128FS   (0x3 << 8)
 
#define RT5631_ADC_OSR_SEL_64FS   (0x3 << 8)
 
#define RT5631_ADC_OSR_SEL_32FS   (0x3 << 8)
 
#define RT5631_ADC_OSR_SEL_16FS   (0x3 << 8)
 
#define RT5631_ADDA_FILTER_CLK_SEL_256FS   (0 << 7) /* 256FS */
 
#define RT5631_ADDA_FILTER_CLK_SEL_384FS   (1 << 7) /* 384FS */
 
#define RT5631_PWR_MAIN_I2S_EN   (0x1 << 15)
 
#define RT5631_PWR_MAIN_I2S_BIT   15
 
#define RT5631_PWR_CLASS_D   (0x1 << 12)
 
#define RT5631_PWR_CLASS_D_BIT   12
 
#define RT5631_PWR_ADC_L_CLK   (0x1 << 11)
 
#define RT5631_PWR_ADC_L_CLK_BIT   11
 
#define RT5631_PWR_ADC_R_CLK   (0x1 << 10)
 
#define RT5631_PWR_ADC_R_CLK_BIT   10
 
#define RT5631_PWR_DAC_L_CLK   (0x1 << 9)
 
#define RT5631_PWR_DAC_L_CLK_BIT   9
 
#define RT5631_PWR_DAC_R_CLK   (0x1 << 8)
 
#define RT5631_PWR_DAC_R_CLK_BIT   8
 
#define RT5631_PWR_DAC_REF   (0x1 << 7)
 
#define RT5631_PWR_DAC_REF_BIT   7
 
#define RT5631_PWR_DAC_L_TO_MIXER   (0x1 << 6)
 
#define RT5631_PWR_DAC_L_TO_MIXER_BIT   6
 
#define RT5631_PWR_DAC_R_TO_MIXER   (0x1 << 5)
 
#define RT5631_PWR_DAC_R_TO_MIXER_BIT   5
 
#define RT5631_PWR_OUTMIXER_L   (0x1 << 15)
 
#define RT5631_PWR_OUTMIXER_L_BIT   15
 
#define RT5631_PWR_OUTMIXER_R   (0x1 << 14)
 
#define RT5631_PWR_OUTMIXER_R_BIT   14
 
#define RT5631_PWR_SPKMIXER_L   (0x1 << 13)
 
#define RT5631_PWR_SPKMIXER_L_BIT   13
 
#define RT5631_PWR_SPKMIXER_R   (0x1 << 12)
 
#define RT5631_PWR_SPKMIXER_R_BIT   12
 
#define RT5631_PWR_RECMIXER_L   (0x1 << 11)
 
#define RT5631_PWR_RECMIXER_L_BIT   11
 
#define RT5631_PWR_RECMIXER_R   (0x1 << 10)
 
#define RT5631_PWR_RECMIXER_R_BIT   10
 
#define RT5631_PWR_MIC1_BOOT_GAIN   (0x1 << 5)
 
#define RT5631_PWR_MIC1_BOOT_GAIN_BIT   5
 
#define RT5631_PWR_MIC2_BOOT_GAIN   (0x1 << 4)
 
#define RT5631_PWR_MIC2_BOOT_GAIN_BIT   4
 
#define RT5631_PWR_MICBIAS1_VOL   (0x1 << 3)
 
#define RT5631_PWR_MICBIAS1_VOL_BIT   3
 
#define RT5631_PWR_MICBIAS2_VOL   (0x1 << 2)
 
#define RT5631_PWR_MICBIAS2_VOL_BIT   2
 
#define RT5631_PWR_PLL1   (0x1 << 1)
 
#define RT5631_PWR_PLL1_BIT   1
 
#define RT5631_PWR_PLL2   (0x1 << 0)
 
#define RT5631_PWR_PLL2_BIT   0
 
#define RT5631_PWR_VREF   (0x1 << 15)
 
#define RT5631_PWR_VREF_BIT   15
 
#define RT5631_PWR_FAST_VREF_CTRL   (0x1 << 14)
 
#define RT5631_PWR_FAST_VREF_CTRL_BIT   14
 
#define RT5631_PWR_MAIN_BIAS   (0x1 << 13)
 
#define RT5631_PWR_MAIN_BIAS_BIT   13
 
#define RT5631_PWR_AXO1MIXER   (0x1 << 11)
 
#define RT5631_PWR_AXO1MIXER_BIT   11
 
#define RT5631_PWR_AXO2MIXER   (0x1 << 10)
 
#define RT5631_PWR_AXO2MIXER_BIT   10
 
#define RT5631_PWR_MONOMIXER   (0x1 << 9)
 
#define RT5631_PWR_MONOMIXER_BIT   9
 
#define RT5631_PWR_MONO_DEPOP_DIS   (0x1 << 8)
 
#define RT5631_PWR_MONO_DEPOP_DIS_BIT   8
 
#define RT5631_PWR_MONO_AMP_EN   (0x1 << 7)
 
#define RT5631_PWR_MONO_AMP_EN_BIT   7
 
#define RT5631_PWR_CHARGE_PUMP   (0x1 << 4)
 
#define RT5631_PWR_CHARGE_PUMP_BIT   4
 
#define RT5631_PWR_HP_L_AMP   (0x1 << 3)
 
#define RT5631_PWR_HP_L_AMP_BIT   3
 
#define RT5631_PWR_HP_R_AMP   (0x1 << 2)
 
#define RT5631_PWR_HP_R_AMP_BIT   2
 
#define RT5631_PWR_HP_DEPOP_DIS   (0x1 << 1)
 
#define RT5631_PWR_HP_DEPOP_DIS_BIT   1
 
#define RT5631_PWR_HP_AMP_DRIVING   (0x1 << 0)
 
#define RT5631_PWR_HP_AMP_DRIVING_BIT   0
 
#define RT5631_PWR_SPK_L_VOL   (0x1 << 15)
 
#define RT5631_PWR_SPK_L_VOL_BIT   15
 
#define RT5631_PWR_SPK_R_VOL   (0x1 << 14)
 
#define RT5631_PWR_SPK_R_VOL_BIT   14
 
#define RT5631_PWR_LOUT_VOL   (0x1 << 13)
 
#define RT5631_PWR_LOUT_VOL_BIT   13
 
#define RT5631_PWR_ROUT_VOL   (0x1 << 12)
 
#define RT5631_PWR_ROUT_VOL_BIT   12
 
#define RT5631_PWR_HP_L_OUT_VOL   (0x1 << 11)
 
#define RT5631_PWR_HP_L_OUT_VOL_BIT   11
 
#define RT5631_PWR_HP_R_OUT_VOL   (0x1 << 10)
 
#define RT5631_PWR_HP_R_OUT_VOL_BIT   10
 
#define RT5631_PWR_AXIL_IN_VOL   (0x1 << 9)
 
#define RT5631_PWR_AXIL_IN_VOL_BIT   9
 
#define RT5631_PWR_AXIR_IN_VOL   (0x1 << 8)
 
#define RT5631_PWR_AXIR_IN_VOL_BIT   8
 
#define RT5631_PWR_MONO_IN_P_VOL   (0x1 << 7)
 
#define RT5631_PWR_MONO_IN_P_VOL_BIT   7
 
#define RT5631_PWR_MONO_IN_N_VOL   (0x1 << 6)
 
#define RT5631_PWR_MONO_IN_N_VOL_BIT   6
 
#define RT5631_SPK_AMP_AUTO_RATIO_EN   (0x1 << 15)
 
#define RT5631_SPK_AMP_RATIO_CTRL_MASK   (0x7 << 12)
 
#define RT5631_SPK_AMP_RATIO_CTRL_2_34   (0x0 << 12) /* 7.40DB */
 
#define RT5631_SPK_AMP_RATIO_CTRL_1_99   (0x1 << 12) /* 5.99DB */
 
#define RT5631_SPK_AMP_RATIO_CTRL_1_68   (0x2 << 12) /* 4.50DB */
 
#define RT5631_SPK_AMP_RATIO_CTRL_1_56   (0x3 << 12) /* 3.86DB */
 
#define RT5631_SPK_AMP_RATIO_CTRL_1_44   (0x4 << 12) /* 3.16DB */
 
#define RT5631_SPK_AMP_RATIO_CTRL_1_27   (0x5 << 12) /* 2.10DB */
 
#define RT5631_SPK_AMP_RATIO_CTRL_1_09   (0x6 << 12) /* 0.80DB */
 
#define RT5631_SPK_AMP_RATIO_CTRL_1_00   (0x7 << 12) /* 0.00DB */
 
#define RT5631_SPK_AMP_RATIO_CTRL_SHIFT   12
 
#define RT5631_STEREO_DAC_HI_PASS_FILT_EN   (0x1 << 11)
 
#define RT5631_STEREO_ADC_HI_PASS_FILT_EN   (0x1 << 10)
 
#define RT5631_ADC_WIND_FILT_MASK   (0x3 << 4)
 
#define RT5631_ADC_WIND_FILT_8_16_32K   (0x0 << 4) /*8/16/32k*/
 
#define RT5631_ADC_WIND_FILT_11_22_44K   (0x1 << 4) /*11/22/44k*/
 
#define RT5631_ADC_WIND_FILT_12_24_48K   (0x2 << 4) /*12/24/48k*/
 
#define RT5631_ADC_WIND_FILT_EN   (0x1 << 3)
 
#define RT5631_ADC_WIND_CNR_FREQ_MASK   (0x7 << 0)
 
#define RT5631_ADC_WIND_CNR_FREQ_82_113_122   (0x0 << 0) /* 82/113/122 Hz */
 
#define RT5631_ADC_WIND_CNR_FREQ_102_141_153   (0x1 << 0) /* 102/141/153 Hz */
 
#define RT5631_ADC_WIND_CNR_FREQ_131_180_156   (0x2 << 0) /* 131/180/156 Hz */
 
#define RT5631_ADC_WIND_CNR_FREQ_163_225_245   (0x3 << 0) /* 163/225/245 Hz */
 
#define RT5631_ADC_WIND_CNR_FREQ_204_281_306   (0x4 << 0) /* 204/281/306 Hz */
 
#define RT5631_ADC_WIND_CNR_FREQ_261_360_392   (0x5 << 0) /* 261/360/392 Hz */
 
#define RT5631_ADC_WIND_CNR_FREQ_327_450_490   (0x6 << 0) /* 327/450/490 Hz */
 
#define RT5631_ADC_WIND_CNR_FREQ_408_563_612   (0x7 << 0) /* 408/563/612 Hz */
 
#define RT5631_SYSCLK_SOUR_SEL_MASK   (0x3 << 14)
 
#define RT5631_SYSCLK_SOUR_SEL_MCLK   (0x0 << 14)
 
#define RT5631_SYSCLK_SOUR_SEL_PLL   (0x1 << 14)
 
#define RT5631_SYSCLK_SOUR_SEL_PLL_TCK   (0x2 << 14)
 
#define RT5631_PLLCLK_SOUR_SEL_MASK   (0x3 << 12)
 
#define RT5631_PLLCLK_SOUR_SEL_MCLK   (0x0 << 12)
 
#define RT5631_PLLCLK_SOUR_SEL_BCLK   (0x1 << 12)
 
#define RT5631_PLLCLK_SOUR_SEL_VBCLK   (0x2 << 12)
 
#define RT5631_PLLCLK_PRE_DIV1   (0x0 << 11)
 
#define RT5631_PLLCLK_PRE_DIV2   (0x1 << 11)
 
#define RT5631_PLL_CTRL_M_VAL(m)   ((m)&0xf)
 
#define RT5631_PLL_CTRL_K_VAL(k)   (((k)&0x7) << 4)
 
#define RT5631_PLL_CTRL_N_VAL(n)   (((n)&0xff) << 8)
 
#define RT5631_ADC_DATA_SEL_MASK   (0x3 << 14)
 
#define RT5631_ADC_DATA_SEL_Disable   (0x0 << 14)
 
#define RT5631_ADC_DATA_SEL_MIC1   (0x1 << 14)
 
#define RT5631_ADC_DATA_SEL_MIC1_SHIFT   14
 
#define RT5631_ADC_DATA_SEL_MIC2   (0x2 << 14)
 
#define RT5631_ADC_DATA_SEL_MIC2_SHIFT   15
 
#define RT5631_ADC_DATA_SEL_STO   (0x3 << 14)
 
#define RT5631_ADC_DATA_SEL_SHIFT   14
 
#define RT5631_GPIO_PIN_FUN_SEL_MASK   (0x1 << 15)
 
#define RT5631_GPIO_PIN_FUN_SEL_IRQ   (0x1 << 15)
 
#define RT5631_GPIO_PIN_FUN_SEL_GPIO_DIMC   (0x0 << 15)
 
#define RT5631_GPIO_DMIC_FUN_SEL_MASK   (0x1 << 3)
 
#define RT5631_GPIO_DMIC_FUN_SEL_DIMC   (0x1 << 3)
 
#define RT5631_GPIO_DMIC_FUN_SEL_GPIO   (0x0 << 3)
 
#define RT5631_GPIO_PIN_CON_MASK   (0x1 << 2)
 
#define RT5631_GPIO_PIN_SET_INPUT   (0x0 << 2)
 
#define RT5631_GPIO_PIN_SET_OUTPUT   (0x1 << 2)
 
#define RT5631_POW_ON_SOFT_GEN   (0x1 << 15)
 
#define RT5631_EN_MUTE_UNMUTE_DEPOP   (0x1 << 14)
 
#define RT5631_EN_DEPOP2_FOR_HP   (0x1 << 7)
 
#define RT5631_PD_HPAMP_L_ST_UP   (0x1 << 5)
 
#define RT5631_PD_HPAMP_R_ST_UP   (0x1 << 4)
 
#define RT5631_EN_HP_L_M_UN_MUTE_DEPOP   (0x1 << 1)
 
#define RT5631_EN_HP_R_M_UN_MUTE_DEPOP   (0x1 << 0)
 
#define RT5631_EN_ONE_BIT_DEPOP   (0x1 << 15)
 
#define RT5631_EN_CAP_FREE_DEPOP   (0x1 << 14)
 
#define RT5631_JD_USE_MASK   (0x3 << 14)
 
#define RT5631_JD_USE_JD2   (0x3 << 14)
 
#define RT5631_JD_USE_JD1   (0x2 << 14)
 
#define RT5631_JD_USE_GPIO   (0x1 << 14)
 
#define RT5631_JD_OFF   (0x0 << 14)
 
#define RT5631_JD_HP_EN   (0x1 << 11)
 
#define RT5631_JD_HP_TRI_MASK   (0x1 << 10)
 
#define RT5631_JD_HP_TRI_HI   (0x1 << 10)
 
#define RT5631_JD_HP_TRI_LO   (0x1 << 10)
 
#define RT5631_JD_SPK_L_EN   (0x1 << 9)
 
#define RT5631_JD_SPK_L_TRI_MASK   (0x1 << 8)
 
#define RT5631_JD_SPK_L_TRI_HI   (0x1 << 8)
 
#define RT5631_JD_SPK_L_TRI_LO   (0x0 << 8)
 
#define RT5631_JD_SPK_R_EN   (0x1 << 7)
 
#define RT5631_JD_SPK_R_TRI_MASK   (0x1 << 6)
 
#define RT5631_JD_SPK_R_TRI_HI   (0x1 << 6)
 
#define RT5631_JD_SPK_R_TRI_LO   (0x0 << 6)
 
#define RT5631_JD_MONO_EN   (0x1 << 5)
 
#define RT5631_JD_MONO_TRI_MASK   (0x1 << 4)
 
#define RT5631_JD_MONO_TRI_HI   (0x1 << 4)
 
#define RT5631_JD_MONO_TRI_LO   (0x0 << 4)
 
#define RT5631_JD_AUX_1_EN   (0x1 << 3)
 
#define RT5631_JD_AUX_1_MASK   (0x1 << 2)
 
#define RT5631_JD_AUX_1_TRI_HI   (0x1 << 2)
 
#define RT5631_JD_AUX_1_TRI_LO   (0x0 << 2)
 
#define RT5631_JD_AUX_2_EN   (0x1 << 1)
 
#define RT5631_JD_AUX_2_MASK   (0x1 << 0)
 
#define RT5631_JD_AUX_2_TRI_HI   (0x1 << 0)
 
#define RT5631_JD_AUX_2_TRI_LO   (0x0 << 0)
 
#define RT5631_ALC_ATTACK_RATE_MASK   (0x1F << 8)
 
#define RT5631_ALC_RECOVERY_RATE_MASK   (0x1F << 0)
 
#define RT5631_ALC_COM_NOISE_GATE_MASK   (0xF << 0)
 
#define RT5631_ALC_FUN_MASK   (0x3 << 14)
 
#define RT5631_ALC_FUN_DIS   (0x0 << 14)
 
#define RT5631_ALC_ENA_DAC_PATH   (0x1 << 14)
 
#define RT5631_ALC_ENA_ADC_PATH   (0x3 << 14)
 
#define RT5631_ALC_PARA_UPDATE   (0x1 << 13)
 
#define RT5631_ALC_LIMIT_LEVEL_MASK   (0x1F << 8)
 
#define RT5631_ALC_NOISE_GATE_FUN_MASK   (0x1 << 7)
 
#define RT5631_ALC_NOISE_GATE_FUN_DIS   (0x0 << 7)
 
#define RT5631_ALC_NOISE_GATE_FUN_ENA   (0x1 << 7)
 
#define RT5631_ALC_NOISE_GATE_H_D_MASK   (0x1 << 6)
 
#define RT5631_ALC_NOISE_GATE_H_D_DIS   (0x0 << 6)
 
#define RT5631_ALC_NOISE_GATE_H_D_ENA   (0x1 << 6)
 
#define RT5631_SPATIAL_CTRL_EN   (0x1 << 15)
 
#define RT5631_ALL_PASS_FILTER_EN   (0x1 << 14)
 
#define RT5631_PSEUDO_STEREO_EN   (0x1 << 13)
 
#define RT5631_STEREO_EXPENSION_EN   (0x1 << 12)
 
#define RT5631_GAIN_3D_PARA_MASK   (0x3 << 6)
 
#define RT5631_GAIN_3D_PARA_1_00   (0x0 << 6) /* 3D gain 1.0 */
 
#define RT5631_GAIN_3D_PARA_1_50   (0x1 << 6) /* 3D gain 1.5 */
 
#define RT5631_GAIN_3D_PARA_2_00   (0x2 << 6) /* 3D gain 2.0 */
 
#define RT5631_RATIO_3D_MASK   (0x3 << 4)
 
#define RT5631_RATIO_3D_0_0   (0x0 << 4) /* 3D ratio 0.0 */
 
#define RT5631_RATIO_3D_0_66   (0x1 << 4) /* 3D ratio 0.66 */
 
#define RT5631_RATIO_3D_1_0   (0x2 << 4) /* 3D ratio 1.0 */
 
#define RT5631_APF_FUN_SLE_MASK   (0x3 << 0)
 
#define RT5631_APF_FUN_SEL_48K   (0x3 << 0)
 
#define RT5631_APF_FUN_SEL_44_1K   (0x2 << 0)
 
#define RT5631_APF_FUN_SEL_32K   (0x1 << 0)
 
#define RT5631_APF_FUN_DIS   (0x0 << 0)
 
#define RT5631_HW_EQ_PATH_SEL_MASK   (0x1 << 15)
 
#define RT5631_HW_EQ_PATH_SEL_DAC   (0x0 << 15)
 
#define RT5631_HW_EQ_PATH_SEL_ADC   (0x1 << 15)
 
#define RT5631_HW_EQ_UPDATE_CTRL   (0x1 << 14)
 
#define RT5631_EN_HW_EQ_HPF2   (0x1 << 5)
 
#define RT5631_EN_HW_EQ_HPF1   (0x1 << 4)
 
#define RT5631_EN_HW_EQ_BP3   (0x1 << 3)
 
#define RT5631_EN_HW_EQ_BP2   (0x1 << 2)
 
#define RT5631_EN_HW_EQ_BP1   (0x1 << 1)
 
#define RT5631_EN_HW_EQ_LPF   (0x1 << 0)
 

Macro Definition Documentation

#define RT5631_ADC_CTRL_1   0x12

Definition at line 13 of file rt5631.h.

#define RT5631_ADC_CTRL_2   0x16

Definition at line 15 of file rt5631.h.

#define RT5631_ADC_DATA_SEL_Disable   (0x0 << 14)

Definition at line 567 of file rt5631.h.

#define RT5631_ADC_DATA_SEL_MASK   (0x3 << 14)

Definition at line 566 of file rt5631.h.

#define RT5631_ADC_DATA_SEL_MIC1   (0x1 << 14)

Definition at line 568 of file rt5631.h.

#define RT5631_ADC_DATA_SEL_MIC1_SHIFT   14

Definition at line 569 of file rt5631.h.

#define RT5631_ADC_DATA_SEL_MIC2   (0x2 << 14)

Definition at line 570 of file rt5631.h.

#define RT5631_ADC_DATA_SEL_MIC2_SHIFT   15

Definition at line 571 of file rt5631.h.

#define RT5631_ADC_DATA_SEL_SHIFT   14

Definition at line 573 of file rt5631.h.

#define RT5631_ADC_DATA_SEL_STO   (0x3 << 14)

Definition at line 572 of file rt5631.h.

#define RT5631_ADC_OSR_SEL_128FS   (0x3 << 8)

Definition at line 409 of file rt5631.h.

#define RT5631_ADC_OSR_SEL_16FS   (0x3 << 8)

Definition at line 412 of file rt5631.h.

#define RT5631_ADC_OSR_SEL_32FS   (0x3 << 8)

Definition at line 411 of file rt5631.h.

#define RT5631_ADC_OSR_SEL_64FS   (0x3 << 8)

Definition at line 410 of file rt5631.h.

#define RT5631_ADC_OSR_SEL_MASK   (0x3 << 8)

Definition at line 408 of file rt5631.h.

#define RT5631_ADC_REC_MIXER   0x14

Definition at line 14 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_102_141_153   (0x1 << 0) /* 102/141/153 Hz */

Definition at line 538 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_131_180_156   (0x2 << 0) /* 131/180/156 Hz */

Definition at line 539 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_163_225_245   (0x3 << 0) /* 163/225/245 Hz */

Definition at line 540 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_204_281_306   (0x4 << 0) /* 204/281/306 Hz */

Definition at line 541 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_261_360_392   (0x5 << 0) /* 261/360/392 Hz */

Definition at line 542 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_327_450_490   (0x6 << 0) /* 327/450/490 Hz */

Definition at line 543 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_408_563_612   (0x7 << 0) /* 408/563/612 Hz */

Definition at line 544 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_82_113_122   (0x0 << 0) /* 82/113/122 Hz */

Definition at line 537 of file rt5631.h.

#define RT5631_ADC_WIND_CNR_FREQ_MASK   (0x7 << 0)

Definition at line 536 of file rt5631.h.

#define RT5631_ADC_WIND_FILT_11_22_44K   (0x1 << 4) /*11/22/44k*/

Definition at line 532 of file rt5631.h.

#define RT5631_ADC_WIND_FILT_12_24_48K   (0x2 << 4) /*12/24/48k*/

Definition at line 533 of file rt5631.h.

#define RT5631_ADC_WIND_FILT_8_16_32K   (0x0 << 4) /*8/16/32k*/

Definition at line 531 of file rt5631.h.

#define RT5631_ADC_WIND_FILT_EN   (0x1 << 3)

Definition at line 534 of file rt5631.h.

#define RT5631_ADC_WIND_FILT_MASK   (0x3 << 4)

Definition at line 530 of file rt5631.h.

#define RT5631_ADDA_FILTER_CLK_SEL_256FS   (0 << 7) /* 256FS */

Definition at line 414 of file rt5631.h.

#define RT5631_ADDA_FILTER_CLK_SEL_384FS   (1 << 7) /* 384FS */

Definition at line 415 of file rt5631.h.

#define RT5631_ADDA_MIXER_INTL_REG3   0x52

Definition at line 77 of file rt5631.h.

#define RT5631_ALC_ATTACK_RATE_MASK   (0x1F << 8)

Definition at line 643 of file rt5631.h.

#define RT5631_ALC_COM_NOISE_GATE_MASK   (0xF << 0)

Definition at line 648 of file rt5631.h.

#define RT5631_ALC_CTRL_1   0x64

Definition at line 45 of file rt5631.h.

#define RT5631_ALC_CTRL_2   0x65

Definition at line 46 of file rt5631.h.

#define RT5631_ALC_CTRL_3   0x66

Definition at line 47 of file rt5631.h.

#define RT5631_ALC_ENA_ADC_PATH   (0x3 << 14)

Definition at line 654 of file rt5631.h.

#define RT5631_ALC_ENA_DAC_PATH   (0x1 << 14)

Definition at line 653 of file rt5631.h.

#define RT5631_ALC_FUN_DIS   (0x0 << 14)

Definition at line 652 of file rt5631.h.

#define RT5631_ALC_FUN_MASK   (0x3 << 14)

Definition at line 651 of file rt5631.h.

#define RT5631_ALC_LIMIT_LEVEL_MASK   (0x1F << 8)

Definition at line 656 of file rt5631.h.

#define RT5631_ALC_NOISE_GATE_FUN_DIS   (0x0 << 7)

Definition at line 658 of file rt5631.h.

#define RT5631_ALC_NOISE_GATE_FUN_ENA   (0x1 << 7)

Definition at line 659 of file rt5631.h.

#define RT5631_ALC_NOISE_GATE_FUN_MASK   (0x1 << 7)

Definition at line 657 of file rt5631.h.

#define RT5631_ALC_NOISE_GATE_H_D_DIS   (0x0 << 6)

Definition at line 662 of file rt5631.h.

#define RT5631_ALC_NOISE_GATE_H_D_ENA   (0x1 << 6)

Definition at line 663 of file rt5631.h.

#define RT5631_ALC_NOISE_GATE_H_D_MASK   (0x1 << 6)

Definition at line 661 of file rt5631.h.

#define RT5631_ALC_PARA_UPDATE   (0x1 << 13)

Definition at line 655 of file rt5631.h.

#define RT5631_ALC_RECOVERY_RATE_MASK   (0x1F << 0)

Definition at line 644 of file rt5631.h.

#define RT5631_ALL_PASS_FILTER_EN   (0x1 << 14)

Definition at line 667 of file rt5631.h.

#define RT5631_APF_FUN_DIS   (0x0 << 0)

Definition at line 685 of file rt5631.h.

#define RT5631_APF_FUN_SEL_32K   (0x1 << 0)

Definition at line 684 of file rt5631.h.

#define RT5631_APF_FUN_SEL_44_1K   (0x2 << 0)

Definition at line 683 of file rt5631.h.

#define RT5631_APF_FUN_SEL_48K   (0x3 << 0)

Definition at line 682 of file rt5631.h.

#define RT5631_APF_FUN_SLE_MASK   (0x3 << 0)

Definition at line 681 of file rt5631.h.

#define RT5631_AUX_IN_VOL   0x0A

Definition at line 9 of file rt5631.h.

#define RT5631_AUXOUT_1_VOL_SEL_MASK   (0x1 << 14)

Definition at line 111 of file rt5631.h.

#define RT5631_AUXOUT_1_VOL_SEL_OUTMIX_L   (0x1 << 14)

Definition at line 113 of file rt5631.h.

#define RT5631_AUXOUT_1_VOL_SEL_VMID   (0x0 << 14)

Definition at line 112 of file rt5631.h.

#define RT5631_AUXOUT_2_VOL_SEL_MASK   (0x1 << 6)

Definition at line 116 of file rt5631.h.

#define RT5631_AUXOUT_2_VOL_SEL_OUTMIX_R   (0x1 << 6)

Definition at line 118 of file rt5631.h.

#define RT5631_AUXOUT_2_VOL_SEL_VMID   (0x0 << 6)

Definition at line 117 of file rt5631.h.

#define RT5631_AXO1MIXER_CTRL   0x1E

Definition at line 19 of file rt5631.h.

#define RT5631_AXO2MIXER_CTRL   0x20

Definition at line 20 of file rt5631.h.

#define RT5631_CP_INTL_REG2   0x45

Definition at line 76 of file rt5631.h.

#define RT5631_DAC_OSR_SEL_128FS   (0x3 << 10)

Definition at line 403 of file rt5631.h.

#define RT5631_DAC_OSR_SEL_16FS   (0x3 << 10)

Definition at line 406 of file rt5631.h.

#define RT5631_DAC_OSR_SEL_32FS   (0x3 << 10)

Definition at line 405 of file rt5631.h.

#define RT5631_DAC_OSR_SEL_64FS   (0x3 << 10)

Definition at line 404 of file rt5631.h.

#define RT5631_DAC_OSR_SEL_MASK   (0x3 << 10)

Definition at line 402 of file rt5631.h.

#define RT5631_DAC_VOL_MASK   0xff

Definition at line 127 of file rt5631.h.

#define RT5631_DEPOP_FUN_CTRL_1   0x54

Definition at line 41 of file rt5631.h.

#define RT5631_DEPOP_FUN_CTRL_2   0x56

Definition at line 42 of file rt5631.h.

#define RT5631_DIG_MIC_CTRL   0x24

Definition at line 22 of file rt5631.h.

#define RT5631_DMIC_CLK_CTRL_MASK   (0x3 << 4)

Definition at line 279 of file rt5631.h.

#define RT5631_DMIC_CLK_CTRL_TO_128FS   (0x0 << 4)

Definition at line 280 of file rt5631.h.

#define RT5631_DMIC_CLK_CTRL_TO_32FS   (0x2 << 4)

Definition at line 282 of file rt5631.h.

#define RT5631_DMIC_CLK_CTRL_TO_64FS   (0x1 << 4)

Definition at line 281 of file rt5631.h.

#define RT5631_DMIC_DIS   (0x0 << 15)

Definition at line 268 of file rt5631.h.

#define RT5631_DMIC_ENA   (0x1 << 15)

Definition at line 266 of file rt5631.h.

#define RT5631_DMIC_ENA_MASK   (0x1 << 15)

Definition at line 263 of file rt5631.h.

#define RT5631_DMIC_ENA_SHIFT   15

Definition at line 264 of file rt5631.h.

#define RT5631_DMIC_L_CH_LATCH_FALLING   (0x0 << 9)

Definition at line 275 of file rt5631.h.

#define RT5631_DMIC_L_CH_LATCH_MASK   (0x1 << 9)

Definition at line 273 of file rt5631.h.

#define RT5631_DMIC_L_CH_LATCH_RISING   (0x1 << 9)

Definition at line 274 of file rt5631.h.

#define RT5631_DMIC_L_CH_MUTE   (0x1 << 13)

Definition at line 269 of file rt5631.h.

#define RT5631_DMIC_L_CH_MUTE_SHIFT   13

Definition at line 270 of file rt5631.h.

#define RT5631_DMIC_R_CH_LATCH_FALLING   (0x0 << 8)

Definition at line 278 of file rt5631.h.

#define RT5631_DMIC_R_CH_LATCH_MASK   (0x1 << 8)

Definition at line 276 of file rt5631.h.

#define RT5631_DMIC_R_CH_LATCH_RISING   (0x1 << 8)

Definition at line 277 of file rt5631.h.

#define RT5631_DMIC_R_CH_MUTE   (0x1 << 12)

Definition at line 271 of file rt5631.h.

#define RT5631_DMIC_R_CH_MUTE_SHIFT   12

Definition at line 272 of file rt5631.h.

#define RT5631_EN_CAP_FREE_DEPOP   (0x1 << 14)

Definition at line 603 of file rt5631.h.

#define RT5631_EN_DEPOP2_FOR_HP   (0x1 << 7)

Definition at line 591 of file rt5631.h.

#define RT5631_EN_HP_L_M_UN_MUTE_DEPOP   (0x1 << 1)

Definition at line 597 of file rt5631.h.

#define RT5631_EN_HP_R_M_UN_MUTE_DEPOP   (0x1 << 0)

Definition at line 599 of file rt5631.h.

#define RT5631_EN_HW_EQ_BP1   (0x1 << 1)

Definition at line 697 of file rt5631.h.

#define RT5631_EN_HW_EQ_BP2   (0x1 << 2)

Definition at line 696 of file rt5631.h.

#define RT5631_EN_HW_EQ_BP3   (0x1 << 3)

Definition at line 695 of file rt5631.h.

#define RT5631_EN_HW_EQ_HPF1   (0x1 << 4)

Definition at line 694 of file rt5631.h.

#define RT5631_EN_HW_EQ_HPF2   (0x1 << 5)

Definition at line 693 of file rt5631.h.

#define RT5631_EN_HW_EQ_LPF   (0x1 << 0)

Definition at line 698 of file rt5631.h.

#define RT5631_EN_MUTE_UNMUTE_DEPOP   (0x1 << 14)

Definition at line 590 of file rt5631.h.

#define RT5631_EN_ONE_BIT_DEPOP   (0x1 << 15)

Definition at line 602 of file rt5631.h.

#define RT5631_EQ_BW_BP1   0x03

Definition at line 60 of file rt5631.h.

#define RT5631_EQ_BW_BP2   0x06

Definition at line 63 of file rt5631.h.

#define RT5631_EQ_BW_BP3   0x09

Definition at line 66 of file rt5631.h.

#define RT5631_EQ_BW_HIP   0x0b

Definition at line 68 of file rt5631.h.

#define RT5631_EQ_BW_LOP   0x00

Definition at line 57 of file rt5631.h.

#define RT5631_EQ_CTRL   0x6E

Definition at line 51 of file rt5631.h.

#define RT5631_EQ_FC_BP1   0x02

Definition at line 59 of file rt5631.h.

#define RT5631_EQ_FC_BP2   0x05

Definition at line 62 of file rt5631.h.

#define RT5631_EQ_FC_BP3   0x08

Definition at line 65 of file rt5631.h.

#define RT5631_EQ_GAIN_BP1   0x04

Definition at line 61 of file rt5631.h.

#define RT5631_EQ_GAIN_BP2   0x07

Definition at line 64 of file rt5631.h.

#define RT5631_EQ_GAIN_BP3   0x0a

Definition at line 67 of file rt5631.h.

#define RT5631_EQ_GAIN_HIP   0x0c

Definition at line 69 of file rt5631.h.

#define RT5631_EQ_GAIN_LOP   0x01

Definition at line 58 of file rt5631.h.

#define RT5631_EQ_HPF_A1   0x0d

Definition at line 70 of file rt5631.h.

#define RT5631_EQ_HPF_A2   0x0e

Definition at line 71 of file rt5631.h.

#define RT5631_EQ_HPF_GAIN   0x0f

Definition at line 72 of file rt5631.h.

#define RT5631_EQ_POST_VOL_CTRL   0x12

Definition at line 74 of file rt5631.h.

#define RT5631_EQ_PRE_VOL_CTRL   0x11

Definition at line 73 of file rt5631.h.

#define RT5631_GAIN_3D_PARA_1_00   (0x0 << 6) /* 3D gain 1.0 */

Definition at line 672 of file rt5631.h.

#define RT5631_GAIN_3D_PARA_1_50   (0x1 << 6) /* 3D gain 1.5 */

Definition at line 673 of file rt5631.h.

#define RT5631_GAIN_3D_PARA_2_00   (0x2 << 6) /* 3D gain 2.0 */

Definition at line 674 of file rt5631.h.

#define RT5631_GAIN_3D_PARA_MASK   (0x3 << 6)

Definition at line 671 of file rt5631.h.

#define RT5631_GEN_PUR_CTRL_REG   0x40

Definition at line 34 of file rt5631.h.

#define RT5631_GLOBAL_CLK_CTRL   0x42

Definition at line 35 of file rt5631.h.

#define RT5631_GPIO_CTRL   0x4C

Definition at line 39 of file rt5631.h.

#define RT5631_GPIO_DMIC_FUN_SEL_DIMC   (0x1 << 3)

Definition at line 581 of file rt5631.h.

#define RT5631_GPIO_DMIC_FUN_SEL_GPIO   (0x0 << 3)

Definition at line 582 of file rt5631.h.

#define RT5631_GPIO_DMIC_FUN_SEL_MASK   (0x1 << 3)

Definition at line 580 of file rt5631.h.

#define RT5631_GPIO_PIN_CON_MASK   (0x1 << 2)

Definition at line 584 of file rt5631.h.

#define RT5631_GPIO_PIN_FUN_SEL_GPIO_DIMC   (0x0 << 15)

Definition at line 578 of file rt5631.h.

#define RT5631_GPIO_PIN_FUN_SEL_IRQ   (0x1 << 15)

Definition at line 577 of file rt5631.h.

#define RT5631_GPIO_PIN_FUN_SEL_MASK   (0x1 << 15)

Definition at line 576 of file rt5631.h.

#define RT5631_GPIO_PIN_SET_INPUT   (0x0 << 2)

Definition at line 585 of file rt5631.h.

#define RT5631_GPIO_PIN_SET_OUTPUT   (0x1 << 2)

Definition at line 586 of file rt5631.h.

#define RT5631_HP_L_MUX_SEL_DAC_L   (0x1 << 3)

Definition at line 340 of file rt5631.h.

#define RT5631_HP_L_MUX_SEL_HPVOL_L   (0x0 << 3)

Definition at line 339 of file rt5631.h.

#define RT5631_HP_L_MUX_SEL_MASK   (0x1 << 3)

Definition at line 338 of file rt5631.h.

#define RT5631_HP_L_MUX_SEL_SHIFT   3

Definition at line 341 of file rt5631.h.

#define RT5631_HP_L_VOL_SEL_MASK   (0x1 << 14)

Definition at line 103 of file rt5631.h.

#define RT5631_HP_L_VOL_SEL_OUTMIX_L   (0x1 << 14)

Definition at line 105 of file rt5631.h.

#define RT5631_HP_L_VOL_SEL_VMID   (0x0 << 14)

Definition at line 104 of file rt5631.h.

#define RT5631_HP_OUT_VOL   0x04

Definition at line 7 of file rt5631.h.

#define RT5631_HP_R_MUX_SEL_DAC_R   (0x1 << 2)

Definition at line 345 of file rt5631.h.

#define RT5631_HP_R_MUX_SEL_HPVOL_R   (0x0 << 2)

Definition at line 344 of file rt5631.h.

#define RT5631_HP_R_MUX_SEL_MASK   (0x1 << 2)

Definition at line 343 of file rt5631.h.

#define RT5631_HP_R_MUX_SEL_SHIFT   2

Definition at line 346 of file rt5631.h.

#define RT5631_HP_R_VOL_SEL_MASK   (0x1 << 6)

Definition at line 106 of file rt5631.h.

#define RT5631_HP_R_VOL_SEL_OUTMIX_R   (0x1 << 6)

Definition at line 108 of file rt5631.h.

#define RT5631_HP_R_VOL_SEL_VMID   (0x0 << 6)

Definition at line 107 of file rt5631.h.

#define RT5631_HW_EQ_PATH_SEL_ADC   (0x1 << 15)

Definition at line 690 of file rt5631.h.

#define RT5631_HW_EQ_PATH_SEL_DAC   (0x0 << 15)

Definition at line 689 of file rt5631.h.

#define RT5631_HW_EQ_PATH_SEL_MASK   (0x1 << 15)

Definition at line 688 of file rt5631.h.

#define RT5631_HW_EQ_UPDATE_CTRL   (0x1 << 14)

Definition at line 691 of file rt5631.h.

#define RT5631_I2S_LRCK_SEL_32_BCLK   (0x1 << 12) /* 32FS */

Definition at line 400 of file rt5631.h.

#define RT5631_I2S_LRCK_SEL_64_BCLK   (0x0 << 12) /* 64FS */

Definition at line 399 of file rt5631.h.

#define RT5631_I2S_LRCK_SEL_N_BCLK_MASK   (0x1 << 12)

Definition at line 398 of file rt5631.h.

#define RT5631_I2S_PRE_DIV_1   (0x0 << 13)

Definition at line 391 of file rt5631.h.

#define RT5631_I2S_PRE_DIV_16   (0x4 << 13)

Definition at line 395 of file rt5631.h.

#define RT5631_I2S_PRE_DIV_2   (0x1 << 13)

Definition at line 392 of file rt5631.h.

#define RT5631_I2S_PRE_DIV_32   (0x5 << 13)

Definition at line 396 of file rt5631.h.

#define RT5631_I2S_PRE_DIV_4   (0x2 << 13)

Definition at line 393 of file rt5631.h.

#define RT5631_I2S_PRE_DIV_8   (0x3 << 13)

Definition at line 394 of file rt5631.h.

#define RT5631_I2S_PRE_DIV_MASK   (0x7 << 13)

Definition at line 390 of file rt5631.h.

#define RT5631_INDEX_ADD   0x6A

Definition at line 49 of file rt5631.h.

#define RT5631_INDEX_DATA   0x6C

Definition at line 50 of file rt5631.h.

#define RT5631_INT_ST_IRQ_CTRL_1   0x48

Definition at line 37 of file rt5631.h.

#define RT5631_INT_ST_IRQ_CTRL_2   0x4A

Definition at line 38 of file rt5631.h.

#define RT5631_JACK_DET_CTRL   0x5A

Definition at line 43 of file rt5631.h.

#define RT5631_JD_AUX_1_EN   (0x1 << 3)

Definition at line 632 of file rt5631.h.

#define RT5631_JD_AUX_1_MASK   (0x1 << 2)

Definition at line 633 of file rt5631.h.

#define RT5631_JD_AUX_1_TRI_HI   (0x1 << 2)

Definition at line 634 of file rt5631.h.

#define RT5631_JD_AUX_1_TRI_LO   (0x0 << 2)

Definition at line 635 of file rt5631.h.

#define RT5631_JD_AUX_2_EN   (0x1 << 1)

Definition at line 637 of file rt5631.h.

#define RT5631_JD_AUX_2_MASK   (0x1 << 0)

Definition at line 638 of file rt5631.h.

#define RT5631_JD_AUX_2_TRI_HI   (0x1 << 0)

Definition at line 639 of file rt5631.h.

#define RT5631_JD_AUX_2_TRI_LO   (0x0 << 0)

Definition at line 640 of file rt5631.h.

#define RT5631_JD_HP_EN   (0x1 << 11)

Definition at line 612 of file rt5631.h.

#define RT5631_JD_HP_TRI_HI   (0x1 << 10)

Definition at line 614 of file rt5631.h.

#define RT5631_JD_HP_TRI_LO   (0x1 << 10)

Definition at line 615 of file rt5631.h.

#define RT5631_JD_HP_TRI_MASK   (0x1 << 10)

Definition at line 613 of file rt5631.h.

#define RT5631_JD_MONO_EN   (0x1 << 5)

Definition at line 627 of file rt5631.h.

#define RT5631_JD_MONO_TRI_HI   (0x1 << 4)

Definition at line 629 of file rt5631.h.

#define RT5631_JD_MONO_TRI_LO   (0x0 << 4)

Definition at line 630 of file rt5631.h.

#define RT5631_JD_MONO_TRI_MASK   (0x1 << 4)

Definition at line 628 of file rt5631.h.

#define RT5631_JD_OFF   (0x0 << 14)

Definition at line 610 of file rt5631.h.

#define RT5631_JD_SPK_L_EN   (0x1 << 9)

Definition at line 617 of file rt5631.h.

#define RT5631_JD_SPK_L_TRI_HI   (0x1 << 8)

Definition at line 619 of file rt5631.h.

#define RT5631_JD_SPK_L_TRI_LO   (0x0 << 8)

Definition at line 620 of file rt5631.h.

#define RT5631_JD_SPK_L_TRI_MASK   (0x1 << 8)

Definition at line 618 of file rt5631.h.

#define RT5631_JD_SPK_R_EN   (0x1 << 7)

Definition at line 622 of file rt5631.h.

#define RT5631_JD_SPK_R_TRI_HI   (0x1 << 6)

Definition at line 624 of file rt5631.h.

#define RT5631_JD_SPK_R_TRI_LO   (0x0 << 6)

Definition at line 625 of file rt5631.h.

#define RT5631_JD_SPK_R_TRI_MASK   (0x1 << 6)

Definition at line 623 of file rt5631.h.

#define RT5631_JD_USE_GPIO   (0x1 << 14)

Definition at line 609 of file rt5631.h.

#define RT5631_JD_USE_JD1   (0x2 << 14)

Definition at line 608 of file rt5631.h.

#define RT5631_JD_USE_JD2   (0x3 << 14)

Definition at line 607 of file rt5631.h.

#define RT5631_JD_USE_MASK   (0x3 << 14)

Definition at line 606 of file rt5631.h.

#define RT5631_L_EN   (0x1 << 14)

Definition at line 84 of file rt5631.h.

#define RT5631_L_EN_SHIFT   14

Definition at line 85 of file rt5631.h.

#define RT5631_L_MUTE   (0x1 << 15)

Definition at line 82 of file rt5631.h.

#define RT5631_L_MUTE_SHIFT   15

Definition at line 83 of file rt5631.h.

#define RT5631_L_VOL_SHIFT   8

Definition at line 91 of file rt5631.h.

#define RT5631_M_AXIL_OUTMIXL_BIT   9

Definition at line 161 of file rt5631.h.

#define RT5631_M_AXIL_OUTMIXR_BIT   9

Definition at line 181 of file rt5631.h.

#define RT5631_M_AXIL_RECMIXL_BIT   13

Definition at line 135 of file rt5631.h.

#define RT5631_M_AXIL_TO_OUTMIXER_L   (0x1 << 9)

Definition at line 160 of file rt5631.h.

#define RT5631_M_AXIL_TO_OUTMIXER_R   (0x1 << 9)

Definition at line 180 of file rt5631.h.

#define RT5631_M_AXIL_TO_RECMIXER_L   (0x1 << 13)

Definition at line 134 of file rt5631.h.

#define RT5631_M_AXIR_OUTMIXL_BIT   8

Definition at line 163 of file rt5631.h.

#define RT5631_M_AXIR_OUTMIXR_BIT   8

Definition at line 183 of file rt5631.h.

#define RT5631_M_AXIR_RECMIXR_BIT   5

Definition at line 143 of file rt5631.h.

#define RT5631_M_AXIR_TO_OUTMIXER_L   (0x1 << 8)

Definition at line 162 of file rt5631.h.

#define RT5631_M_AXIR_TO_OUTMIXER_R   (0x1 << 8)

Definition at line 182 of file rt5631.h.

#define RT5631_M_AXIR_TO_RECMIXER_R   (0x1 << 5)

Definition at line 142 of file rt5631.h.

#define RT5631_M_DAC_L_TO_OUTMIXER_L   (0x1 << 13)

Definition at line 152 of file rt5631.h.

#define RT5631_M_DAC_L_TO_SPKMIXER_L   (0x1 << 13)

Definition at line 292 of file rt5631.h.

#define RT5631_M_DAC_R_TO_OUTMIXER_R   (0x1 << 13)

Definition at line 172 of file rt5631.h.

#define RT5631_M_DAC_R_TO_SPKMIXER_R   (0x1 << 5)

Definition at line 301 of file rt5631.h.

#define RT5631_M_DACL_OUTMIXL_BIT   13

Definition at line 153 of file rt5631.h.

#define RT5631_M_DACL_SPKMIXL_BIT   13

Definition at line 293 of file rt5631.h.

#define RT5631_M_DACR_OUTMIXR_BIT   13

Definition at line 173 of file rt5631.h.

#define RT5631_M_DACR_SPKMIXR_BIT   5

Definition at line 302 of file rt5631.h.

#define RT5631_M_MIC1_AXO1MIX_BIT   15

Definition at line 189 of file rt5631.h.

#define RT5631_M_MIC1_AXO2MIX_BIT   15

Definition at line 199 of file rt5631.h.

#define RT5631_M_MIC1_OUTMIXL_BIT   12

Definition at line 155 of file rt5631.h.

#define RT5631_M_MIC1_OUTMIXR_BIT   12

Definition at line 175 of file rt5631.h.

#define RT5631_M_MIC1_P_TO_SPKMIXER_L   (0x1 << 14)

Definition at line 290 of file rt5631.h.

#define RT5631_M_MIC1_RECMIXL_BIT   14

Definition at line 133 of file rt5631.h.

#define RT5631_M_MIC1_TO_AXO1MIXER   (0x1 << 15)

Definition at line 188 of file rt5631.h.

#define RT5631_M_MIC1_TO_AXO2MIXER   (0x1 << 15)

Definition at line 198 of file rt5631.h.

#define RT5631_M_MIC1_TO_OUTMIXER_L   (0x1 << 12)

Definition at line 154 of file rt5631.h.

#define RT5631_M_MIC1_TO_OUTMIXER_R   (0x1 << 12)

Definition at line 174 of file rt5631.h.

#define RT5631_M_MIC1_TO_RECMIXER_L   (0x1 << 14)

Definition at line 132 of file rt5631.h.

#define RT5631_M_MIC1P_SPKMIXL_BIT   14

Definition at line 291 of file rt5631.h.

#define RT5631_M_MIC2_AXO1MIX_BIT   11

Definition at line 191 of file rt5631.h.

#define RT5631_M_MIC2_AXO2MIX_BIT   11

Definition at line 201 of file rt5631.h.

#define RT5631_M_MIC2_OUTMIXL_BIT   11

Definition at line 157 of file rt5631.h.

#define RT5631_M_MIC2_OUTMIXR_BIT   11

Definition at line 177 of file rt5631.h.

#define RT5631_M_MIC2_P_TO_SPKMIXER_R   (0x1 << 6)

Definition at line 299 of file rt5631.h.

#define RT5631_M_MIC2_RECMIXR_BIT   6

Definition at line 141 of file rt5631.h.

#define RT5631_M_MIC2_TO_AXO1MIXER   (0x1 << 11)

Definition at line 190 of file rt5631.h.

#define RT5631_M_MIC2_TO_AXO2MIXER   (0x1 << 11)

Definition at line 200 of file rt5631.h.

#define RT5631_M_MIC2_TO_OUTMIXER_L   (0x1 << 11)

Definition at line 156 of file rt5631.h.

#define RT5631_M_MIC2_TO_OUTMIXER_R   (0x1 << 11)

Definition at line 176 of file rt5631.h.

#define RT5631_M_MIC2_TO_RECMIXER_R   (0x1 << 6)

Definition at line 140 of file rt5631.h.

#define RT5631_M_MIC2P_SPKMIXR_BIT   6

Definition at line 300 of file rt5631.h.

#define RT5631_M_MONO_IN_N_TO_OUTMIXER_R   (0x1 << 10)

Definition at line 178 of file rt5631.h.

#define RT5631_M_MONO_IN_P_TO_OUTMIXER_L   (0x1 << 10)

Definition at line 158 of file rt5631.h.

#define RT5631_M_MONO_IN_RECMIXL_BIT   12

Definition at line 137 of file rt5631.h.

#define RT5631_M_MONO_IN_RECMIXR_BIT   4

Definition at line 145 of file rt5631.h.

#define RT5631_M_MONO_IN_TO_RECMIXER_L   (0x1 << 12)

Definition at line 136 of file rt5631.h.

#define RT5631_M_MONO_IN_TO_RECMIXER_R   (0x1 << 4)

Definition at line 144 of file rt5631.h.

#define RT5631_M_MONO_INN_OUTMIXR_BIT   10

Definition at line 179 of file rt5631.h.

#define RT5631_M_MONO_INP_OUTMIXL_BIT   10

Definition at line 159 of file rt5631.h.

#define RT5631_M_OUTMIXER_L_TO_AXO1MIXER   (0x1 << 7)

Definition at line 192 of file rt5631.h.

#define RT5631_M_OUTMIXER_L_TO_AXO2MIXER   (0x1 << 7)

Definition at line 202 of file rt5631.h.

#define RT5631_M_OUTMIXER_L_TO_RECMIXER_L   (0x1 << 15)

Definition at line 130 of file rt5631.h.

#define RT5631_M_OUTMIXER_L_TO_SPKMIXER_L   (0x1 << 12)

Definition at line 294 of file rt5631.h.

#define RT5631_M_OUTMIXER_R_TO_AXO1MIXER   (0x1 << 6)

Definition at line 194 of file rt5631.h.

#define RT5631_M_OUTMIXER_R_TO_AXO2MIXER   (0x1 << 6)

Definition at line 204 of file rt5631.h.

#define RT5631_M_OUTMIXER_R_TO_RECMIXER_R   (0x1 << 7)

Definition at line 138 of file rt5631.h.

#define RT5631_M_OUTMIXER_R_TO_SPKMIXER_R   (0x1 << 4)

Definition at line 303 of file rt5631.h.

#define RT5631_M_OUTMIXL_AXO1MIX_BIT   7

Definition at line 193 of file rt5631.h.

#define RT5631_M_OUTMIXL_AXO2MIX_BIT   7

Definition at line 203 of file rt5631.h.

#define RT5631_M_OUTMIXL_RECMIXL_BIT   15

Definition at line 131 of file rt5631.h.

#define RT5631_M_OUTMIXL_SPKMIXL_BIT   12

Definition at line 295 of file rt5631.h.

#define RT5631_M_OUTMIXR_AXO1MIX_BIT   6

Definition at line 195 of file rt5631.h.

#define RT5631_M_OUTMIXR_AXO2MIX_BIT   6

Definition at line 205 of file rt5631.h.

#define RT5631_M_OUTMIXR_RECMIXR_BIT   7

Definition at line 139 of file rt5631.h.

#define RT5631_M_OUTMIXR_SPKMIXR_BIT   4

Definition at line 304 of file rt5631.h.

#define RT5631_M_OUTVOL_L_TO_MONOMIXER   (0x1 << 11)

Definition at line 315 of file rt5631.h.

#define RT5631_M_OUTVOL_R_TO_MONOMIXER   (0x1 << 10)

Definition at line 317 of file rt5631.h.

#define RT5631_M_OUTVOLL_MONOMIX_BIT   11

Definition at line 316 of file rt5631.h.

#define RT5631_M_OUTVOLR_MONOMIX_BIT   10

Definition at line 318 of file rt5631.h.

#define RT5631_M_RECMIXER_L_TO_OUTMIXER_L   (0x1 << 15)

Definition at line 148 of file rt5631.h.

#define RT5631_M_RECMIXER_L_TO_OUTMIXER_R   (0x1 << 15)

Definition at line 168 of file rt5631.h.

#define RT5631_M_RECMIXER_L_TO_SPKMIXER_L   (0x1 << 15)

Definition at line 288 of file rt5631.h.

#define RT5631_M_RECMIXER_R_TO_OUTMIXER_L   (0x1 << 14)

Definition at line 150 of file rt5631.h.

#define RT5631_M_RECMIXER_R_TO_OUTMIXER_R   (0x1 << 14)

Definition at line 170 of file rt5631.h.

#define RT5631_M_RECMIXER_R_TO_SPKMIXER_R   (0x1 << 7)

Definition at line 297 of file rt5631.h.

#define RT5631_M_RECMIXL_OUTMIXL_BIT   15

Definition at line 149 of file rt5631.h.

#define RT5631_M_RECMIXL_OUTMIXR_BIT   15

Definition at line 169 of file rt5631.h.

#define RT5631_M_RECMIXL_SPKMIXL_BIT   15

Definition at line 289 of file rt5631.h.

#define RT5631_M_RECMIXR_OUTMIXL_BIT   14

Definition at line 151 of file rt5631.h.

#define RT5631_M_RECMIXR_OUTMIXR_BIT   14

Definition at line 171 of file rt5631.h.

#define RT5631_M_RECMIXR_SPKMIXR_BIT   7

Definition at line 298 of file rt5631.h.

#define RT5631_M_SPKVOL_L_TO_SPOL_MIXER   (0x1 << 15)

Definition at line 307 of file rt5631.h.

#define RT5631_M_SPKVOL_L_TO_SPOR_MIXER   (0x1 << 13)

Definition at line 311 of file rt5631.h.

#define RT5631_M_SPKVOL_R_TO_SPOL_MIXER   (0x1 << 14)

Definition at line 309 of file rt5631.h.

#define RT5631_M_SPKVOL_R_TO_SPOR_MIXER   (0x1 << 12)

Definition at line 313 of file rt5631.h.

#define RT5631_M_SPKVOLL_SPOLMIX_BIT   15

Definition at line 308 of file rt5631.h.

#define RT5631_M_SPKVOLL_SPORMIX_BIT   13

Definition at line 312 of file rt5631.h.

#define RT5631_M_SPKVOLR_SPOLMIX_BIT   14

Definition at line 310 of file rt5631.h.

#define RT5631_M_SPKVOLR_SPORMIX_BIT   12

Definition at line 314 of file rt5631.h.

#define RT5631_M_VDAC_OUTMIXL_BIT   7

Definition at line 165 of file rt5631.h.

#define RT5631_M_VDAC_OUTMIXR_BIT   7

Definition at line 185 of file rt5631.h.

#define RT5631_M_VDAC_TO_OUTMIXER_L   (0x1 << 7)

Definition at line 164 of file rt5631.h.

#define RT5631_M_VDAC_TO_OUTMIXER_R   (0x1 << 7)

Definition at line 184 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_20DB   (0x1 << 12)

Definition at line 213 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_24DB   (0x2 << 12)

Definition at line 214 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_30DB   (0x3 << 12)

Definition at line 215 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_34DB   (0x6 << 12)

Definition at line 218 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_35DB   (0x4 << 12)

Definition at line 216 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_40DB   (0x5 << 12)

Definition at line 217 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_50DB   (0x7 << 12)

Definition at line 219 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_52DB   (0x8 << 12)

Definition at line 220 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_BYPASS   (0x0 << 12)

Definition at line 212 of file rt5631.h.

#define RT5631_MIC1_BOOST_CTRL_MASK   (0xf << 12)

Definition at line 211 of file rt5631.h.

#define RT5631_MIC1_BOOST_SHIFT   12

Definition at line 221 of file rt5631.h.

#define RT5631_MIC1_DIFF_INPUT_CTRL   (0x1 << 15)

Definition at line 121 of file rt5631.h.

#define RT5631_MIC1_DIFF_INPUT_SHIFT   15

Definition at line 122 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_20DB   (0x1 << 8)

Definition at line 225 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_24DB   (0x2 << 8)

Definition at line 226 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_30DB   (0x3 << 8)

Definition at line 227 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_34DB   (0x6 << 8)

Definition at line 230 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_35DB   (0x4 << 8)

Definition at line 228 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_40DB   (0x5 << 8)

Definition at line 229 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_50DB   (0x7 << 8)

Definition at line 231 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_52DB   (0x8 << 8)

Definition at line 232 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_BYPASS   (0x0 << 8)

Definition at line 224 of file rt5631.h.

#define RT5631_MIC2_BOOST_CTRL_MASK   (0xf << 8)

Definition at line 223 of file rt5631.h.

#define RT5631_MIC2_BOOST_SHIFT   8

Definition at line 233 of file rt5631.h.

#define RT5631_MIC2_DIFF_INPUT_CTRL   (0x1 << 7)

Definition at line 123 of file rt5631.h.

#define RT5631_MIC2_DIFF_INPUT_SHIFT   7

Definition at line 124 of file rt5631.h.

#define RT5631_MIC_BIAS_75_PRECNET_AVDD   2

Definition at line 209 of file rt5631.h.

#define RT5631_MIC_BIAS_90_PRECNET_AVDD   1

Definition at line 208 of file rt5631.h.

#define RT5631_MIC_CTRL_1   0x0E

Definition at line 11 of file rt5631.h.

#define RT5631_MIC_CTRL_2   0x22

Definition at line 21 of file rt5631.h.

#define RT5631_MICBIAS1_S_C_DET_DIS   (0x0 << 6)

Definition at line 240 of file rt5631.h.

#define RT5631_MICBIAS1_S_C_DET_ENA   (0x1 << 6)

Definition at line 241 of file rt5631.h.

#define RT5631_MICBIAS1_S_C_DET_MASK   (0x1 << 6)

Definition at line 239 of file rt5631.h.

#define RT5631_MICBIAS1_SHORT_CURR_DET_1500UA   (0x1 << 4)

Definition at line 245 of file rt5631.h.

#define RT5631_MICBIAS1_SHORT_CURR_DET_2000UA   (0x2 << 4)

Definition at line 246 of file rt5631.h.

#define RT5631_MICBIAS1_SHORT_CURR_DET_600UA   (0x0 << 4)

Definition at line 244 of file rt5631.h.

#define RT5631_MICBIAS1_SHORT_CURR_DET_MASK   (0x3 << 4)

Definition at line 243 of file rt5631.h.

#define RT5631_MICBIAS1_VOLT_CTRL_75P   (0x1 << 7)

Definition at line 237 of file rt5631.h.

#define RT5631_MICBIAS1_VOLT_CTRL_90P   (0x0 << 7)

Definition at line 236 of file rt5631.h.

#define RT5631_MICBIAS1_VOLT_CTRL_MASK   (0x1 << 7)

Definition at line 235 of file rt5631.h.

#define RT5631_MICBIAS2_S_C_DET_DIS   (0x0 << 2)

Definition at line 253 of file rt5631.h.

#define RT5631_MICBIAS2_S_C_DET_ENA   (0x1 << 2)

Definition at line 254 of file rt5631.h.

#define RT5631_MICBIAS2_S_C_DET_MASK   (0x1 << 2)

Definition at line 252 of file rt5631.h.

#define RT5631_MICBIAS2_SHORT_CURR_DET_1500UA   (0x1)

Definition at line 258 of file rt5631.h.

#define RT5631_MICBIAS2_SHORT_CURR_DET_2000UA   (0x2)

Definition at line 259 of file rt5631.h.

#define RT5631_MICBIAS2_SHORT_CURR_DET_600UA   (0x0)

Definition at line 257 of file rt5631.h.

#define RT5631_MICBIAS2_SHORT_CURR_DET_MASK   (0x3)

Definition at line 256 of file rt5631.h.

#define RT5631_MICBIAS2_VOLT_CTRL_75P   (0x1 << 3)

Definition at line 250 of file rt5631.h.

#define RT5631_MICBIAS2_VOLT_CTRL_90P   (0x0 << 3)

Definition at line 249 of file rt5631.h.

#define RT5631_MICBIAS2_VOLT_CTRL_MASK   (0x1 << 3)

Definition at line 248 of file rt5631.h.

#define RT5631_MISC_CTRL   0x52

Definition at line 40 of file rt5631.h.

#define RT5631_MONO_AXO_1_2_VOL   0x06

Definition at line 8 of file rt5631.h.

#define RT5631_MONO_DIFF_INPUT_SHIFT   15

Definition at line 285 of file rt5631.h.

#define RT5631_MONO_INPUT_VOL   0x26

Definition at line 23 of file rt5631.h.

#define RT5631_MONO_MUX_SEL_MASK   (0x3 << 6)

Definition at line 333 of file rt5631.h.

#define RT5631_MONO_MUX_SEL_MONO_IN   (0x1 << 6)

Definition at line 335 of file rt5631.h.

#define RT5631_MONO_MUX_SEL_MONOMIXER   (0x0 << 6)

Definition at line 334 of file rt5631.h.

#define RT5631_MONO_MUX_SEL_SHIFT   6

Definition at line 336 of file rt5631.h.

#define RT5631_MONO_SDP_CTRL   0x36

Definition at line 28 of file rt5631.h.

#define RT5631_MUTE_MONO   (0x1 << 13)

Definition at line 114 of file rt5631.h.

#define RT5631_MUTE_MONO_SHIFT   13

Definition at line 115 of file rt5631.h.

#define RT5631_OUTMIXER_L_CTRL   0x1A

Definition at line 17 of file rt5631.h.

#define RT5631_OUTMIXER_R_CTRL   0x1C

Definition at line 18 of file rt5631.h.

#define RT5631_PD_HPAMP_L_ST_UP   (0x1 << 5)

Definition at line 593 of file rt5631.h.

#define RT5631_PD_HPAMP_R_ST_UP   (0x1 << 4)

Definition at line 595 of file rt5631.h.

#define RT5631_PLL_CTRL   0x44

Definition at line 36 of file rt5631.h.

#define RT5631_PLL_CTRL_K_VAL (   k)    (((k)&0x7) << 4)

Definition at line 562 of file rt5631.h.

#define RT5631_PLL_CTRL_M_VAL (   m)    ((m)&0xf)

Definition at line 561 of file rt5631.h.

#define RT5631_PLL_CTRL_N_VAL (   n)    (((n)&0xff) << 8)

Definition at line 563 of file rt5631.h.

#define RT5631_PLLCLK_PRE_DIV1   (0x0 << 11)

Definition at line 557 of file rt5631.h.

#define RT5631_PLLCLK_PRE_DIV2   (0x1 << 11)

Definition at line 558 of file rt5631.h.

#define RT5631_PLLCLK_SOUR_SEL_BCLK   (0x1 << 12)

Definition at line 554 of file rt5631.h.

#define RT5631_PLLCLK_SOUR_SEL_MASK   (0x3 << 12)

Definition at line 552 of file rt5631.h.

#define RT5631_PLLCLK_SOUR_SEL_MCLK   (0x0 << 12)

Definition at line 553 of file rt5631.h.

#define RT5631_PLLCLK_SOUR_SEL_VBCLK   (0x2 << 12)

Definition at line 555 of file rt5631.h.

#define RT5631_POW_ON_SOFT_GEN   (0x1 << 15)

Definition at line 589 of file rt5631.h.

#define RT5631_PSEUDO_SPATL_CTRL   0x68

Definition at line 48 of file rt5631.h.

#define RT5631_PSEUDO_STEREO_EN   (0x1 << 13)

Definition at line 668 of file rt5631.h.

#define RT5631_PWR_ADC_L_CLK   (0x1 << 11)

Definition at line 422 of file rt5631.h.

#define RT5631_PWR_ADC_L_CLK_BIT   11

Definition at line 423 of file rt5631.h.

#define RT5631_PWR_ADC_R_CLK   (0x1 << 10)

Definition at line 424 of file rt5631.h.

#define RT5631_PWR_ADC_R_CLK_BIT   10

Definition at line 425 of file rt5631.h.

#define RT5631_PWR_AXIL_IN_VOL   (0x1 << 9)

Definition at line 504 of file rt5631.h.

#define RT5631_PWR_AXIL_IN_VOL_BIT   9

Definition at line 505 of file rt5631.h.

#define RT5631_PWR_AXIR_IN_VOL   (0x1 << 8)

Definition at line 506 of file rt5631.h.

#define RT5631_PWR_AXIR_IN_VOL_BIT   8

Definition at line 507 of file rt5631.h.

#define RT5631_PWR_AXO1MIXER   (0x1 << 11)

Definition at line 470 of file rt5631.h.

#define RT5631_PWR_AXO1MIXER_BIT   11

Definition at line 471 of file rt5631.h.

#define RT5631_PWR_AXO2MIXER   (0x1 << 10)

Definition at line 472 of file rt5631.h.

#define RT5631_PWR_AXO2MIXER_BIT   10

Definition at line 473 of file rt5631.h.

#define RT5631_PWR_CHARGE_PUMP   (0x1 << 4)

Definition at line 480 of file rt5631.h.

#define RT5631_PWR_CHARGE_PUMP_BIT   4

Definition at line 481 of file rt5631.h.

#define RT5631_PWR_CLASS_D   (0x1 << 12)

Definition at line 420 of file rt5631.h.

#define RT5631_PWR_CLASS_D_BIT   12

Definition at line 421 of file rt5631.h.

#define RT5631_PWR_DAC_L_CLK   (0x1 << 9)

Definition at line 426 of file rt5631.h.

#define RT5631_PWR_DAC_L_CLK_BIT   9

Definition at line 427 of file rt5631.h.

#define RT5631_PWR_DAC_L_TO_MIXER   (0x1 << 6)

Definition at line 432 of file rt5631.h.

#define RT5631_PWR_DAC_L_TO_MIXER_BIT   6

Definition at line 433 of file rt5631.h.

#define RT5631_PWR_DAC_R_CLK   (0x1 << 8)

Definition at line 428 of file rt5631.h.

#define RT5631_PWR_DAC_R_CLK_BIT   8

Definition at line 429 of file rt5631.h.

#define RT5631_PWR_DAC_R_TO_MIXER   (0x1 << 5)

Definition at line 434 of file rt5631.h.

#define RT5631_PWR_DAC_R_TO_MIXER_BIT   5

Definition at line 435 of file rt5631.h.

#define RT5631_PWR_DAC_REF   (0x1 << 7)

Definition at line 430 of file rt5631.h.

#define RT5631_PWR_DAC_REF_BIT   7

Definition at line 431 of file rt5631.h.

#define RT5631_PWR_FAST_VREF_CTRL   (0x1 << 14)

Definition at line 466 of file rt5631.h.

#define RT5631_PWR_FAST_VREF_CTRL_BIT   14

Definition at line 467 of file rt5631.h.

#define RT5631_PWR_HP_AMP_DRIVING   (0x1 << 0)

Definition at line 488 of file rt5631.h.

#define RT5631_PWR_HP_AMP_DRIVING_BIT   0

Definition at line 489 of file rt5631.h.

#define RT5631_PWR_HP_DEPOP_DIS   (0x1 << 1)

Definition at line 486 of file rt5631.h.

#define RT5631_PWR_HP_DEPOP_DIS_BIT   1

Definition at line 487 of file rt5631.h.

#define RT5631_PWR_HP_L_AMP   (0x1 << 3)

Definition at line 482 of file rt5631.h.

#define RT5631_PWR_HP_L_AMP_BIT   3

Definition at line 483 of file rt5631.h.

#define RT5631_PWR_HP_L_OUT_VOL   (0x1 << 11)

Definition at line 500 of file rt5631.h.

#define RT5631_PWR_HP_L_OUT_VOL_BIT   11

Definition at line 501 of file rt5631.h.

#define RT5631_PWR_HP_R_AMP   (0x1 << 2)

Definition at line 484 of file rt5631.h.

#define RT5631_PWR_HP_R_AMP_BIT   2

Definition at line 485 of file rt5631.h.

#define RT5631_PWR_HP_R_OUT_VOL   (0x1 << 10)

Definition at line 502 of file rt5631.h.

#define RT5631_PWR_HP_R_OUT_VOL_BIT   10

Definition at line 503 of file rt5631.h.

#define RT5631_PWR_LOUT_VOL   (0x1 << 13)

Definition at line 496 of file rt5631.h.

#define RT5631_PWR_LOUT_VOL_BIT   13

Definition at line 497 of file rt5631.h.

#define RT5631_PWR_MAIN_BIAS   (0x1 << 13)

Definition at line 468 of file rt5631.h.

#define RT5631_PWR_MAIN_BIAS_BIT   13

Definition at line 469 of file rt5631.h.

#define RT5631_PWR_MAIN_I2S_BIT   15

Definition at line 419 of file rt5631.h.

#define RT5631_PWR_MAIN_I2S_EN   (0x1 << 15)

Definition at line 418 of file rt5631.h.

#define RT5631_PWR_MANAG_ADD1   0x3A

Definition at line 30 of file rt5631.h.

#define RT5631_PWR_MANAG_ADD2   0x3B

Definition at line 31 of file rt5631.h.

#define RT5631_PWR_MANAG_ADD3   0x3C

Definition at line 32 of file rt5631.h.

#define RT5631_PWR_MANAG_ADD4   0x3E

Definition at line 33 of file rt5631.h.

#define RT5631_PWR_MIC1_BOOT_GAIN   (0x1 << 5)

Definition at line 450 of file rt5631.h.

#define RT5631_PWR_MIC1_BOOT_GAIN_BIT   5

Definition at line 451 of file rt5631.h.

#define RT5631_PWR_MIC2_BOOT_GAIN   (0x1 << 4)

Definition at line 452 of file rt5631.h.

#define RT5631_PWR_MIC2_BOOT_GAIN_BIT   4

Definition at line 453 of file rt5631.h.

#define RT5631_PWR_MICBIAS1_VOL   (0x1 << 3)

Definition at line 454 of file rt5631.h.

#define RT5631_PWR_MICBIAS1_VOL_BIT   3

Definition at line 455 of file rt5631.h.

#define RT5631_PWR_MICBIAS2_VOL   (0x1 << 2)

Definition at line 456 of file rt5631.h.

#define RT5631_PWR_MICBIAS2_VOL_BIT   2

Definition at line 457 of file rt5631.h.

#define RT5631_PWR_MONO_AMP_EN   (0x1 << 7)

Definition at line 478 of file rt5631.h.

#define RT5631_PWR_MONO_AMP_EN_BIT   7

Definition at line 479 of file rt5631.h.

#define RT5631_PWR_MONO_DEPOP_DIS   (0x1 << 8)

Definition at line 476 of file rt5631.h.

#define RT5631_PWR_MONO_DEPOP_DIS_BIT   8

Definition at line 477 of file rt5631.h.

#define RT5631_PWR_MONO_IN_N_VOL   (0x1 << 6)

Definition at line 510 of file rt5631.h.

#define RT5631_PWR_MONO_IN_N_VOL_BIT   6

Definition at line 511 of file rt5631.h.

#define RT5631_PWR_MONO_IN_P_VOL   (0x1 << 7)

Definition at line 508 of file rt5631.h.

#define RT5631_PWR_MONO_IN_P_VOL_BIT   7

Definition at line 509 of file rt5631.h.

#define RT5631_PWR_MONOMIXER   (0x1 << 9)

Definition at line 474 of file rt5631.h.

#define RT5631_PWR_MONOMIXER_BIT   9

Definition at line 475 of file rt5631.h.

#define RT5631_PWR_OUTMIXER_L   (0x1 << 15)

Definition at line 438 of file rt5631.h.

#define RT5631_PWR_OUTMIXER_L_BIT   15

Definition at line 439 of file rt5631.h.

#define RT5631_PWR_OUTMIXER_R   (0x1 << 14)

Definition at line 440 of file rt5631.h.

#define RT5631_PWR_OUTMIXER_R_BIT   14

Definition at line 441 of file rt5631.h.

#define RT5631_PWR_PLL1   (0x1 << 1)

Definition at line 458 of file rt5631.h.

#define RT5631_PWR_PLL1_BIT   1

Definition at line 459 of file rt5631.h.

#define RT5631_PWR_PLL2   (0x1 << 0)

Definition at line 460 of file rt5631.h.

#define RT5631_PWR_PLL2_BIT   0

Definition at line 461 of file rt5631.h.

#define RT5631_PWR_RECMIXER_L   (0x1 << 11)

Definition at line 446 of file rt5631.h.

#define RT5631_PWR_RECMIXER_L_BIT   11

Definition at line 447 of file rt5631.h.

#define RT5631_PWR_RECMIXER_R   (0x1 << 10)

Definition at line 448 of file rt5631.h.

#define RT5631_PWR_RECMIXER_R_BIT   10

Definition at line 449 of file rt5631.h.

#define RT5631_PWR_ROUT_VOL   (0x1 << 12)

Definition at line 498 of file rt5631.h.

#define RT5631_PWR_ROUT_VOL_BIT   12

Definition at line 499 of file rt5631.h.

#define RT5631_PWR_SPK_L_VOL   (0x1 << 15)

Definition at line 492 of file rt5631.h.

#define RT5631_PWR_SPK_L_VOL_BIT   15

Definition at line 493 of file rt5631.h.

#define RT5631_PWR_SPK_R_VOL   (0x1 << 14)

Definition at line 494 of file rt5631.h.

#define RT5631_PWR_SPK_R_VOL_BIT   14

Definition at line 495 of file rt5631.h.

#define RT5631_PWR_SPKMIXER_L   (0x1 << 13)

Definition at line 442 of file rt5631.h.

#define RT5631_PWR_SPKMIXER_L_BIT   13

Definition at line 443 of file rt5631.h.

#define RT5631_PWR_SPKMIXER_R   (0x1 << 12)

Definition at line 444 of file rt5631.h.

#define RT5631_PWR_SPKMIXER_R_BIT   12

Definition at line 445 of file rt5631.h.

#define RT5631_PWR_VREF   (0x1 << 15)

Definition at line 464 of file rt5631.h.

#define RT5631_PWR_VREF_BIT   15

Definition at line 465 of file rt5631.h.

#define RT5631_R_EN   (0x1 << 6)

Definition at line 88 of file rt5631.h.

#define RT5631_R_EN_SHIFT   6

Definition at line 89 of file rt5631.h.

#define RT5631_R_MUTE   (0x1 << 7)

Definition at line 86 of file rt5631.h.

#define RT5631_R_MUTE_SHIFT   7

Definition at line 87 of file rt5631.h.

#define RT5631_R_VOL_SHIFT   0

Definition at line 92 of file rt5631.h.

#define RT5631_RATIO_3D_0_0   (0x0 << 4) /* 3D ratio 0.0 */

Definition at line 677 of file rt5631.h.

#define RT5631_RATIO_3D_0_66   (0x1 << 4) /* 3D ratio 0.66 */

Definition at line 678 of file rt5631.h.

#define RT5631_RATIO_3D_1_0   (0x2 << 4) /* 3D ratio 1.0 */

Definition at line 679 of file rt5631.h.

#define RT5631_RATIO_3D_MASK   (0x3 << 4)

Definition at line 676 of file rt5631.h.

#define RT5631_RESET   0x00

Definition at line 5 of file rt5631.h.

#define RT5631_SDP_ADC_CPS_SEL_A_LAW   (0x2 << 10)

Definition at line 356 of file rt5631.h.

#define RT5631_SDP_ADC_CPS_SEL_MASK   (0x3 << 10)

Definition at line 353 of file rt5631.h.

#define RT5631_SDP_ADC_CPS_SEL_OFF   (0x0 << 10)

Definition at line 354 of file rt5631.h.

#define RT5631_SDP_ADC_CPS_SEL_U_LAW   (0x1 << 10)

Definition at line 355 of file rt5631.h.

#define RT5631_SDP_ADC_DATA_L_R_SWAP   (0x1 << 5)

Definition at line 369 of file rt5631.h.

#define RT5631_SDP_CTRL   0x34

Definition at line 27 of file rt5631.h.

#define RT5631_SDP_DAC_CPS_SEL_A_LAW   (0x2 << 8)

Definition at line 361 of file rt5631.h.

#define RT5631_SDP_DAC_CPS_SEL_MASK   (0x3 << 8)

Definition at line 358 of file rt5631.h.

#define RT5631_SDP_DAC_CPS_SEL_OFF   (0x0 << 8)

Definition at line 359 of file rt5631.h.

#define RT5631_SDP_DAC_CPS_SEL_U_LAW   (0x1 << 8)

Definition at line 360 of file rt5631.h.

#define RT5631_SDP_DAC_DATA_L_R_SWAP   (0x1 << 4)

Definition at line 373 of file rt5631.h.

#define RT5631_SDP_DAC_R_INV   (0x1 << 6)

Definition at line 365 of file rt5631.h.

#define RT5631_SDP_I2S_BCLK_POL_CTRL   (0x1 << 7)

Definition at line 363 of file rt5631.h.

#define RT5631_SDP_I2S_DF_I2S   (0x0)

Definition at line 384 of file rt5631.h.

#define RT5631_SDP_I2S_DF_LEFT   (0x1)

Definition at line 385 of file rt5631.h.

#define RT5631_SDP_I2S_DF_MASK   (0x3)

Definition at line 383 of file rt5631.h.

#define RT5631_SDP_I2S_DF_PCM_A   (0x2)

Definition at line 386 of file rt5631.h.

#define RT5631_SDP_I2S_DF_PCM_B   (0x3)

Definition at line 387 of file rt5631.h.

#define RT5631_SDP_I2S_DL_16   (0x0 << 2)

Definition at line 377 of file rt5631.h.

#define RT5631_SDP_I2S_DL_20   (0x1 << 2)

Definition at line 378 of file rt5631.h.

#define RT5631_SDP_I2S_DL_24   (0x2 << 2)

Definition at line 379 of file rt5631.h.

#define RT5631_SDP_I2S_DL_8   (0x3 << 2)

Definition at line 380 of file rt5631.h.

#define RT5631_SDP_I2S_DL_MASK   (0x3 << 2)

Definition at line 376 of file rt5631.h.

#define RT5631_SDP_MODE_SEL_MASK   (0x1 << 15)

Definition at line 349 of file rt5631.h.

#define RT5631_SDP_MODE_SEL_MASTER   (0x0 << 15)

Definition at line 350 of file rt5631.h.

#define RT5631_SDP_MODE_SEL_SLAVE   (0x1 << 15)

Definition at line 351 of file rt5631.h.

#define RT5631_SOFT_VOL_CTRL   0x5C

Definition at line 44 of file rt5631.h.

#define RT5631_SPATIAL_CTRL_EN   (0x1 << 15)

Definition at line 666 of file rt5631.h.

#define RT5631_SPK_AMP_AUTO_RATIO_EN   (0x1 << 15)

Definition at line 514 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_1_00   (0x7 << 12) /* 0.00DB */

Definition at line 524 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_1_09   (0x6 << 12) /* 0.80DB */

Definition at line 523 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_1_27   (0x5 << 12) /* 2.10DB */

Definition at line 522 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_1_44   (0x4 << 12) /* 3.16DB */

Definition at line 521 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_1_56   (0x3 << 12) /* 3.86DB */

Definition at line 520 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_1_68   (0x2 << 12) /* 4.50DB */

Definition at line 519 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_1_99   (0x1 << 12) /* 5.99DB */

Definition at line 518 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_2_34   (0x0 << 12) /* 7.40DB */

Definition at line 517 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_MASK   (0x7 << 12)

Definition at line 516 of file rt5631.h.

#define RT5631_SPK_AMP_RATIO_CTRL_SHIFT   12

Definition at line 525 of file rt5631.h.

#define RT5631_SPK_INTL_CTRL   0x56

Definition at line 78 of file rt5631.h.

#define RT5631_SPK_L_MUX_SEL_DAC_L   (0x3 << 14)

Definition at line 324 of file rt5631.h.

#define RT5631_SPK_L_MUX_SEL_MASK   (0x3 << 14)

Definition at line 321 of file rt5631.h.

#define RT5631_SPK_L_MUX_SEL_MONO_IN   (0x1 << 14)

Definition at line 323 of file rt5631.h.

#define RT5631_SPK_L_MUX_SEL_SHIFT   14

Definition at line 325 of file rt5631.h.

#define RT5631_SPK_L_MUX_SEL_SPKMIXER_L   (0x0 << 14)

Definition at line 322 of file rt5631.h.

#define RT5631_SPK_L_VOL_SEL_MASK   (0x1 << 14)

Definition at line 95 of file rt5631.h.

#define RT5631_SPK_L_VOL_SEL_SPKMIX_L   (0x1 << 14)

Definition at line 97 of file rt5631.h.

#define RT5631_SPK_L_VOL_SEL_VMID   (0x0 << 14)

Definition at line 96 of file rt5631.h.

#define RT5631_SPK_MIXER_CTRL   0x28

Definition at line 24 of file rt5631.h.

#define RT5631_SPK_MONO_HP_OUT_CTRL   0x2C

Definition at line 26 of file rt5631.h.

#define RT5631_SPK_MONO_OUT_CTRL   0x2A

Definition at line 25 of file rt5631.h.

#define RT5631_SPK_OUT_VOL   0x02

Definition at line 6 of file rt5631.h.

#define RT5631_SPK_R_MUX_SEL_DAC_R   (0x3 << 10)

Definition at line 330 of file rt5631.h.

#define RT5631_SPK_R_MUX_SEL_MASK   (0x3 << 10)

Definition at line 327 of file rt5631.h.

#define RT5631_SPK_R_MUX_SEL_MONO_IN   (0x1 << 10)

Definition at line 329 of file rt5631.h.

#define RT5631_SPK_R_MUX_SEL_SHIFT   10

Definition at line 331 of file rt5631.h.

#define RT5631_SPK_R_MUX_SEL_SPKMIXER_R   (0x0 << 10)

Definition at line 328 of file rt5631.h.

#define RT5631_SPK_R_VOL_SEL_MASK   (0x1 << 6)

Definition at line 98 of file rt5631.h.

#define RT5631_SPK_R_VOL_SEL_SPKMIX_R   (0x1 << 6)

Definition at line 100 of file rt5631.h.

#define RT5631_SPK_R_VOL_SEL_VMID   (0x0 << 6)

Definition at line 99 of file rt5631.h.

#define RT5631_STEREO_AD_DA_CLK_CTRL   0x38

Definition at line 29 of file rt5631.h.

#define RT5631_STEREO_ADC_HI_PASS_FILT_EN   (0x1 << 10)

Definition at line 528 of file rt5631.h.

#define RT5631_STEREO_DAC_HI_PASS_FILT_EN   (0x1 << 11)

Definition at line 527 of file rt5631.h.

#define RT5631_STEREO_DAC_VOL_1   0x0C

Definition at line 10 of file rt5631.h.

#define RT5631_STEREO_DAC_VOL_2   0x10

Definition at line 12 of file rt5631.h.

#define RT5631_STEREO_EXPENSION_EN   (0x1 << 12)

Definition at line 669 of file rt5631.h.

#define RT5631_SYSCLK_SOUR_SEL_MASK   (0x3 << 14)

Definition at line 547 of file rt5631.h.

#define RT5631_SYSCLK_SOUR_SEL_MCLK   (0x0 << 14)

Definition at line 548 of file rt5631.h.

#define RT5631_SYSCLK_SOUR_SEL_PLL   (0x1 << 14)

Definition at line 549 of file rt5631.h.

#define RT5631_SYSCLK_SOUR_SEL_PLL_TCK   (0x2 << 14)

Definition at line 550 of file rt5631.h.

#define RT5631_TEST_MODE_CTRL   0x39

Definition at line 75 of file rt5631.h.

#define RT5631_VDAC_DIG_VOL   0x18

Definition at line 16 of file rt5631.h.

#define RT5631_VENDOR_ID   0x7A

Definition at line 52 of file rt5631.h.

#define RT5631_VENDOR_ID1   0x7C

Definition at line 53 of file rt5631.h.

#define RT5631_VENDOR_ID2   0x7E

Definition at line 54 of file rt5631.h.

#define RT5631_VOL_MASK   0x1f

Definition at line 90 of file rt5631.h.