~ [ 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-4.9.337)


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

~ [ 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