Lines Matching +full:11 +full:- +full:14
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * rt5616.h -- RT5616 ALSA SoC audio driver
17 /* I/O - Output */
21 /* I/O - Input */
24 /* I/O - ADC/DAC/DMIC */
28 /* Mixer - D-D */
33 /* Mixer - ADC */
38 /* Mixer - DAC */
57 /* Format - ADC/DAC */
62 /* Function - Analog */
75 /* Function - Digital */
154 #define RT5616_VOL_L_MUTE (0x1 << 14)
155 #define RT5616_VOL_L_SFT 14
218 #define RT5616_ADC_L_BST_MASK (0x3 << 14)
219 #define RT5616_ADC_L_BST_SFT 14
226 #define RT5616_M_STO1_ADC_L1 (0x1 << 14)
227 #define RT5616_M_STO1_ADC_L1_SFT 14
234 #define RT5616_M_IF1_DAC_L (0x1 << 14)
235 #define RT5616_M_IF1_DAC_L_SFT 14
242 #define RT5616_M_DAC_L1_MIXL (0x1 << 14)
243 #define RT5616_M_DAC_L1_MIXL_SFT 14
260 #define RT5616_M_STO_DD_L1 (0x1 << 14)
261 #define RT5616_M_STO_DD_L1_SFT 14
266 #define RT5616_STO_DD_L2_VOL_MASK (0x1 << 11)
267 #define RT5616_STO_DD_L2_VOL_SFT 11
288 #define RT5616_STO_L_DAC_L_VOL_MASK (0x1 << 14)
289 #define RT5616_STO_L_DAC_L_VOL_SFT 14
294 #define RT5616_M_STO_R_DAC_R (0x1 << 11)
295 #define RT5616_M_STO_R_DAC_R_SFT 11
308 #define RT5616_TXDP_SRC_MASK (0x1 << 14)
309 #define RT5616_TXDP_SRC_SFT 14
310 #define RT5616_TXDP_SRC_NOR (0x0 << 14)
311 #define RT5616_TXDP_SRC_DIV3 (0x1 << 14)
314 #define RT5616_DAC_L2_SEL_MASK (0x3 << 14)
315 #define RT5616_DAC_L2_SEL_SFT 14
316 #define RT5616_DAC_L2_SEL_IF2 (0x0 << 14)
317 #define RT5616_DAC_L2_SEL_IF3 (0x1 << 14)
318 #define RT5616_DAC_L2_SEL_TXDC (0x2 << 14)
319 #define RT5616_DAC_L2_SEL_BASS (0x3 << 14)
325 #define RT5616_IF2_ADC_L_SEL_MASK (0x1 << 11)
326 #define RT5616_IF2_ADC_L_SEL_SFT 11
327 #define RT5616_IF2_ADC_L_SEL_TXDP (0x0 << 11)
328 #define RT5616_IF2_ADC_L_SEL_PASS (0x1 << 11)
415 #define RT5616_M_DAC1_HM (0x1 << 14)
416 #define RT5616_M_DAC1_HM_SFT 14
423 #define RT5616_G_RM_L_SM_L_MASK (0x3 << 14)
424 #define RT5616_G_RM_L_SM_L_SFT 14
445 #define RT5616_G_RM_R_SM_R_MASK (0x3 << 14)
446 #define RT5616_G_RM_R_SM_R_SFT 14
469 #define RT5616_M_DAC_L1_SPM_L (0x1 << 14)
470 #define RT5616_M_DAC_L1_SPM_L_SFT 14
475 #define RT5616_M_BST1_SPM_L (0x1 << 11)
476 #define RT5616_M_BST1_SPM_L_SFT 11
483 #define RT5616_M_BST1_SPM_R (0x1 << 11)
484 #define RT5616_M_BST1_SPM_R_SFT 11
493 #define RT5616_M_DAC_L2_MM (0x1 << 14)
494 #define RT5616_M_DAC_L2_MM_SFT 14
499 #define RT5616_M_BST1_MM (0x1 << 11)
500 #define RT5616_M_BST1_MM_SFT 11
567 #define RT5616_M_DAC_R1_LM (0x1 << 14)
568 #define RT5616_M_DAC_R1_LM_SFT 14
573 #define RT5616_G_LOUTMIX_MASK (0x1 << 11)
574 #define RT5616_G_LOUTMIX_SFT 11
579 #define RT5616_PWR_I2S2 (0x1 << 14)
580 #define RT5616_PWR_I2S2_BIT 14
583 #define RT5616_PWR_DAC_R1 (0x1 << 11)
584 #define RT5616_PWR_DAC_R1_BIT 11
593 #define RT5616_PWR_DAC_STO1_F (0x1 << 11)
594 #define RT5616_PWR_DAC_STO1_F_BIT 11
599 #define RT5616_PWR_FV1 (0x1 << 14)
600 #define RT5616_PWR_FV1_BIT 14
605 #define RT5616_PWR_BG (0x1 << 11)
606 #define RT5616_PWR_BG_BIT 11
628 #define RT5616_PWR_BST2 (0x1 << 14)
629 #define RT5616_PWR_BST2_BIT 14
630 #define RT5616_PWR_MB1 (0x1 << 11)
631 #define RT5616_PWR_MB1_BIT 11
650 #define RT5616_PWR_OM_R (0x1 << 14)
651 #define RT5616_PWR_OM_R_BIT 14
652 #define RT5616_PWR_RM_L (0x1 << 11)
653 #define RT5616_PWR_RM_L_BIT 11
662 #define RT5616_PWR_HV_L (0x1 << 11)
663 #define RT5616_PWR_HV_L_BIT 11
718 #define RT5616_I2S_BCLK_MS2_MASK (0x1 << 11)
733 #define RT5616_DAHPF_EN (0x1 << 11)
734 #define RT5616_DAHPF_EN_SFT 11
743 #define RT5616_TDM_MODE_SEL_MASK (0x1 << 14)
744 #define RT5616_TDM_MODE_SEL_SFT 14
745 #define RT5616_TDM_MODE_SEL_NOR (0x0 << 14)
746 #define RT5616_TDM_MODE_SEL_TDM (0x1 << 14)
797 #define RT5616_TDM_CH_VAL_SEL_MASK (0x1 << 14)
798 #define RT5616_TDM_CH_VAL_SEL_SFT 14
799 #define RT5616_TDM_CH_VAL_SEL_CH01 (0x0 << 14)
800 #define RT5616_TDM_CH_VAL_SEL_CH0123 (0x1 << 14)
805 #define RT5616_TDM_LRCK_PULSE_SEL_MASK (0x1 << 11)
806 #define RT5616_TDM_LRCK_PULSE_SEL_SFT 11
807 #define RT5616_TDM_LRCK_PULSE_SEL_BCLK (0x0 << 11)
808 #define RT5616_TDM_LRCK_PULSE_SEL_CH (0x1 << 11)
829 #define RT5616_SCLK_SRC_MASK (0x3 << 14)
830 #define RT5616_SCLK_SRC_SFT 14
831 #define RT5616_SCLK_SRC_MCLK (0x0 << 14)
832 #define RT5616_SCLK_SRC_PLL1 (0x1 << 14)
857 #define RT5616_PLL_M_BP (0x1 << 11)
858 #define RT5616_PLL_M_BP_SFT 11
869 #define RT5616_ASRC2_REF_MASK (0x1 << 11)
870 #define RT5616_ASRC2_REF_SFT 11
871 #define RT5616_ASRC2_REF_LRCK2 (0x0 << 11)
872 #define RT5616_ASRC2_REF_LRCK1 (0x1 << 11)
881 #define RT5616_STO2_ASRC_EN (0x1 << 14)
882 #define RT5616_STO2_ASRC_EN_SFT 14
891 #define RT5616_ADC_M_MASK (0x1 << 11)
892 #define RT5616_ADC_M_SFT 11
893 #define RT5616_ADC_M_NOR (0x0 << 11)
894 #define RT5616_ADC_M_ASRC (0x1 << 11)
1006 #define RT5616_BPS_MASK (0x1 << 11)
1007 #define RT5616_BPS_SFT 11
1008 #define RT5616_BPS_DIS (0x0 << 11)
1009 #define RT5616_BPS_EN (0x1 << 11)
1050 #define RT5616_OSW_L_MASK (0x1 << 11)
1051 #define RT5616_OSW_L_SFT 11
1052 #define RT5616_OSW_L_DIS (0x0 << 11)
1053 #define RT5616_OSW_L_EN (0x1 << 11)
1079 #define RT5616_MIC1_OVCD_MASK (0x1 << 11)
1080 #define RT5616_MIC1_OVCD_SFT 11
1081 #define RT5616_MIC1_OVCD_DIS (0x0 << 11)
1082 #define RT5616_MIC1_OVCD_EN (0x1 << 11)
1100 #define RT5616_JD_PU (0x1 << 11)
1101 #define RT5616_JD_PU_SFT 11
1130 #define RT5616_EQ_UPD (0x1 << 14)
1131 #define RT5616_EQ_UPD_BIT 14
1209 #define RT5616_DRC_AGC_MASK (0x1 << 14)
1210 #define RT5616_DRC_AGC_SFT 14
1211 #define RT5616_DRC_AGC_DIS (0x0 << 14)
1212 #define RT5616_DRC_AGC_EN (0x1 << 14)
1270 #define RT5616_JD_HP_MASK (0x1 << 11)
1271 #define RT5616_JD_HP_SFT 11
1272 #define RT5616_JD_HP_DIS (0x0 << 11)
1273 #define RT5616_JD_HP_EN (0x1 << 11)
1327 #define RT5616_JD_P_MASK (0x1 << 11)
1328 #define RT5616_JD_P_SFT 11
1329 #define RT5616_JD_P_NOR (0x0 << 11)
1330 #define RT5616_JD_P_INV (0x1 << 11)
1355 #define RT5616_MB1_OC_STKY_MASK (0x1 << 11)
1356 #define RT5616_MB1_OC_STKY_SFT 11
1357 #define RT5616_MB1_OC_STKY_DIS (0x0 << 11)
1358 #define RT5616_MB1_OC_STKY_EN (0x1 << 11)
1372 #define RT5616_STA_JD2 (0x1 << 14)
1373 #define RT5616_STA_JD2_BIT 14
1378 #define RT5616_STA_GP7 (0x1 << 11)
1379 #define RT5616_STA_GP7_BIT 11
1400 #define RT5616_GP2_PIN_MASK (0x1 << 14)
1401 #define RT5616_GP2_PIN_SFT 14
1402 #define RT5616_GP2_PIN_GPIO2 (0x0 << 14)
1403 #define RT5616_GP2_PIN_DMIC1_SCL (0x1 << 14)
1434 #define RT5616_GP5_DR_MASK (0x1 << 14)
1435 #define RT5616_GP5_DR_SFT 14
1436 #define RT5616_GP5_DR_IN (0x0 << 14)
1437 #define RT5616_GP5_DR_OUT (0x1 << 14)
1446 #define RT5616_GP4_DR_MASK (0x1 << 11)
1447 #define RT5616_GP4_DR_SFT 11
1448 #define RT5616_GP4_DR_IN (0x0 << 11)
1449 #define RT5616_GP4_DR_OUT (0x1 << 11)
1538 #define RT5616_SCB_MASK (0x1 << 14)
1539 #define RT5616_SCB_SFT 14
1540 #define RT5616_SCB_DIS (0x0 << 14)
1541 #define RT5616_SCB_EN (0x1 << 14)
1568 #define RT5616_M_MP3_R_MASK (0x1 << 14)
1569 #define RT5616_M_MP3_R_SFT 14
1600 #define RT5616_3D_HP_MASK (0x1 << 14)
1601 #define RT5616_3D_HP_SFT 14
1602 #define RT5616_3D_HP_DIS (0x0 << 14)
1603 #define RT5616_3D_HP_EN (0x1 << 14)
1608 #define RT5616_3D_1F_MIX_MASK (0x3 << 11)
1609 #define RT5616_3D_1F_MIX_SFT 11
1648 #define RT5616_SI_DAC_MASK (0x1 << 11)
1649 #define RT5616_SI_DAC_SFT 11
1650 #define RT5616_SI_DAC_AUTO (0x0 << 11)
1651 #define RT5616_SI_DAC_TEST (0x1 << 11)
1697 #define RT5616_ZCD_DIG_MASK (0x1 << 11)
1698 #define RT5616_ZCD_DIG_SFT 11
1699 #define RT5616_ZCD_DIG_DIS (0x0 << 11)
1700 #define RT5616_ZCD_DIG_EN (0x1 << 11)
1772 #define RT5616_WND_WIND_MASK (0x1 << 13) /* Read-Only */
1774 #define RT5616_WND_STRONG_MASK (0x1 << 12) /* Read-Only */
1783 #define RT5616_DP_ATT_MASK (0x3 << 14)
1784 #define RT5616_DP_ATT_SFT 14