Lines Matching +full:15 +full:- +full:9
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 */
152 #define RT5616_L_MUTE (0x1 << 15)
153 #define RT5616_L_MUTE_SFT 15
166 #define RT5616_EN_DFO (0x1 << 15)
208 #define RT5616_M_MONO_ADC_L (0x1 << 15)
209 #define RT5616_M_MONO_ADC_L_SFT 15
232 #define RT5616_M_ADCMIX_L (0x1 << 15)
233 #define RT5616_M_ADCMIX_L_SFT 15
246 #define RT5616_M_DAC_R1_MIXL (0x1 << 9)
247 #define RT5616_M_DAC_R1_MIXL_SFT 9
270 #define RT5616_STO_DD_R2_L_VOL_MASK (0x1 << 9)
271 #define RT5616_STO_DD_R2_L_VOL_SFT 9
286 #define RT5616_M_STO_L_DAC_L (0x1 << 15)
287 #define RT5616_M_STO_L_DAC_L_SFT 15
298 #define RT5616_M_DAC_R2_DAC_R (0x1 << 9)
299 #define RT5616_M_DAC_R2_DAC_R_SFT 9
304 #define RT5616_RXDP_SRC_MASK (0x1 << 15)
305 #define RT5616_RXDP_SRC_SFT 15
306 #define RT5616_RXDP_SRC_NOR (0x0 << 15)
307 #define RT5616_RXDP_SRC_DIV3 (0x1 << 15)
467 #define RT5616_M_DAC_R1_SPM_L (0x1 << 15)
468 #define RT5616_M_DAC_R1_SPM_L_SFT 15
491 #define RT5616_M_DAC_R2_MM (0x1 << 15)
492 #define RT5616_M_DAC_R2_MM_SFT 15
521 #define RT5616_M_IN2_L_OM_L (0x1 << 9)
522 #define RT5616_M_IN2_L_OM_L_SFT 9
551 #define RT5616_M_IN2_R_OM_R (0x1 << 9)
552 #define RT5616_M_IN2_R_OM_R_SFT 9
565 #define RT5616_M_DAC_L1_LM (0x1 << 15)
566 #define RT5616_M_DAC_L1_LM_SFT 15
577 #define RT5616_PWR_I2S1 (0x1 << 15)
578 #define RT5616_PWR_I2S1_BIT 15
591 #define RT5616_PWR_ADC_STO1_F (0x1 << 15)
592 #define RT5616_PWR_ADC_STO1_F_BIT 15
597 #define RT5616_PWR_VREF1 (0x1 << 15)
598 #define RT5616_PWR_VREF1_BIT 15
626 #define RT5616_PWR_BST1 (0x1 << 15)
627 #define RT5616_PWR_BST1_BIT 15
632 #define RT5616_PWR_PLL (0x1 << 9)
633 #define RT5616_PWR_PLL_BIT 9
648 #define RT5616_PWR_OM_L (0x1 << 15)
649 #define RT5616_PWR_OM_L_BIT 15
666 #define RT5616_PWR_IN1_L (0x1 << 9)
667 #define RT5616_PWR_IN1_L_BIT 9
676 #define RT5616_I2S_MS_MASK (0x1 << 15)
677 #define RT5616_I2S_MS_SFT 15
678 #define RT5616_I2S_MS_M (0x0 << 15)
679 #define RT5616_I2S_MS_S (0x1 << 15)
739 #define RT5616_TDM_INTEL_SEL_MASK (0x1 << 15)
740 #define RT5616_TDM_INTEL_SEL_SFT 15
741 #define RT5616_TDM_INTEL_SEL_64 (0x0 << 15)
742 #define RT5616_TDM_INTEL_SEL_50 (0x1 << 15)
759 #define RT5616_TDM_ADC_SEL_MASK (0x1 << 9)
760 #define RT5616_TDM_ADC_SEL_SFT 9
761 #define RT5616_TDM_ADC_SEL_NOR (0x0 << 9)
762 #define RT5616_TDM_ADC_SEL_SWAP (0x1 << 9)
793 #define RT5616_TDM_LRCK_POL_SEL_MASK (0x1 << 15)
794 #define RT5616_TDM_LRCK_POL_SEL_SFT 15
795 #define RT5616_TDM_LRCK_POL_SEL_NOR (0x0 << 15)
796 #define RT5616_TDM_LRCK_POL_SEL_INV (0x1 << 15)
813 #define RT5616_TDM_END_EDGE_EN (0x1 << 9)
814 #define RT5616_TDM_END_EDGE_EN_SFT 9
861 #define RT5616_STO1_T_MASK (0x1 << 15)
862 #define RT5616_STO1_T_SFT 15
863 #define RT5616_STO1_T_SCLK (0x0 << 15)
864 #define RT5616_STO1_T_LRCK1 (0x1 << 15)
873 #define RT5616_DMIC_1_M_MASK (0x1 << 9)
874 #define RT5616_DMIC_1_M_SFT 9
875 #define RT5616_DMIC_1_M_NOR (0x0 << 9)
876 #define RT5616_DMIC_1_M_ASYN (0x1 << 9)
879 #define RT5616_STO1_ASRC_EN (0x1 << 15)
880 #define RT5616_STO1_ASRC_EN_SFT 15
952 #define RT5616_SMT_TRIG_MASK (0x1 << 15)
953 #define RT5616_SMT_TRIG_SFT 15
954 #define RT5616_SMT_TRIG_DIS (0x0 << 15)
955 #define RT5616_SMT_TRIG_EN (0x1 << 15)
956 #define RT5616_HP_L_SMT_MASK (0x1 << 9)
957 #define RT5616_HP_L_SMT_SFT 9
958 #define RT5616_HP_L_SMT_DIS (0x0 << 9)
959 #define RT5616_HP_L_SMT_EN (0x1 << 9)
1071 #define RT5616_MIC1_BS_MASK (0x1 << 15)
1072 #define RT5616_MIC1_BS_SFT 15
1073 #define RT5616_MIC1_BS_9AV (0x0 << 15)
1074 #define RT5616_MIC1_BS_75AV (0x1 << 15)
1083 #define RT5616_MIC1_OVTH_MASK (0x3 << 9)
1084 #define RT5616_MIC1_OVTH_SFT 9
1085 #define RT5616_MIC1_OVTH_600UA (0x0 << 9)
1086 #define RT5616_MIC1_OVTH_1500UA (0x1 << 9)
1087 #define RT5616_MIC1_OVTH_2000UA (0x2 << 9)
1126 #define RT5616_EQ_SRC_MASK (0x1 << 15)
1127 #define RT5616_EQ_SRC_SFT 15
1128 #define RT5616_EQ_SRC_DAC (0x0 << 15)
1129 #define RT5616_EQ_SRC_ADC (0x1 << 15)
1199 #define RT5616_MT_MASK (0x1 << 15)
1200 #define RT5616_MT_SFT 15
1201 #define RT5616_MT_DIS (0x0 << 15)
1202 #define RT5616_MT_EN (0x1 << 15)
1205 #define RT5616_DRC_AGC_P_MASK (0x1 << 15)
1206 #define RT5616_DRC_AGC_P_SFT 15
1207 #define RT5616_DRC_AGC_P_DAC (0x0 << 15)
1208 #define RT5616_DRC_AGC_P_ADC (0x1 << 15)
1278 #define RT5616_JD_SPL_MASK (0x1 << 9)
1279 #define RT5616_JD_SPL_SFT 9
1280 #define RT5616_JD_SPL_DIS (0x0 << 9)
1281 #define RT5616_JD_SPL_EN (0x1 << 9)
1304 #define RT5616_JD_TRG_SEL_MASK (0x7 << 9)
1305 #define RT5616_JD_TRG_SEL_SFT 9
1306 #define RT5616_JD_TRG_SEL_GPIO (0x0 << 9)
1307 #define RT5616_JD_TRG_SEL_JD1_1 (0x1 << 9)
1308 #define RT5616_JD_TRG_SEL_JD1_2 (0x2 << 9)
1309 #define RT5616_JD_TRG_SEL_JD2 (0x3 << 9)
1310 #define RT5616_JD_TRG_SEL_JD3 (0x4 << 9)
1319 #define RT5616_IRQ_JD_MASK (0x1 << 15)
1320 #define RT5616_IRQ_JD_SFT 15
1321 #define RT5616_IRQ_JD_BP (0x0 << 15)
1322 #define RT5616_IRQ_JD_NOR (0x1 << 15)
1331 #define RT5616_JD1_1_IRQ_EN (0x1 << 9)
1332 #define RT5616_JD1_1_IRQ_EN_SFT 9
1351 #define RT5616_IRQ_MB1_OC_MASK (0x1 << 15)
1352 #define RT5616_IRQ_MB1_OC_SFT 15
1353 #define RT5616_IRQ_MB1_OC_BP (0x0 << 15)
1354 #define RT5616_IRQ_MB1_OC_NOR (0x1 << 15)
1370 #define RT5616_STA_JD3 (0x1 << 15)
1371 #define RT5616_STA_JD3_BIT 15
1382 #define RT5616_STA_GP5 (0x1 << 9)
1383 #define RT5616_STA_GP5_BIT 9
1396 #define RT5616_GP1_PIN_MASK (0x1 << 15)
1397 #define RT5616_GP1_PIN_SFT 15
1398 #define RT5616_GP1_PIN_GPIO1 (0x0 << 15)
1399 #define RT5616_GP1_PIN_IRQ (0x1 << 15)
1404 #define RT5616_GPIO_M_MASK (0x1 << 9)
1405 #define RT5616_GPIO_M_SFT 9
1406 #define RT5616_GPIO_M_FLT (0x0 << 9)
1407 #define RT5616_GPIO_M_PH (0x1 << 9)
1454 #define RT5616_GP4_P_MASK (0x1 << 9)
1455 #define RT5616_GP4_P_SFT 9
1456 #define RT5616_GP4_P_NOR (0x0 << 9)
1457 #define RT5616_GP4_P_INV (0x1 << 9)
1534 #define RT5616_SCB_SWAP_MASK (0x1 << 15)
1535 #define RT5616_SCB_SWAP_SFT 15
1536 #define RT5616_SCB_SWAP_DIS (0x0 << 15)
1537 #define RT5616_SCB_SWAP_EN (0x1 << 15)
1544 #define RT5616_BB_MASK (0x1 << 15)
1545 #define RT5616_BB_SFT 15
1546 #define RT5616_BB_DIS (0x0 << 15)
1547 #define RT5616_BB_EN (0x1 << 15)
1554 #define RT5616_M_BB_L_MASK (0x1 << 9)
1555 #define RT5616_M_BB_L_SFT 9
1566 #define RT5616_M_MP3_L_MASK (0x1 << 15)
1567 #define RT5616_M_MP3_L_SFT 15
1596 #define RT5616_3D_CF_MASK (0x1 << 15)
1597 #define RT5616_3D_CF_SFT 15
1598 #define RT5616_3D_CF_DIS (0x0 << 15)
1599 #define RT5616_3D_CF_EN (0x1 << 15)
1614 #define RT5616_M_3D_HRTF_MASK (0x1 << 9)
1615 #define RT5616_M_3D_HRTF_SFT 9
1624 #define RT5616_2ND_HPF_MASK (0x1 << 15)
1625 #define RT5616_2ND_HPF_SFT 15
1626 #define RT5616_2ND_HPF_DIS (0x0 << 15)
1627 #define RT5616_2ND_HPF_EN (0x1 << 15)
1656 #define RT5616_DC_CAL_MASK (0x1 << 9)
1657 #define RT5616_DC_CAL_SFT 9
1658 #define RT5616_DC_CAL_DIS (0x0 << 9)
1659 #define RT5616_DC_CAL_EN (0x1 << 9)
1685 #define RT5616_SV_MASK (0x1 << 15)
1686 #define RT5616_SV_SFT 15
1687 #define RT5616_SV_DIS (0x0 << 15)
1688 #define RT5616_SV_EN (0x1 << 15)
1715 #define RT5616_ZCD_HP_MASK (0x1 << 15)
1716 #define RT5616_ZCD_HP_SFT 15
1717 #define RT5616_ZCD_HP_DIS (0x0 << 15)
1718 #define RT5616_ZCD_HP_EN (0x1 << 15)
1734 #define RT5616_3D_SPK_MASK (0x1 << 15)
1735 #define RT5616_3D_SPK_SFT 15
1736 #define RT5616_3D_SPK_DIS (0x0 << 15)
1737 #define RT5616_3D_SPK_EN (0x1 << 15)
1746 #define RT5616_WND_MASK (0x1 << 15)
1747 #define RT5616_WND_SFT 15
1748 #define RT5616_WND_DIS (0x0 << 15)
1749 #define RT5616_WND_EN (0x1 << 15)
1772 #define RT5616_WND_WIND_MASK (0x1 << 13) /* Read-Only */
1774 #define RT5616_WND_STRONG_MASK (0x1 << 12) /* Read-Only */