~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/rt298.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/codecs/rt298.h (Version linux-6.12-rc7) and /sound/soc/codecs/rt298.h (Version linux-6.4.16)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*                                                  2 /*
  3  * rt298.h  --  RT298 ALSA SoC audio driver         3  * rt298.h  --  RT298 ALSA SoC audio driver
  4  *                                                  4  *
  5  * Copyright 2011 Realtek Microelectronics          5  * Copyright 2011 Realtek Microelectronics
  6  * Author: Johnny Hsu <johnnyhsu@realtek.com>       6  * Author: Johnny Hsu <johnnyhsu@realtek.com>
  7  */                                                 7  */
  8                                                     8 
  9 #ifndef __RT298_H__                                 9 #ifndef __RT298_H__
 10 #define __RT298_H__                                10 #define __RT298_H__
 11                                                    11 
 12 #define VERB_CMD(V, N, D) ((N << 20) | (V << 8     12 #define VERB_CMD(V, N, D) ((N << 20) | (V << 8) | D)
 13                                                    13 
 14 #define RT298_AUDIO_FUNCTION_GROUP                 14 #define RT298_AUDIO_FUNCTION_GROUP                      0x01
 15 #define RT298_DAC_OUT1                             15 #define RT298_DAC_OUT1                                  0x02
 16 #define RT298_DAC_OUT2                             16 #define RT298_DAC_OUT2                                  0x03
 17 #define RT298_DIG_CVT                              17 #define RT298_DIG_CVT                                   0x06
 18 #define RT298_ADC_IN1                              18 #define RT298_ADC_IN1                                   0x09
 19 #define RT298_ADC_IN2                              19 #define RT298_ADC_IN2                                   0x08
 20 #define RT298_MIXER_IN                             20 #define RT298_MIXER_IN                                  0x0b
 21 #define RT298_MIXER_OUT1                           21 #define RT298_MIXER_OUT1                                0x0c
 22 #define RT298_MIXER_OUT2                           22 #define RT298_MIXER_OUT2                                0x0d
 23 #define RT298_DMIC1                                23 #define RT298_DMIC1                                     0x12
 24 #define RT298_DMIC2                                24 #define RT298_DMIC2                                     0x13
 25 #define RT298_SPK_OUT                              25 #define RT298_SPK_OUT                                   0x14
 26 #define RT298_MIC1                                 26 #define RT298_MIC1                                      0x18
 27 #define RT298_LINE1                                27 #define RT298_LINE1                                     0x1a
 28 #define RT298_BEEP                                 28 #define RT298_BEEP                                      0x1d
 29 #define RT298_SPDIF                                29 #define RT298_SPDIF                                     0x1e
 30 #define RT298_VENDOR_REGISTERS                     30 #define RT298_VENDOR_REGISTERS                          0x20
 31 #define RT298_HP_OUT                               31 #define RT298_HP_OUT                                    0x21
 32 #define RT298_MIXER_IN1                            32 #define RT298_MIXER_IN1                                 0x22
 33 #define RT298_MIXER_IN2                            33 #define RT298_MIXER_IN2                                 0x23
 34 #define RT298_INLINE_CMD                           34 #define RT298_INLINE_CMD                                0x55
 35                                                    35 
 36 #define RT298_SET_PIN_SFT                          36 #define RT298_SET_PIN_SFT                               6
 37 #define RT298_SET_PIN_ENABLE                       37 #define RT298_SET_PIN_ENABLE                            0x40
 38 #define RT298_SET_PIN_DISABLE                      38 #define RT298_SET_PIN_DISABLE                           0
 39 #define RT298_SET_EAPD_HIGH                        39 #define RT298_SET_EAPD_HIGH                             0x2
 40 #define RT298_SET_EAPD_LOW                         40 #define RT298_SET_EAPD_LOW                              0
 41                                                    41 
 42 #define RT298_MUTE_SFT                             42 #define RT298_MUTE_SFT                                  7
 43                                                    43 
 44 /* Verb commands */                                44 /* Verb commands */
 45 #define RT298_GET_PARAM(NID, PARAM) VERB_CMD(A     45 #define RT298_GET_PARAM(NID, PARAM) VERB_CMD(AC_VERB_PARAMETERS, NID, PARAM)
 46 #define RT298_SET_POWER(NID) VERB_CMD(AC_VERB_     46 #define RT298_SET_POWER(NID) VERB_CMD(AC_VERB_SET_POWER_STATE, NID, 0)
 47 #define RT298_SET_AUDIO_POWER RT298_SET_POWER(     47 #define RT298_SET_AUDIO_POWER RT298_SET_POWER(RT298_AUDIO_FUNCTION_GROUP)
 48 #define RT298_SET_HPO_POWER RT298_SET_POWER(RT     48 #define RT298_SET_HPO_POWER RT298_SET_POWER(RT298_HP_OUT)
 49 #define RT298_SET_SPK_POWER RT298_SET_POWER(RT     49 #define RT298_SET_SPK_POWER RT298_SET_POWER(RT298_SPK_OUT)
 50 #define RT298_SET_DMIC1_POWER RT298_SET_POWER(     50 #define RT298_SET_DMIC1_POWER RT298_SET_POWER(RT298_DMIC1)
 51 #define RT298_SPK_MUX\                             51 #define RT298_SPK_MUX\
 52         VERB_CMD(AC_VERB_SET_CONNECT_SEL, RT29     52         VERB_CMD(AC_VERB_SET_CONNECT_SEL, RT298_SPK_OUT, 0)
 53 #define RT298_HPO_MUX\                             53 #define RT298_HPO_MUX\
 54         VERB_CMD(AC_VERB_SET_CONNECT_SEL, RT29     54         VERB_CMD(AC_VERB_SET_CONNECT_SEL, RT298_HP_OUT, 0)
 55 #define RT298_ADC0_MUX\                            55 #define RT298_ADC0_MUX\
 56         VERB_CMD(AC_VERB_SET_CONNECT_SEL, RT29     56         VERB_CMD(AC_VERB_SET_CONNECT_SEL, RT298_MIXER_IN1, 0)
 57 #define RT298_ADC1_MUX\                            57 #define RT298_ADC1_MUX\
 58         VERB_CMD(AC_VERB_SET_CONNECT_SEL, RT29     58         VERB_CMD(AC_VERB_SET_CONNECT_SEL, RT298_MIXER_IN2, 0)
 59 #define RT298_SET_MIC1\                            59 #define RT298_SET_MIC1\
 60         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTRO     60         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTROL, RT298_MIC1, 0)
 61 #define RT298_SET_PIN_HPO\                         61 #define RT298_SET_PIN_HPO\
 62         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTRO     62         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTROL, RT298_HP_OUT, 0)
 63 #define RT298_SET_PIN_SPK\                         63 #define RT298_SET_PIN_SPK\
 64         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTRO     64         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTROL, RT298_SPK_OUT, 0)
 65 #define RT298_SET_PIN_DMIC1\                       65 #define RT298_SET_PIN_DMIC1\
 66         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTRO     66         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTROL, RT298_DMIC1, 0)
 67 #define RT298_SET_PIN_SPDIF\                       67 #define RT298_SET_PIN_SPDIF\
 68         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTRO     68         VERB_CMD(AC_VERB_SET_PIN_WIDGET_CONTROL, RT298_SPDIF, 0)
 69 #define RT298_SET_PIN_DIG_CVT\                     69 #define RT298_SET_PIN_DIG_CVT\
 70         VERB_CMD(AC_VERB_SET_DIGI_CONVERT_1, R     70         VERB_CMD(AC_VERB_SET_DIGI_CONVERT_1, RT298_DIG_CVT, 0)
 71 #define RT298_SPK_EAPD\                            71 #define RT298_SPK_EAPD\
 72         VERB_CMD(AC_VERB_SET_EAPD_BTLENABLE, R     72         VERB_CMD(AC_VERB_SET_EAPD_BTLENABLE, RT298_SPK_OUT, 0)
 73 #define RT298_SET_AMP_GAIN_HPO\                    73 #define RT298_SET_AMP_GAIN_HPO\
 74         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     74         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_HP_OUT, 0)
 75 #define RT298_SET_AMP_GAIN_ADC_IN1\                75 #define RT298_SET_AMP_GAIN_ADC_IN1\
 76         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     76         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_ADC_IN1, 0)
 77 #define RT298_SET_AMP_GAIN_ADC_IN2\                77 #define RT298_SET_AMP_GAIN_ADC_IN2\
 78         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     78         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_ADC_IN2, 0)
 79 #define RT298_GET_HP_SENSE\                        79 #define RT298_GET_HP_SENSE\
 80         VERB_CMD(AC_VERB_GET_PIN_SENSE, RT298_     80         VERB_CMD(AC_VERB_GET_PIN_SENSE, RT298_HP_OUT, 0)
 81 #define RT298_GET_MIC1_SENSE\                      81 #define RT298_GET_MIC1_SENSE\
 82         VERB_CMD(AC_VERB_GET_PIN_SENSE, RT298_     82         VERB_CMD(AC_VERB_GET_PIN_SENSE, RT298_MIC1, 0)
 83 #define RT298_SET_DMIC2_DEFAULT\                   83 #define RT298_SET_DMIC2_DEFAULT\
 84         VERB_CMD(AC_VERB_SET_CONFIG_DEFAULT_BY     84         VERB_CMD(AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, RT298_DMIC2, 0)
 85 #define RT298_SET_SPDIF_DEFAULT\                   85 #define RT298_SET_SPDIF_DEFAULT\
 86         VERB_CMD(AC_VERB_SET_CONFIG_DEFAULT_BY     86         VERB_CMD(AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, RT298_SPDIF, 0)
 87 #define RT298_DACL_GAIN\                           87 #define RT298_DACL_GAIN\
 88         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     88         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_DAC_OUT1, 0xa000)
 89 #define RT298_DACR_GAIN\                           89 #define RT298_DACR_GAIN\
 90         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     90         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_DAC_OUT1, 0x9000)
 91 #define RT298_ADCL_GAIN\                           91 #define RT298_ADCL_GAIN\
 92         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     92         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_ADC_IN1, 0x6000)
 93 #define RT298_ADCR_GAIN\                           93 #define RT298_ADCR_GAIN\
 94         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     94         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_ADC_IN1, 0x5000)
 95 #define RT298_MIC_GAIN\                            95 #define RT298_MIC_GAIN\
 96         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     96         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_MIC1, 0x7000)
 97 #define RT298_SPOL_GAIN\                           97 #define RT298_SPOL_GAIN\
 98         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT     98         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_SPK_OUT, 0xa000)
 99 #define RT298_SPOR_GAIN\                           99 #define RT298_SPOR_GAIN\
100         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    100         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_SPK_OUT, 0x9000)
101 #define RT298_HPOL_GAIN\                          101 #define RT298_HPOL_GAIN\
102         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    102         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_HP_OUT, 0xa000)
103 #define RT298_HPOR_GAIN\                          103 #define RT298_HPOR_GAIN\
104         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    104         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_HP_OUT, 0x9000)
105 #define RT298_F_DAC_SWITCH\                       105 #define RT298_F_DAC_SWITCH\
106         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    106         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_MIXER_OUT1, 0x7000)
107 #define RT298_F_RECMIX_SWITCH\                    107 #define RT298_F_RECMIX_SWITCH\
108         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    108         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_MIXER_OUT1, 0x7100)
109 #define RT298_REC_MIC_SWITCH\                     109 #define RT298_REC_MIC_SWITCH\
110         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    110         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_MIXER_IN, 0x7000)
111 #define RT298_REC_I2S_SWITCH\                     111 #define RT298_REC_I2S_SWITCH\
112         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    112         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_MIXER_IN, 0x7100)
113 #define RT298_REC_LINE_SWITCH\                    113 #define RT298_REC_LINE_SWITCH\
114         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    114         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_MIXER_IN, 0x7200)
115 #define RT298_REC_BEEP_SWITCH\                    115 #define RT298_REC_BEEP_SWITCH\
116         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT    116         VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, RT298_MIXER_IN, 0x7300)
117 #define RT298_DAC_FORMAT\                         117 #define RT298_DAC_FORMAT\
118         VERB_CMD(AC_VERB_SET_STREAM_FORMAT, RT    118         VERB_CMD(AC_VERB_SET_STREAM_FORMAT, RT298_DAC_OUT1, 0)
119 #define RT298_ADC_FORMAT\                         119 #define RT298_ADC_FORMAT\
120         VERB_CMD(AC_VERB_SET_STREAM_FORMAT, RT    120         VERB_CMD(AC_VERB_SET_STREAM_FORMAT, RT298_ADC_IN1, 0)
121 #define RT298_COEF_INDEX\                         121 #define RT298_COEF_INDEX\
122         VERB_CMD(AC_VERB_SET_COEF_INDEX, RT298    122         VERB_CMD(AC_VERB_SET_COEF_INDEX, RT298_VENDOR_REGISTERS, 0)
123 #define RT298_PROC_COEF\                          123 #define RT298_PROC_COEF\
124         VERB_CMD(AC_VERB_SET_PROC_COEF, RT298_    124         VERB_CMD(AC_VERB_SET_PROC_COEF, RT298_VENDOR_REGISTERS, 0)
125 #define RT298_UNSOLICITED_INLINE_CMD\             125 #define RT298_UNSOLICITED_INLINE_CMD\
126         VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABL    126         VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABLE, RT298_INLINE_CMD, 0)
127 #define RT298_UNSOLICITED_HP_OUT\                 127 #define RT298_UNSOLICITED_HP_OUT\
128         VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABL    128         VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABLE, RT298_HP_OUT, 0)
129 #define RT298_UNSOLICITED_MIC1\                   129 #define RT298_UNSOLICITED_MIC1\
130         VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABL    130         VERB_CMD(AC_VERB_SET_UNSOLICITED_ENABLE, RT298_MIC1, 0)
131                                                   131 
132 /* Index registers */                             132 /* Index registers */
133 #define RT298_A_BIAS_CTRL1      0x01              133 #define RT298_A_BIAS_CTRL1      0x01
134 #define RT298_A_BIAS_CTRL2      0x02              134 #define RT298_A_BIAS_CTRL2      0x02
135 #define RT298_POWER_CTRL1       0x03              135 #define RT298_POWER_CTRL1       0x03
136 #define RT298_A_BIAS_CTRL3      0x04              136 #define RT298_A_BIAS_CTRL3      0x04
137 #define RT298_D_FILTER_CTRL     0x05              137 #define RT298_D_FILTER_CTRL     0x05
138 #define RT298_POWER_CTRL2       0x08              138 #define RT298_POWER_CTRL2       0x08
139 #define RT298_I2S_CTRL1         0x09              139 #define RT298_I2S_CTRL1         0x09
140 #define RT298_I2S_CTRL2         0x0a              140 #define RT298_I2S_CTRL2         0x0a
141 #define RT298_CLK_DIV           0x0b              141 #define RT298_CLK_DIV           0x0b
142 #define RT298_DC_GAIN           0x0d              142 #define RT298_DC_GAIN           0x0d
143 #define RT298_POWER_CTRL3       0x0f              143 #define RT298_POWER_CTRL3       0x0f
144 #define RT298_MIC1_DET_CTRL     0x19              144 #define RT298_MIC1_DET_CTRL     0x19
145 #define RT298_MISC_CTRL1        0x20              145 #define RT298_MISC_CTRL1        0x20
146 #define RT298_IRQ_CTRL          0x33              146 #define RT298_IRQ_CTRL          0x33
147 #define RT298_WIND_FILTER_CTRL  0x46              147 #define RT298_WIND_FILTER_CTRL  0x46
148 #define RT298_PLL_CTRL1         0x49              148 #define RT298_PLL_CTRL1         0x49
149 #define RT298_VAD_CTRL          0x4e              149 #define RT298_VAD_CTRL          0x4e
150 #define RT298_CBJ_CTRL1         0x4f              150 #define RT298_CBJ_CTRL1         0x4f
151 #define RT298_CBJ_CTRL2         0x50              151 #define RT298_CBJ_CTRL2         0x50
152 #define RT298_PLL_CTRL          0x63              152 #define RT298_PLL_CTRL          0x63
153 #define RT298_DEPOP_CTRL1       0x66              153 #define RT298_DEPOP_CTRL1       0x66
154 #define RT298_DEPOP_CTRL2       0x67              154 #define RT298_DEPOP_CTRL2       0x67
155 #define RT298_DEPOP_CTRL3       0x68              155 #define RT298_DEPOP_CTRL3       0x68
156 #define RT298_DEPOP_CTRL4       0x69              156 #define RT298_DEPOP_CTRL4       0x69
157 #define RT298_IRQ_FLAG_CTRL     0x7c              157 #define RT298_IRQ_FLAG_CTRL     0x7c
158                                                   158 
159 /* SPDIF (0x06) */                                159 /* SPDIF (0x06) */
160 #define RT298_SPDIF_SEL_SFT     0                 160 #define RT298_SPDIF_SEL_SFT     0
161 #define RT298_SPDIF_SEL_PCM0    0                 161 #define RT298_SPDIF_SEL_PCM0    0
162 #define RT298_SPDIF_SEL_PCM1    1                 162 #define RT298_SPDIF_SEL_PCM1    1
163 #define RT298_SPDIF_SEL_SPOUT   2                 163 #define RT298_SPDIF_SEL_SPOUT   2
164 #define RT298_SPDIF_SEL_PP      3                 164 #define RT298_SPDIF_SEL_PP      3
165                                                   165 
166 /* RECMIX (0x0b) */                               166 /* RECMIX (0x0b) */
167 #define RT298_M_REC_BEEP_SFT    0                 167 #define RT298_M_REC_BEEP_SFT    0
168 #define RT298_M_REC_LINE1_SFT   1                 168 #define RT298_M_REC_LINE1_SFT   1
169 #define RT298_M_REC_MIC1_SFT    2                 169 #define RT298_M_REC_MIC1_SFT    2
170 #define RT298_M_REC_I2S_SFT     3                 170 #define RT298_M_REC_I2S_SFT     3
171                                                   171 
172 /* Front (0x0c) */                                172 /* Front (0x0c) */
173 #define RT298_M_FRONT_DAC_SFT   0                 173 #define RT298_M_FRONT_DAC_SFT   0
174 #define RT298_M_FRONT_REC_SFT   1                 174 #define RT298_M_FRONT_REC_SFT   1
175                                                   175 
176 /* SPK-OUT (0x14) */                              176 /* SPK-OUT (0x14) */
177 #define RT298_M_SPK_MUX_SFT     14                177 #define RT298_M_SPK_MUX_SFT     14
178 #define RT298_SPK_SEL_MASK      0x1               178 #define RT298_SPK_SEL_MASK      0x1
179 #define RT298_SPK_SEL_SFT       0                 179 #define RT298_SPK_SEL_SFT       0
180 #define RT298_SPK_SEL_F         0                 180 #define RT298_SPK_SEL_F         0
181 #define RT298_SPK_SEL_S         1                 181 #define RT298_SPK_SEL_S         1
182                                                   182 
183 /* HP-OUT (0x21) */                               183 /* HP-OUT (0x21) */
184 #define RT298_M_HP_MUX_SFT      14                184 #define RT298_M_HP_MUX_SFT      14
185 #define RT298_HP_SEL_MASK       0x1               185 #define RT298_HP_SEL_MASK       0x1
186 #define RT298_HP_SEL_SFT        0                 186 #define RT298_HP_SEL_SFT        0
187 #define RT298_HP_SEL_F          0                 187 #define RT298_HP_SEL_F          0
188 #define RT298_HP_SEL_S          1                 188 #define RT298_HP_SEL_S          1
189                                                   189 
190 /* ADC (0x22) (0x23) */                           190 /* ADC (0x22) (0x23) */
191 #define RT298_ADC_SEL_MASK      0x7               191 #define RT298_ADC_SEL_MASK      0x7
192 #define RT298_ADC_SEL_SFT       0                 192 #define RT298_ADC_SEL_SFT       0
193 #define RT298_ADC_SEL_SURR      0                 193 #define RT298_ADC_SEL_SURR      0
194 #define RT298_ADC_SEL_FRONT     1                 194 #define RT298_ADC_SEL_FRONT     1
195 #define RT298_ADC_SEL_DMIC      2                 195 #define RT298_ADC_SEL_DMIC      2
196 #define RT298_ADC_SEL_BEEP      4                 196 #define RT298_ADC_SEL_BEEP      4
197 #define RT298_ADC_SEL_LINE1     5                 197 #define RT298_ADC_SEL_LINE1     5
198 #define RT298_ADC_SEL_I2S       6                 198 #define RT298_ADC_SEL_I2S       6
199 #define RT298_ADC_SEL_MIC1      7                 199 #define RT298_ADC_SEL_MIC1      7
200                                                   200 
201 #define RT298_SCLK_S_MCLK       0                 201 #define RT298_SCLK_S_MCLK       0
202 #define RT298_SCLK_S_PLL        1                 202 #define RT298_SCLK_S_PLL        1
203                                                   203 
204 enum {                                            204 enum {
205         RT298_AIF1,                               205         RT298_AIF1,
206         RT298_AIF2,                               206         RT298_AIF2,
207         RT298_AIFS,                               207         RT298_AIFS,
208 };                                                208 };
209                                                   209 
210 #endif /* __RT298_H__ */                          210 #endif /* __RT298_H__ */
211                                                   211 
212                                                   212 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php