Lines Matching +full:6 +full:- +full:14
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * rt5660.h -- RT5660 ALSA SoC audio driver
20 /* I/O - Output */
23 /* I/O - Input */
26 /* I/O - ADC/DAC/DMIC */
30 /* Mixer - D-D */
35 /* Mixer - ADC */
40 /* Mixer - DAC */
61 /* Format - ADC/DAC */
66 /* Function - Analog */
89 /* Function - Digital */
135 #define RT5660_VOL_L_MUTE (0x1 << 14)
136 #define RT5660_VOL_L_SFT 14
139 #define RT5660_VOL_R_MUTE (0x1 << 6)
140 #define RT5660_VOL_R_SFT 6
179 #define RT5660_STO1_ADC_L_BST_MASK (0x3 << 14)
180 #define RT5660_STO1_ADC_L_BST_SFT 14
185 #define RT5660_M_ADC_L1 (0x1 << 14)
186 #define RT5660_M_ADC_L1_SFT 14
189 #define RT5660_M_ADC_R1 (0x1 << 6)
190 #define RT5660_M_ADC_R1_SFT 6
197 #define RT5660_M_DAC1_L (0x1 << 14)
198 #define RT5660_M_DAC1_L_SFT 14
201 #define RT5660_M_DAC1_R (0x1 << 6)
202 #define RT5660_M_DAC1_R_SFT 6
205 #define RT5660_M_DAC_L1 (0x1 << 14)
206 #define RT5660_M_DAC_L1_SFT 14
213 #define RT5660_M_DAC_R1 (0x1 << 6)
214 #define RT5660_M_DAC_R1_SFT 6
223 #define RT5660_IF1_DAC_IN_SEL (0x3 << 14)
224 #define RT5660_IF1_DAC_IN_SFT 14
269 #define RT5660_M_DAC1_LM (0x1 << 14)
270 #define RT5660_M_DAC1_LM_SFT 14
275 #define RT5660_G_BST3_SM_MASK (0x3 << 14)
276 #define RT5660_G_BST3_SM_SFT 14
283 #define RT5660_G_OM_L_SM_MASK (0x3 << 6)
284 #define RT5660_G_OM_L_SM_SFT 6
297 #define RT5660_M_DAC_R_SPM (0x1 << 14)
298 #define RT5660_M_DAC_R_SPM_SFT 14
385 #define RT5660_PWR_FV1 (0x1 << 14)
386 #define RT5660_PWR_FV1_BIT 14
393 #define RT5660_PWR_HP_R (0x1 << 6)
394 #define RT5660_PWR_HP_R_BIT 6
407 #define RT5660_PWR_BST2 (0x1 << 14)
408 #define RT5660_PWR_BST2_BIT 14
421 #define RT5660_PWR_OM_R (0x1 << 14)
422 #define RT5660_PWR_OM_R_BIT 14
529 #define RT5660_SCLK_SRC_MASK (0x3 << 14)
530 #define RT5660_SCLK_SRC_SFT 14
531 #define RT5660_SCLK_SRC_MCLK (0x0 << 14)
532 #define RT5660_SCLK_SRC_PLL1 (0x1 << 14)
533 #define RT5660_SCLK_SRC_RCCLK (0x2 << 14)
592 #define RT5660_SPK_AG_MASK (0x1 << 14)
593 #define RT5660_SPK_AG_SFT 14
594 #define RT5660_SPK_AG_DIS (0x0 << 14)
595 #define RT5660_SPK_AG_EN (0x1 << 14)
602 #define RT5660_MIC2_BS_MASK (0x1 << 14)
603 #define RT5660_MIC2_BS_SFT 14
604 #define RT5660_MIC2_BS_9AV (0x0 << 14)
605 #define RT5660_MIC2_BS_75AV (0x1 << 14)
619 #define RT5660_MIC2_OVTH_MASK (0x3 << 6)
620 #define RT5660_MIC2_OVTH_SFT 6
621 #define RT5660_MIC2_OVTH_600UA (0x0 << 6)
622 #define RT5660_MIC2_OVTH_1500UA (0x1 << 6)
623 #define RT5660_MIC2_OVTH_2000UA (0x2 << 6)
634 #define RT5660_EQ_UPD (0x1 << 14)
635 #define RT5660_EQ_UPD_BIT 14
638 #define RT5660_JD_MASK (0x3 << 14)
639 #define RT5660_JD_SFT 14
640 #define RT5660_JD_DIS (0x0 << 14)
641 #define RT5660_JD_GPIO1 (0x1 << 14)
642 #define RT5660_JD_GPIO2 (0x2 << 14)
665 #define RT5660_IRQ_OT_MASK (0x1 << 14)
666 #define RT5660_IRQ_OT_SFT 14
667 #define RT5660_IRQ_OT_BP (0x0 << 14)
668 #define RT5660_IRQ_OT_NOR (0x1 << 14)
691 #define RT5660_IRQ_MB2_OC_MASK (0x1 << 14)
692 #define RT5660_IRQ_MB2_OC_SFT 14
693 #define RT5660_IRQ_MB2_OC_BP (0x0 << 14)
694 #define RT5660_IRQ_MB2_OC_NOR (0x1 << 14)
707 #define RT5660_MB2_OC_P_MASK (0x1 << 6)
708 #define RT5660_MB2_OC_P_SFT 6
709 #define RT5660_MB2_OC_P_NOR (0x0 << 6)
710 #define RT5660_MB2_OC_P_INV (0x1 << 6)
717 #define RT5660_GP2_PIN_MASK (0x1 << 14)
718 #define RT5660_GP2_PIN_SFT 14
719 #define RT5660_GP2_PIN_GPIO2 (0x0 << 14)
720 #define RT5660_GP2_PIN_DMIC1_SDA (0x1 << 14)
762 #define RT5660_SPO_SV_MASK (0x1 << 14)
763 #define RT5660_SPO_SV_SFT 14
764 #define RT5660_SPO_SV_DIS (0x0 << 14)
765 #define RT5660_SPO_SV_EN (0x1 << 14)
794 #define RT5660_ZCD_SPM_MASK (0x1 << 6)
795 #define RT5660_ZCD_SPM_SFT 6
796 #define RT5660_ZCD_SPM_DIS (0x0 << 6)
797 #define RT5660_ZCD_SPM_EN (0x1 << 6)
810 #define RT5660_AUTO_DIS_AMP (0x1 << 6)