Lines Matching +full:6 +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
158 #define RT5616_VOL_R_MUTE (0x1 << 6)
159 #define RT5616_VOL_R_SFT 6
176 #define RT5616_IN_DF2 (0x1 << 6)
177 #define RT5616_IN_SFT2 6
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
228 #define RT5616_M_STO1_ADC_R1 (0x1 << 6)
229 #define RT5616_M_STO1_ADC_R1_SFT 6
234 #define RT5616_M_IF1_DAC_L (0x1 << 14)
235 #define RT5616_M_IF1_DAC_L_SFT 14
238 #define RT5616_M_IF1_DAC_R (0x1 << 6)
239 #define RT5616_M_IF1_DAC_R_SFT 6
242 #define RT5616_M_DAC_L1_MIXL (0x1 << 14)
243 #define RT5616_M_DAC_L1_MIXL_SFT 14
250 #define RT5616_M_DAC_R1_MIXR (0x1 << 6)
251 #define RT5616_M_DAC_R1_MIXR_SFT 6
260 #define RT5616_M_STO_DD_L1 (0x1 << 14)
261 #define RT5616_M_STO_DD_L1_SFT 14
272 #define RT5616_M_STO_DD_R1 (0x1 << 6)
273 #define RT5616_M_STO_DD_R1_SFT 6
288 #define RT5616_STO_L_DAC_L_VOL_MASK (0x1 << 14)
289 #define RT5616_STO_L_DAC_L_VOL_SFT 14
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)
339 #define RT5616_RXDP_SEL_MASK (0x3 << 6)
340 #define RT5616_RXDP_SEL_SFT 6
341 #define RT5616_RXDP_SEL_NOR (0x0 << 6)
342 #define RT5616_RXDP_SEL_L2R (0x1 << 6)
343 #define RT5616_RXDP_SEL_R2L (0x2 << 6)
344 #define RT5616_RXDP_SEL_SWAP (0x3 << 6)
373 #define RT5616_M_IN2_L_RM_L (0x1 << 6)
374 #define RT5616_M_IN2_L_RM_L_SFT 6
401 #define RT5616_M_IN2_R_RM_R (0x1 << 6)
402 #define RT5616_M_IN2_R_RM_R_SFT 6
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
431 #define RT5616_G_OM_L_SM_L_MASK (0x3 << 6)
432 #define RT5616_G_OM_L_SM_L_SFT 6
445 #define RT5616_G_RM_R_SM_R_MASK (0x3 << 14)
446 #define RT5616_G_RM_R_SM_R_SFT 14
453 #define RT5616_G_OM_R_SM_R_MASK (0x3 << 6)
454 #define RT5616_G_OM_R_SM_R_SFT 6
469 #define RT5616_M_DAC_L1_SPM_L (0x1 << 14)
470 #define RT5616_M_DAC_L1_SPM_L_SFT 14
493 #define RT5616_M_DAC_L2_MM (0x1 << 14)
494 #define RT5616_M_DAC_L2_MM_SFT 14
523 #define RT5616_M_BST2_OM_L (0x1 << 6)
524 #define RT5616_M_BST2_OM_L_SFT 6
553 #define RT5616_M_BST2_OM_R (0x1 << 6)
554 #define RT5616_M_BST2_OM_R_SFT 6
567 #define RT5616_M_DAC_R1_LM (0x1 << 14)
568 #define RT5616_M_DAC_R1_LM_SFT 14
579 #define RT5616_PWR_I2S2 (0x1 << 14)
580 #define RT5616_PWR_I2S2_BIT 14
599 #define RT5616_PWR_FV1 (0x1 << 14)
600 #define RT5616_PWR_FV1_BIT 14
609 #define RT5616_PWR_HP_R (0x1 << 6)
610 #define RT5616_PWR_HP_R_BIT 6
628 #define RT5616_PWR_BST2 (0x1 << 14)
629 #define RT5616_PWR_BST2_BIT 14
650 #define RT5616_PWR_OM_R (0x1 << 14)
651 #define RT5616_PWR_OM_R_BIT 14
672 #define RT5616_PWR_IN2_R (0x1 << 6)
673 #define RT5616_PWR_IN2_R_BIT 6
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)
767 #define RT5616_TDM_I2S_CH2_SEL_MASK (0x3 << 6)
768 #define RT5616_TDM_I2S_CH2_SEL_SFT 6
769 #define RT5616_TDM_I2S_CH2_SEL_LR (0x0 << 6)
770 #define RT5616_TDM_I2S_CH2_SEL_RL (0x1 << 6)
771 #define RT5616_TDM_I2S_CH2_SEL_LL (0x2 << 6)
772 #define RT5616_TDM_I2S_CH2_SEL_RR (0x3 << 6)
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)
821 #define RT5616_M_TDM2_R (0x1 << 6)
822 #define RT5616_M_TDM2_R_SFT 6
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)
881 #define RT5616_STO2_ASRC_EN (0x1 << 14)
882 #define RT5616_STO2_ASRC_EN_SFT 14
927 /*PLL tracking mode 6 (0x89) */
968 #define RT5616_RSTN_MASK (0x1 << 6)
969 #define RT5616_RSTN_SFT 6
970 #define RT5616_RSTN_DIS (0x0 << 6)
971 #define RT5616_RSTN_EN (0x1 << 6)
1024 #define RT5616_DIG_DP_MASK (0x1 << 6)
1025 #define RT5616_DIG_DP_SFT 6
1026 #define RT5616_DIG_DP_DIS (0x0 << 6)
1027 #define RT5616_DIG_DP_EN (0x1 << 6)
1046 #define RT5616_CP_FQ_96_KHZ 6
1063 #define RT5616_IB_HP_MASK (0x3 << 6)
1064 #define RT5616_IB_HP_SFT 6
1065 #define RT5616_IB_HP_125IL (0x0 << 6)
1066 #define RT5616_IB_HP_25IL (0x1 << 6)
1067 #define RT5616_IB_HP_5IL (0x2 << 6)
1068 #define RT5616_IB_HP_1IL (0x3 << 6)
1130 #define RT5616_EQ_UPD (0x1 << 14)
1131 #define RT5616_EQ_UPD_BIT 14
1144 #define RT5616_EQ_STA_HP2 (0x1 << 6)
1145 #define RT5616_EQ_STA_HP2_BIT 6
1168 #define RT5616_EQ_HPF2_MASK (0x1 << 6)
1169 #define RT5616_EQ_HPF2_SFT 6
1170 #define RT5616_EQ_HPF2_DIS (0x0 << 6)
1171 #define RT5616_EQ_HPF2_EN (0x1 << 6)
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)
1249 #define RT5616_DRC_AGC_NG_MASK (0x1 << 6)
1250 #define RT5616_DRC_AGC_NG_SFT 6
1251 #define RT5616_DRC_AGC_NG_DIS (0x0 << 6)
1252 #define RT5616_DRC_AGC_NG_EN (0x1 << 6)
1290 #define RT5616_JD_SPR_TRG_MASK (0x1 << 6)
1291 #define RT5616_JD_SPR_TRG_SFT 6
1292 #define RT5616_JD_SPR_TRG_LO (0x0 << 6)
1293 #define RT5616_JD_SPR_TRG_HI (0x1 << 6)
1315 #define RT5616_JD3_INV (0x1 << 6)
1316 #define RT5616_JD3_INV_SFT 6
1337 #define RT5616_JD1_2_IRQ_EN (0x1 << 6)
1338 #define RT5616_JD1_2_IRQ_EN_SFT 6
1363 #define RT5616_MB2_OC_P_MASK (0x1 << 6)
1372 #define RT5616_STA_JD2 (0x1 << 14)
1373 #define RT5616_STA_JD2_BIT 14
1388 #define RT5616_STA_GP3 (0x1 << 6)
1389 #define RT5616_STA_GP3_BIT 6
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)
1416 #define RT5616_GP6_PIN_MASK (0x1 << 6)
1417 #define RT5616_GP6_PIN_SFT 6
1418 #define RT5616_GP6_PIN_GPIO6 (0x0 << 6)
1419 #define RT5616_GP6_PIN_DMIC_SDA (0x1 << 6)
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)
1466 #define RT5616_GP3_P_MASK (0x1 << 6)
1467 #define RT5616_GP3_P_SFT 6
1468 #define RT5616_GP3_P_NOR (0x0 << 6)
1469 #define RT5616_GP3_P_INV (0x1 << 6)
1504 #define RT5616_GP8_P_MASK (0x1 << 6)
1505 #define RT5616_GP8_P_SFT 6
1506 #define RT5616_GP8_P_NOR (0x0 << 6)
1507 #define RT5616_GP8_P_INV (0x1 << 6)
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)
1560 #define RT5616_M_BB_HPF_R_MASK (0x1 << 6)
1561 #define RT5616_M_BB_HPF_R_SFT 6
1568 #define RT5616_M_MP3_R_MASK (0x1 << 14)
1569 #define RT5616_M_MP3_R_SFT 14
1580 #define RT5616_M_MP3_ORG_L_MASK (0x1 << 6)
1581 #define RT5616_M_MP3_ORG_L_SFT 6
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)
1620 #define RT5616_M_3D_REVB_MASK (0x1 << 6)
1621 #define RT5616_M_3D_REVB_SFT 6
1632 #define RT5616_ZD_T_MASK (0x3 << 6)
1633 #define RT5616_ZD_T_SFT 6
1660 #define RT5616_HPD_RCV_MASK (0x7 << 6)
1661 #define RT5616_HPD_RCV_SFT 6
1708 #define RT5616_M_ZCD_OM_R (0x1 << 6)
1758 #define RT5616_HPF_FC_MASK (0x3f << 6)
1759 #define RT5616_HPF_FC_SFT 6
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