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

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/rt5631.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/rt5631.h (Version linux-6.12-rc7) and /sound/soc/codecs/rt5631.h (Version policy-sample)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef __RTCODEC5631_H__                         
  3 #define __RTCODEC5631_H__                         
  4                                                   
  5                                                   
  6 #define RT5631_RESET                              
  7 #define RT5631_SPK_OUT_VOL                        
  8 #define RT5631_HP_OUT_VOL                         
  9 #define RT5631_MONO_AXO_1_2_VOL         0x06      
 10 #define RT5631_AUX_IN_VOL                         
 11 #define RT5631_STEREO_DAC_VOL_1         0x0C      
 12 #define RT5631_MIC_CTRL_1                         
 13 #define RT5631_STEREO_DAC_VOL_2         0x10      
 14 #define RT5631_ADC_CTRL_1                         
 15 #define RT5631_ADC_REC_MIXER                      
 16 #define RT5631_ADC_CTRL_2                         
 17 #define RT5631_VDAC_DIG_VOL                       
 18 #define RT5631_OUTMIXER_L_CTRL                    
 19 #define RT5631_OUTMIXER_R_CTRL                    
 20 #define RT5631_AXO1MIXER_CTRL                     
 21 #define RT5631_AXO2MIXER_CTRL                     
 22 #define RT5631_MIC_CTRL_2                         
 23 #define RT5631_DIG_MIC_CTRL                       
 24 #define RT5631_MONO_INPUT_VOL                     
 25 #define RT5631_SPK_MIXER_CTRL                     
 26 #define RT5631_SPK_MONO_OUT_CTRL                  
 27 #define RT5631_SPK_MONO_HP_OUT_CTRL               
 28 #define RT5631_SDP_CTRL                           
 29 #define RT5631_MONO_SDP_CTRL                      
 30 #define RT5631_STEREO_AD_DA_CLK_CTRL              
 31 #define RT5631_PWR_MANAG_ADD1           0x3A      
 32 #define RT5631_PWR_MANAG_ADD2           0x3B      
 33 #define RT5631_PWR_MANAG_ADD3           0x3C      
 34 #define RT5631_PWR_MANAG_ADD4           0x3E      
 35 #define RT5631_GEN_PUR_CTRL_REG         0x40      
 36 #define RT5631_GLOBAL_CLK_CTRL                    
 37 #define RT5631_PLL_CTRL                           
 38 #define RT5631_INT_ST_IRQ_CTRL_1                  
 39 #define RT5631_INT_ST_IRQ_CTRL_2                  
 40 #define RT5631_GPIO_CTRL                          
 41 #define RT5631_MISC_CTRL                          
 42 #define RT5631_DEPOP_FUN_CTRL_1         0x54      
 43 #define RT5631_DEPOP_FUN_CTRL_2         0x56      
 44 #define RT5631_JACK_DET_CTRL                      
 45 #define RT5631_SOFT_VOL_CTRL                      
 46 #define RT5631_ALC_CTRL_1                         
 47 #define RT5631_ALC_CTRL_2                         
 48 #define RT5631_ALC_CTRL_3                         
 49 #define RT5631_PSEUDO_SPATL_CTRL                  
 50 #define RT5631_INDEX_ADD                          
 51 #define RT5631_INDEX_DATA                         
 52 #define RT5631_EQ_CTRL                            
 53 #define RT5631_VENDOR_ID                          
 54 #define RT5631_VENDOR_ID1                         
 55 #define RT5631_VENDOR_ID2                         
 56                                                   
 57 /* Index of Codec Private Register definition     
 58 #define RT5631_EQ_BW_LOP                          
 59 #define RT5631_EQ_GAIN_LOP                        
 60 #define RT5631_EQ_FC_BP1                          
 61 #define RT5631_EQ_BW_BP1                          
 62 #define RT5631_EQ_GAIN_BP1                        
 63 #define RT5631_EQ_FC_BP2                          
 64 #define RT5631_EQ_BW_BP2                          
 65 #define RT5631_EQ_GAIN_BP2                        
 66 #define RT5631_EQ_FC_BP3                          
 67 #define RT5631_EQ_BW_BP3                          
 68 #define RT5631_EQ_GAIN_BP3                        
 69 #define RT5631_EQ_BW_HIP                          
 70 #define RT5631_EQ_GAIN_HIP                        
 71 #define RT5631_EQ_HPF_A1                          
 72 #define RT5631_EQ_HPF_A2                          
 73 #define RT5631_EQ_HPF_GAIN                        
 74 #define RT5631_EQ_PRE_VOL_CTRL                    
 75 #define RT5631_EQ_POST_VOL_CTRL         0x12      
 76 #define RT5631_TEST_MODE_CTRL                     
 77 #define RT5631_CP_INTL_REG2                       
 78 #define RT5631_ADDA_MIXER_INTL_REG3               
 79 #define RT5631_SPK_INTL_CTRL                      
 80                                                   
 81                                                   
 82 /* global definition */                           
 83 #define RT5631_L_MUTE                             
 84 #define RT5631_L_MUTE_SHIFT                       
 85 #define RT5631_L_EN                               
 86 #define RT5631_L_EN_SHIFT                         
 87 #define RT5631_R_MUTE                             
 88 #define RT5631_R_MUTE_SHIFT                       
 89 #define RT5631_R_EN                               
 90 #define RT5631_R_EN_SHIFT                         
 91 #define RT5631_VOL_MASK                           
 92 #define RT5631_L_VOL_SHIFT                        
 93 #define RT5631_R_VOL_SHIFT                        
 94                                                   
 95 /* Speaker Output Control(0x02) */                
 96 #define RT5631_SPK_L_VOL_SEL_MASK                 
 97 #define RT5631_SPK_L_VOL_SEL_VMID                 
 98 #define RT5631_SPK_L_VOL_SEL_SPKMIX_L             
 99 #define RT5631_SPK_R_VOL_SEL_MASK                 
100 #define RT5631_SPK_R_VOL_SEL_VMID                 
101 #define RT5631_SPK_R_VOL_SEL_SPKMIX_R             
102                                                   
103 /* Headphone Output Control(0x04) */              
104 #define RT5631_HP_L_VOL_SEL_MASK                  
105 #define RT5631_HP_L_VOL_SEL_VMID                  
106 #define RT5631_HP_L_VOL_SEL_OUTMIX_L              
107 #define RT5631_HP_R_VOL_SEL_MASK                  
108 #define RT5631_HP_R_VOL_SEL_VMID                  
109 #define RT5631_HP_R_VOL_SEL_OUTMIX_R              
110                                                   
111 /* Output Control for AUXOUT/MONO(0x06) */        
112 #define RT5631_AUXOUT_1_VOL_SEL_MASK              
113 #define RT5631_AUXOUT_1_VOL_SEL_VMID              
114 #define RT5631_AUXOUT_1_VOL_SEL_OUTMIX_L          
115 #define RT5631_MUTE_MONO                          
116 #define RT5631_MUTE_MONO_SHIFT                    
117 #define RT5631_AUXOUT_2_VOL_SEL_MASK              
118 #define RT5631_AUXOUT_2_VOL_SEL_VMID              
119 #define RT5631_AUXOUT_2_VOL_SEL_OUTMIX_R          
120                                                   
121 /* Microphone Input Control 1(0x0E) */            
122 #define RT5631_MIC1_DIFF_INPUT_CTRL               
123 #define RT5631_MIC1_DIFF_INPUT_SHIFT              
124 #define RT5631_MIC2_DIFF_INPUT_CTRL               
125 #define RT5631_MIC2_DIFF_INPUT_SHIFT              
126                                                   
127 /* Stereo DAC Digital Volume2(0x10) */            
128 #define RT5631_DAC_VOL_MASK                       
129                                                   
130 /* ADC Recording Mixer Control(0x14) */           
131 #define RT5631_M_OUTMIXER_L_TO_RECMIXER_L         
132 #define RT5631_M_OUTMIXL_RECMIXL_BIT              
133 #define RT5631_M_MIC1_TO_RECMIXER_L               
134 #define RT5631_M_MIC1_RECMIXL_BIT                 
135 #define RT5631_M_AXIL_TO_RECMIXER_L               
136 #define RT5631_M_AXIL_RECMIXL_BIT                 
137 #define RT5631_M_MONO_IN_TO_RECMIXER_L            
138 #define RT5631_M_MONO_IN_RECMIXL_BIT              
139 #define RT5631_M_OUTMIXER_R_TO_RECMIXER_R         
140 #define RT5631_M_OUTMIXR_RECMIXR_BIT              
141 #define RT5631_M_MIC2_TO_RECMIXER_R               
142 #define RT5631_M_MIC2_RECMIXR_BIT                 
143 #define RT5631_M_AXIR_TO_RECMIXER_R               
144 #define RT5631_M_AXIR_RECMIXR_BIT                 
145 #define RT5631_M_MONO_IN_TO_RECMIXER_R            
146 #define RT5631_M_MONO_IN_RECMIXR_BIT              
147                                                   
148 /* Left Output Mixer Control(0x1A) */             
149 #define RT5631_M_RECMIXER_L_TO_OUTMIXER_L         
150 #define RT5631_M_RECMIXL_OUTMIXL_BIT              
151 #define RT5631_M_RECMIXER_R_TO_OUTMIXER_L         
152 #define RT5631_M_RECMIXR_OUTMIXL_BIT              
153 #define RT5631_M_DAC_L_TO_OUTMIXER_L              
154 #define RT5631_M_DACL_OUTMIXL_BIT                 
155 #define RT5631_M_MIC1_TO_OUTMIXER_L               
156 #define RT5631_M_MIC1_OUTMIXL_BIT                 
157 #define RT5631_M_MIC2_TO_OUTMIXER_L               
158 #define RT5631_M_MIC2_OUTMIXL_BIT                 
159 #define RT5631_M_MONO_IN_P_TO_OUTMIXER_L          
160 #define RT5631_M_MONO_INP_OUTMIXL_BIT             
161 #define RT5631_M_AXIL_TO_OUTMIXER_L               
162 #define RT5631_M_AXIL_OUTMIXL_BIT                 
163 #define RT5631_M_AXIR_TO_OUTMIXER_L               
164 #define RT5631_M_AXIR_OUTMIXL_BIT                 
165 #define RT5631_M_VDAC_TO_OUTMIXER_L               
166 #define RT5631_M_VDAC_OUTMIXL_BIT                 
167                                                   
168 /* Right Output Mixer Control(0x1C) */            
169 #define RT5631_M_RECMIXER_L_TO_OUTMIXER_R         
170 #define RT5631_M_RECMIXL_OUTMIXR_BIT              
171 #define RT5631_M_RECMIXER_R_TO_OUTMIXER_R         
172 #define RT5631_M_RECMIXR_OUTMIXR_BIT              
173 #define RT5631_M_DAC_R_TO_OUTMIXER_R              
174 #define RT5631_M_DACR_OUTMIXR_BIT                 
175 #define RT5631_M_MIC1_TO_OUTMIXER_R               
176 #define RT5631_M_MIC1_OUTMIXR_BIT                 
177 #define RT5631_M_MIC2_TO_OUTMIXER_R               
178 #define RT5631_M_MIC2_OUTMIXR_BIT                 
179 #define RT5631_M_MONO_IN_N_TO_OUTMIXER_R          
180 #define RT5631_M_MONO_INN_OUTMIXR_BIT             
181 #define RT5631_M_AXIL_TO_OUTMIXER_R               
182 #define RT5631_M_AXIL_OUTMIXR_BIT                 
183 #define RT5631_M_AXIR_TO_OUTMIXER_R               
184 #define RT5631_M_AXIR_OUTMIXR_BIT                 
185 #define RT5631_M_VDAC_TO_OUTMIXER_R               
186 #define RT5631_M_VDAC_OUTMIXR_BIT                 
187                                                   
188 /* Lout Mixer Control(0x1E) */                    
189 #define RT5631_M_MIC1_TO_AXO1MIXER                
190 #define RT5631_M_MIC1_AXO1MIX_BIT                 
191 #define RT5631_M_MIC2_TO_AXO1MIXER                
192 #define RT5631_M_MIC2_AXO1MIX_BIT                 
193 #define RT5631_M_OUTMIXER_L_TO_AXO1MIXER          
194 #define RT5631_M_OUTMIXL_AXO1MIX_BIT              
195 #define RT5631_M_OUTMIXER_R_TO_AXO1MIXER          
196 #define RT5631_M_OUTMIXR_AXO1MIX_BIT              
197                                                   
198 /* Rout Mixer Control(0x20) */                    
199 #define RT5631_M_MIC1_TO_AXO2MIXER                
200 #define RT5631_M_MIC1_AXO2MIX_BIT                 
201 #define RT5631_M_MIC2_TO_AXO2MIXER                
202 #define RT5631_M_MIC2_AXO2MIX_BIT                 
203 #define RT5631_M_OUTMIXER_L_TO_AXO2MIXER          
204 #define RT5631_M_OUTMIXL_AXO2MIX_BIT              
205 #define RT5631_M_OUTMIXER_R_TO_AXO2MIXER          
206 #define RT5631_M_OUTMIXR_AXO2MIX_BIT              
207                                                   
208 /* Micphone Input Control 2(0x22) */              
209 #define RT5631_MIC_BIAS_90_PRECNET_AVDD 1         
210 #define RT5631_MIC_BIAS_75_PRECNET_AVDD 2         
211                                                   
212 #define RT5631_MIC1_BOOST_CTRL_MASK               
213 #define RT5631_MIC1_BOOST_CTRL_BYPASS             
214 #define RT5631_MIC1_BOOST_CTRL_20DB               
215 #define RT5631_MIC1_BOOST_CTRL_24DB               
216 #define RT5631_MIC1_BOOST_CTRL_30DB               
217 #define RT5631_MIC1_BOOST_CTRL_35DB               
218 #define RT5631_MIC1_BOOST_CTRL_40DB               
219 #define RT5631_MIC1_BOOST_CTRL_34DB               
220 #define RT5631_MIC1_BOOST_CTRL_50DB               
221 #define RT5631_MIC1_BOOST_CTRL_52DB               
222 #define RT5631_MIC1_BOOST_SHIFT                   
223                                                   
224 #define RT5631_MIC2_BOOST_CTRL_MASK               
225 #define RT5631_MIC2_BOOST_CTRL_BYPASS             
226 #define RT5631_MIC2_BOOST_CTRL_20DB               
227 #define RT5631_MIC2_BOOST_CTRL_24DB               
228 #define RT5631_MIC2_BOOST_CTRL_30DB               
229 #define RT5631_MIC2_BOOST_CTRL_35DB               
230 #define RT5631_MIC2_BOOST_CTRL_40DB               
231 #define RT5631_MIC2_BOOST_CTRL_34DB               
232 #define RT5631_MIC2_BOOST_CTRL_50DB               
233 #define RT5631_MIC2_BOOST_CTRL_52DB               
234 #define RT5631_MIC2_BOOST_SHIFT                   
235                                                   
236 #define RT5631_MICBIAS1_VOLT_CTRL_MASK            
237 #define RT5631_MICBIAS1_VOLT_CTRL_90P             
238 #define RT5631_MICBIAS1_VOLT_CTRL_75P             
239                                                   
240 #define RT5631_MICBIAS1_S_C_DET_MASK              
241 #define RT5631_MICBIAS1_S_C_DET_DIS               
242 #define RT5631_MICBIAS1_S_C_DET_ENA               
243                                                   
244 #define RT5631_MICBIAS1_SHORT_CURR_DET_MASK       
245 #define RT5631_MICBIAS1_SHORT_CURR_DET_600UA      
246 #define RT5631_MICBIAS1_SHORT_CURR_DET_1500UA     
247 #define RT5631_MICBIAS1_SHORT_CURR_DET_2000UA     
248                                                   
249 #define RT5631_MICBIAS2_VOLT_CTRL_MASK            
250 #define RT5631_MICBIAS2_VOLT_CTRL_90P             
251 #define RT5631_MICBIAS2_VOLT_CTRL_75P             
252                                                   
253 #define RT5631_MICBIAS2_S_C_DET_MASK              
254 #define RT5631_MICBIAS2_S_C_DET_DIS               
255 #define RT5631_MICBIAS2_S_C_DET_ENA               
256                                                   
257 #define RT5631_MICBIAS2_SHORT_CURR_DET_MASK       
258 #define RT5631_MICBIAS2_SHORT_CURR_DET_600UA      
259 #define RT5631_MICBIAS2_SHORT_CURR_DET_1500UA     
260 #define RT5631_MICBIAS2_SHORT_CURR_DET_2000UA     
261                                                   
262                                                   
263 /* Digital Microphone Control(0x24) */            
264 #define RT5631_DMIC_ENA_MASK                      
265 #define RT5631_DMIC_ENA_SHIFT                     
266 /* DMIC_ENA: DMIC to ADC Digital filter */        
267 #define RT5631_DMIC_ENA                           
268 /* DMIC_DIS: ADC mixer to ADC Digital filter *    
269 #define RT5631_DMIC_DIS                           
270 #define RT5631_DMIC_L_CH_MUTE                     
271 #define RT5631_DMIC_L_CH_MUTE_SHIFT               
272 #define RT5631_DMIC_R_CH_MUTE                     
273 #define RT5631_DMIC_R_CH_MUTE_SHIFT               
274 #define RT5631_DMIC_L_CH_LATCH_MASK               
275 #define RT5631_DMIC_L_CH_LATCH_RISING             
276 #define RT5631_DMIC_L_CH_LATCH_FALLING            
277 #define RT5631_DMIC_R_CH_LATCH_MASK               
278 #define RT5631_DMIC_R_CH_LATCH_RISING             
279 #define RT5631_DMIC_R_CH_LATCH_FALLING            
280 #define RT5631_DMIC_CLK_CTRL_MASK                 
281 #define RT5631_DMIC_CLK_CTRL_TO_128FS             
282 #define RT5631_DMIC_CLK_CTRL_TO_64FS              
283 #define RT5631_DMIC_CLK_CTRL_TO_32FS              
284                                                   
285 /* Microphone Input Volume(0x26) */               
286 #define RT5631_MONO_DIFF_INPUT_SHIFT              
287                                                   
288 /* Speaker Mixer Control(0x28) */                 
289 #define RT5631_M_RECMIXER_L_TO_SPKMIXER_L         
290 #define RT5631_M_RECMIXL_SPKMIXL_BIT              
291 #define RT5631_M_MIC1_P_TO_SPKMIXER_L             
292 #define RT5631_M_MIC1P_SPKMIXL_BIT                
293 #define RT5631_M_DAC_L_TO_SPKMIXER_L              
294 #define RT5631_M_DACL_SPKMIXL_BIT                 
295 #define RT5631_M_OUTMIXER_L_TO_SPKMIXER_L         
296 #define RT5631_M_OUTMIXL_SPKMIXL_BIT              
297                                                   
298 #define RT5631_M_RECMIXER_R_TO_SPKMIXER_R         
299 #define RT5631_M_RECMIXR_SPKMIXR_BIT              
300 #define RT5631_M_MIC2_P_TO_SPKMIXER_R             
301 #define RT5631_M_MIC2P_SPKMIXR_BIT                
302 #define RT5631_M_DAC_R_TO_SPKMIXER_R              
303 #define RT5631_M_DACR_SPKMIXR_BIT                 
304 #define RT5631_M_OUTMIXER_R_TO_SPKMIXER_R         
305 #define RT5631_M_OUTMIXR_SPKMIXR_BIT              
306                                                   
307 /* Speaker/Mono Output Control(0x2A) */           
308 #define RT5631_M_SPKVOL_L_TO_SPOL_MIXER           
309 #define RT5631_M_SPKVOLL_SPOLMIX_BIT              
310 #define RT5631_M_SPKVOL_R_TO_SPOL_MIXER           
311 #define RT5631_M_SPKVOLR_SPOLMIX_BIT              
312 #define RT5631_M_SPKVOL_L_TO_SPOR_MIXER           
313 #define RT5631_M_SPKVOLL_SPORMIX_BIT              
314 #define RT5631_M_SPKVOL_R_TO_SPOR_MIXER           
315 #define RT5631_M_SPKVOLR_SPORMIX_BIT              
316 #define RT5631_M_OUTVOL_L_TO_MONOMIXER            
317 #define RT5631_M_OUTVOLL_MONOMIX_BIT              
318 #define RT5631_M_OUTVOL_R_TO_MONOMIXER            
319 #define RT5631_M_OUTVOLR_MONOMIX_BIT              
320                                                   
321 /* Speaker/Mono/HP Output Control(0x2C) */        
322 #define RT5631_SPK_L_MUX_SEL_MASK                 
323 #define RT5631_SPK_L_MUX_SEL_SPKMIXER_L           
324 #define RT5631_SPK_L_MUX_SEL_MONO_IN              
325 #define RT5631_SPK_L_MUX_SEL_DAC_L                
326 #define RT5631_SPK_L_MUX_SEL_SHIFT                
327                                                   
328 #define RT5631_SPK_R_MUX_SEL_MASK                 
329 #define RT5631_SPK_R_MUX_SEL_SPKMIXER_R           
330 #define RT5631_SPK_R_MUX_SEL_MONO_IN              
331 #define RT5631_SPK_R_MUX_SEL_DAC_R                
332 #define RT5631_SPK_R_MUX_SEL_SHIFT                
333                                                   
334 #define RT5631_MONO_MUX_SEL_MASK                  
335 #define RT5631_MONO_MUX_SEL_MONOMIXER             
336 #define RT5631_MONO_MUX_SEL_MONO_IN               
337 #define RT5631_MONO_MUX_SEL_SHIFT                 
338                                                   
339 #define RT5631_HP_L_MUX_SEL_MASK                  
340 #define RT5631_HP_L_MUX_SEL_HPVOL_L               
341 #define RT5631_HP_L_MUX_SEL_DAC_L                 
342 #define RT5631_HP_L_MUX_SEL_SHIFT                 
343                                                   
344 #define RT5631_HP_R_MUX_SEL_MASK                  
345 #define RT5631_HP_R_MUX_SEL_HPVOL_R               
346 #define RT5631_HP_R_MUX_SEL_DAC_R                 
347 #define RT5631_HP_R_MUX_SEL_SHIFT                 
348                                                   
349 /* Stereo I2S Serial Data Port Control(0x34) *    
350 #define RT5631_SDP_MODE_SEL_MASK                  
351 #define RT5631_SDP_MODE_SEL_MASTER                
352 #define RT5631_SDP_MODE_SEL_SLAVE                 
353                                                   
354 #define RT5631_SDP_ADC_CPS_SEL_MASK               
355 #define RT5631_SDP_ADC_CPS_SEL_OFF                
356 #define RT5631_SDP_ADC_CPS_SEL_U_LAW              
357 #define RT5631_SDP_ADC_CPS_SEL_A_LAW              
358                                                   
359 #define RT5631_SDP_DAC_CPS_SEL_MASK               
360 #define RT5631_SDP_DAC_CPS_SEL_OFF                
361 #define RT5631_SDP_DAC_CPS_SEL_U_LAW              
362 #define RT5631_SDP_DAC_CPS_SEL_A_LAW              
363 /* 0:Normal 1:Invert */                           
364 #define RT5631_SDP_I2S_BCLK_POL_CTRL              
365 /* 0:Normal 1:Invert */                           
366 #define RT5631_SDP_DAC_R_INV                      
367 /* 0:ADC data appear at left phase of LRCK        
368  * 1:ADC data appear at right phase of LRCK       
369  */                                               
370 #define RT5631_SDP_ADC_DATA_L_R_SWAP              
371 /* 0:DAC data appear at left phase of LRCK        
372  * 1:DAC data appear at right phase of LRCK       
373  */                                               
374 #define RT5631_SDP_DAC_DATA_L_R_SWAP              
375                                                   
376 /* Data Length Slection */                        
377 #define RT5631_SDP_I2S_DL_MASK                    
378 #define RT5631_SDP_I2S_DL_16                      
379 #define RT5631_SDP_I2S_DL_20                      
380 #define RT5631_SDP_I2S_DL_24                      
381 #define RT5631_SDP_I2S_DL_8                       
382                                                   
383 /* PCM Data Format Selection */                   
384 #define RT5631_SDP_I2S_DF_MASK                    
385 #define RT5631_SDP_I2S_DF_I2S                     
386 #define RT5631_SDP_I2S_DF_LEFT                    
387 #define RT5631_SDP_I2S_DF_PCM_A                   
388 #define RT5631_SDP_I2S_DF_PCM_B                   
389                                                   
390 /* Stereo AD/DA Clock Control(0x38h) */           
391 #define RT5631_I2S_PRE_DIV_MASK                   
392 #define RT5631_I2S_PRE_DIV_1                      
393 #define RT5631_I2S_PRE_DIV_2                      
394 #define RT5631_I2S_PRE_DIV_4                      
395 #define RT5631_I2S_PRE_DIV_8                      
396 #define RT5631_I2S_PRE_DIV_16                     
397 #define RT5631_I2S_PRE_DIV_32                     
398 /* CLOCK RELATIVE OF BCLK AND LCRK */             
399 #define RT5631_I2S_LRCK_SEL_N_BCLK_MASK           
400 #define RT5631_I2S_LRCK_SEL_64_BCLK               
401 #define RT5631_I2S_LRCK_SEL_32_BCLK               
402                                                   
403 #define RT5631_DAC_OSR_SEL_MASK                   
404 #define RT5631_DAC_OSR_SEL_128FS                  
405 #define RT5631_DAC_OSR_SEL_64FS                   
406 #define RT5631_DAC_OSR_SEL_32FS                   
407 #define RT5631_DAC_OSR_SEL_16FS                   
408                                                   
409 #define RT5631_ADC_OSR_SEL_MASK                   
410 #define RT5631_ADC_OSR_SEL_128FS                  
411 #define RT5631_ADC_OSR_SEL_64FS                   
412 #define RT5631_ADC_OSR_SEL_32FS                   
413 #define RT5631_ADC_OSR_SEL_16FS                   
414                                                   
415 #define RT5631_ADDA_FILTER_CLK_SEL_256FS          
416 #define RT5631_ADDA_FILTER_CLK_SEL_384FS          
417                                                   
418 /* Power managment addition 1 (0x3A) */           
419 #define RT5631_PWR_MAIN_I2S_EN                    
420 #define RT5631_PWR_MAIN_I2S_BIT                   
421 #define RT5631_PWR_CLASS_D                        
422 #define RT5631_PWR_CLASS_D_BIT                    
423 #define RT5631_PWR_ADC_L_CLK                      
424 #define RT5631_PWR_ADC_L_CLK_BIT                  
425 #define RT5631_PWR_ADC_R_CLK                      
426 #define RT5631_PWR_ADC_R_CLK_BIT                  
427 #define RT5631_PWR_DAC_L_CLK                      
428 #define RT5631_PWR_DAC_L_CLK_BIT                  
429 #define RT5631_PWR_DAC_R_CLK                      
430 #define RT5631_PWR_DAC_R_CLK_BIT                  
431 #define RT5631_PWR_DAC_REF                        
432 #define RT5631_PWR_DAC_REF_BIT                    
433 #define RT5631_PWR_DAC_L_TO_MIXER                 
434 #define RT5631_PWR_DAC_L_TO_MIXER_BIT             
435 #define RT5631_PWR_DAC_R_TO_MIXER                 
436 #define RT5631_PWR_DAC_R_TO_MIXER_BIT             
437                                                   
438 /* Power managment addition 2 (0x3B) */           
439 #define RT5631_PWR_OUTMIXER_L                     
440 #define RT5631_PWR_OUTMIXER_L_BIT                 
441 #define RT5631_PWR_OUTMIXER_R                     
442 #define RT5631_PWR_OUTMIXER_R_BIT                 
443 #define RT5631_PWR_SPKMIXER_L                     
444 #define RT5631_PWR_SPKMIXER_L_BIT                 
445 #define RT5631_PWR_SPKMIXER_R                     
446 #define RT5631_PWR_SPKMIXER_R_BIT                 
447 #define RT5631_PWR_RECMIXER_L                     
448 #define RT5631_PWR_RECMIXER_L_BIT                 
449 #define RT5631_PWR_RECMIXER_R                     
450 #define RT5631_PWR_RECMIXER_R_BIT                 
451 #define RT5631_PWR_MIC1_BOOT_GAIN                 
452 #define RT5631_PWR_MIC1_BOOT_GAIN_BIT             
453 #define RT5631_PWR_MIC2_BOOT_GAIN                 
454 #define RT5631_PWR_MIC2_BOOT_GAIN_BIT             
455 #define RT5631_PWR_MICBIAS1_VOL                   
456 #define RT5631_PWR_MICBIAS1_VOL_BIT               
457 #define RT5631_PWR_MICBIAS2_VOL                   
458 #define RT5631_PWR_MICBIAS2_VOL_BIT               
459 #define RT5631_PWR_PLL1                           
460 #define RT5631_PWR_PLL1_BIT                       
461 #define RT5631_PWR_PLL2                           
462 #define RT5631_PWR_PLL2_BIT                       
463                                                   
464 /* Power managment addition 3(0x3C) */            
465 #define RT5631_PWR_VREF                           
466 #define RT5631_PWR_VREF_BIT                       
467 #define RT5631_PWR_FAST_VREF_CTRL                 
468 #define RT5631_PWR_FAST_VREF_CTRL_BIT             
469 #define RT5631_PWR_MAIN_BIAS                      
470 #define RT5631_PWR_MAIN_BIAS_BIT                  
471 #define RT5631_PWR_AXO1MIXER                      
472 #define RT5631_PWR_AXO1MIXER_BIT                  
473 #define RT5631_PWR_AXO2MIXER                      
474 #define RT5631_PWR_AXO2MIXER_BIT                  
475 #define RT5631_PWR_MONOMIXER                      
476 #define RT5631_PWR_MONOMIXER_BIT                  
477 #define RT5631_PWR_MONO_DEPOP_DIS                 
478 #define RT5631_PWR_MONO_DEPOP_DIS_BIT             
479 #define RT5631_PWR_MONO_AMP_EN                    
480 #define RT5631_PWR_MONO_AMP_EN_BIT                
481 #define RT5631_PWR_CHARGE_PUMP                    
482 #define RT5631_PWR_CHARGE_PUMP_BIT                
483 #define RT5631_PWR_HP_L_AMP                       
484 #define RT5631_PWR_HP_L_AMP_BIT                   
485 #define RT5631_PWR_HP_R_AMP                       
486 #define RT5631_PWR_HP_R_AMP_BIT                   
487 #define RT5631_PWR_HP_DEPOP_DIS                   
488 #define RT5631_PWR_HP_DEPOP_DIS_BIT               
489 #define RT5631_PWR_HP_AMP_DRIVING                 
490 #define RT5631_PWR_HP_AMP_DRIVING_BIT             
491                                                   
492 /* Power managment addition 4(0x3E) */            
493 #define RT5631_PWR_SPK_L_VOL                      
494 #define RT5631_PWR_SPK_L_VOL_BIT                  
495 #define RT5631_PWR_SPK_R_VOL                      
496 #define RT5631_PWR_SPK_R_VOL_BIT                  
497 #define RT5631_PWR_LOUT_VOL                       
498 #define RT5631_PWR_LOUT_VOL_BIT                   
499 #define RT5631_PWR_ROUT_VOL                       
500 #define RT5631_PWR_ROUT_VOL_BIT                   
501 #define RT5631_PWR_HP_L_OUT_VOL                   
502 #define RT5631_PWR_HP_L_OUT_VOL_BIT               
503 #define RT5631_PWR_HP_R_OUT_VOL                   
504 #define RT5631_PWR_HP_R_OUT_VOL_BIT               
505 #define RT5631_PWR_AXIL_IN_VOL                    
506 #define RT5631_PWR_AXIL_IN_VOL_BIT                
507 #define RT5631_PWR_AXIR_IN_VOL                    
508 #define RT5631_PWR_AXIR_IN_VOL_BIT                
509 #define RT5631_PWR_MONO_IN_P_VOL                  
510 #define RT5631_PWR_MONO_IN_P_VOL_BIT              
511 #define RT5631_PWR_MONO_IN_N_VOL                  
512 #define RT5631_PWR_MONO_IN_N_VOL_BIT              
513                                                   
514 /* General Purpose Control Register(0x40) */      
515 #define RT5631_SPK_AMP_AUTO_RATIO_EN              
516                                                   
517 #define RT5631_SPK_AMP_RATIO_CTRL_MASK            
518 #define RT5631_SPK_AMP_RATIO_CTRL_2_34            
519 #define RT5631_SPK_AMP_RATIO_CTRL_1_99            
520 #define RT5631_SPK_AMP_RATIO_CTRL_1_68            
521 #define RT5631_SPK_AMP_RATIO_CTRL_1_56            
522 #define RT5631_SPK_AMP_RATIO_CTRL_1_44            
523 #define RT5631_SPK_AMP_RATIO_CTRL_1_27            
524 #define RT5631_SPK_AMP_RATIO_CTRL_1_09            
525 #define RT5631_SPK_AMP_RATIO_CTRL_1_00            
526 #define RT5631_SPK_AMP_RATIO_CTRL_SHIFT           
527                                                   
528 #define RT5631_STEREO_DAC_HI_PASS_FILT_EN         
529 #define RT5631_STEREO_ADC_HI_PASS_FILT_EN         
530 /* Select ADC Wind Filter Clock type */           
531 #define RT5631_ADC_WIND_FILT_MASK                 
532 #define RT5631_ADC_WIND_FILT_8_16_32K             
533 #define RT5631_ADC_WIND_FILT_11_22_44K            
534 #define RT5631_ADC_WIND_FILT_12_24_48K            
535 #define RT5631_ADC_WIND_FILT_EN                   
536 /* SelectADC Wind Filter Corner Frequency */      
537 #define RT5631_ADC_WIND_CNR_FREQ_MASK   (0x7 <    
538 #define RT5631_ADC_WIND_CNR_FREQ_82_113_122       
539 #define RT5631_ADC_WIND_CNR_FREQ_102_141_153 (    
540 #define RT5631_ADC_WIND_CNR_FREQ_131_180_156 (    
541 #define RT5631_ADC_WIND_CNR_FREQ_163_225_245 (    
542 #define RT5631_ADC_WIND_CNR_FREQ_204_281_306 (    
543 #define RT5631_ADC_WIND_CNR_FREQ_261_360_392 (    
544 #define RT5631_ADC_WIND_CNR_FREQ_327_450_490 (    
545 #define RT5631_ADC_WIND_CNR_FREQ_408_563_612 (    
546                                                   
547 /* Global Clock Control Register(0x42) */         
548 #define RT5631_SYSCLK_SOUR_SEL_MASK               
549 #define RT5631_SYSCLK_SOUR_SEL_MCLK               
550 #define RT5631_SYSCLK_SOUR_SEL_PLL                
551 #define RT5631_SYSCLK_SOUR_SEL_PLL_TCK            
552                                                   
553 #define RT5631_PLLCLK_SOUR_SEL_MASK               
554 #define RT5631_PLLCLK_SOUR_SEL_MCLK               
555 #define RT5631_PLLCLK_SOUR_SEL_BCLK               
556 #define RT5631_PLLCLK_SOUR_SEL_VBCLK              
557                                                   
558 #define RT5631_PLLCLK_PRE_DIV1                    
559 #define RT5631_PLLCLK_PRE_DIV2                    
560                                                   
561 /* PLL Control(0x44) */                           
562 #define RT5631_PLL_CTRL_M_VAL(m)                  
563 #define RT5631_PLL_CTRL_K_VAL(k)                  
564 #define RT5631_PLL_CTRL_N_VAL(n)                  
565                                                   
566 /* Internal Status and IRQ Control2(0x4A) */      
567 #define RT5631_ADC_DATA_SEL_MASK                  
568 #define RT5631_ADC_DATA_SEL_Disable               
569 #define RT5631_ADC_DATA_SEL_MIC1                  
570 #define RT5631_ADC_DATA_SEL_MIC1_SHIFT            
571 #define RT5631_ADC_DATA_SEL_MIC2                  
572 #define RT5631_ADC_DATA_SEL_MIC2_SHIFT            
573 #define RT5631_ADC_DATA_SEL_STO                   
574 #define RT5631_ADC_DATA_SEL_SHIFT                 
575                                                   
576 /* GPIO Pin Configuration(0x4C) */                
577 #define RT5631_GPIO_PIN_FUN_SEL_MASK              
578 #define RT5631_GPIO_PIN_FUN_SEL_IRQ               
579 #define RT5631_GPIO_PIN_FUN_SEL_GPIO_DIMC         
580                                                   
581 #define RT5631_GPIO_DMIC_FUN_SEL_MASK             
582 #define RT5631_GPIO_DMIC_FUN_SEL_DIMC             
583 #define RT5631_GPIO_DMIC_FUN_SEL_GPIO             
584                                                   
585 #define RT5631_GPIO_PIN_CON_MASK                  
586 #define RT5631_GPIO_PIN_SET_INPUT                 
587 #define RT5631_GPIO_PIN_SET_OUTPUT                
588                                                   
589 /* De-POP function Control 1(0x54) */             
590 #define RT5631_POW_ON_SOFT_GEN                    
591 #define RT5631_EN_MUTE_UNMUTE_DEPOP               
592 #define RT5631_EN_DEPOP2_FOR_HP                   
593 /* Power Down HPAMP_L Starts Up Signal */         
594 #define RT5631_PD_HPAMP_L_ST_UP                   
595 /* Power Down HPAMP_R Starts Up Signal */         
596 #define RT5631_PD_HPAMP_R_ST_UP                   
597 /* Enable left HP mute/unmute depop */            
598 #define RT5631_EN_HP_L_M_UN_MUTE_DEPOP            
599 /* Enable right HP mute/unmute depop */           
600 #define RT5631_EN_HP_R_M_UN_MUTE_DEPOP            
601                                                   
602 /* De-POP Fnction Control(0x56) */                
603 #define RT5631_EN_ONE_BIT_DEPOP                   
604 #define RT5631_EN_CAP_FREE_DEPOP                  
605                                                   
606 /* Jack Detect Control Register(0x5A) */          
607 #define RT5631_JD_USE_MASK                        
608 #define RT5631_JD_USE_JD2                         
609 #define RT5631_JD_USE_JD1                         
610 #define RT5631_JD_USE_GPIO                        
611 #define RT5631_JD_OFF                             
612 /* JD trigger enable for HP */                    
613 #define RT5631_JD_HP_EN                           
614 #define RT5631_JD_HP_TRI_MASK                     
615 #define RT5631_JD_HP_TRI_HI                       
616 #define RT5631_JD_HP_TRI_LO                       
617 /* JD trigger enable for speaker LP/LN */         
618 #define RT5631_JD_SPK_L_EN                        
619 #define RT5631_JD_SPK_L_TRI_MASK                  
620 #define RT5631_JD_SPK_L_TRI_HI                    
621 #define RT5631_JD_SPK_L_TRI_LO                    
622 /* JD trigger enable for speaker RP/RN */         
623 #define RT5631_JD_SPK_R_EN                        
624 #define RT5631_JD_SPK_R_TRI_MASK                  
625 #define RT5631_JD_SPK_R_TRI_HI                    
626 #define RT5631_JD_SPK_R_TRI_LO                    
627 /* JD trigger enable for monoout */               
628 #define RT5631_JD_MONO_EN                         
629 #define RT5631_JD_MONO_TRI_MASK                   
630 #define RT5631_JD_MONO_TRI_HI                     
631 #define RT5631_JD_MONO_TRI_LO                     
632 /* JD trigger enable for Lout */                  
633 #define RT5631_JD_AUX_1_EN                        
634 #define RT5631_JD_AUX_1_MASK                      
635 #define RT5631_JD_AUX_1_TRI_HI                    
636 #define RT5631_JD_AUX_1_TRI_LO                    
637 /* JD trigger enable for Rout */                  
638 #define RT5631_JD_AUX_2_EN                        
639 #define RT5631_JD_AUX_2_MASK                      
640 #define RT5631_JD_AUX_2_TRI_HI                    
641 #define RT5631_JD_AUX_2_TRI_LO                    
642                                                   
643 /* ALC CONTROL 1(0x64) */                         
644 #define RT5631_ALC_ATTACK_RATE_MASK               
645 #define RT5631_ALC_RECOVERY_RATE_MASK             
646                                                   
647 /* ALC CONTROL 2(0x65) */                         
648 /* select Compensation gain for Noise gate fun    
649 #define RT5631_ALC_COM_NOISE_GATE_MASK            
650                                                   
651 /* ALC CONTROL 3(0x66) */                         
652 #define RT5631_ALC_FUN_MASK                       
653 #define RT5631_ALC_FUN_DIS                        
654 #define RT5631_ALC_ENA_DAC_PATH                   
655 #define RT5631_ALC_ENA_ADC_PATH                   
656 #define RT5631_ALC_PARA_UPDATE                    
657 #define RT5631_ALC_LIMIT_LEVEL_MASK               
658 #define RT5631_ALC_NOISE_GATE_FUN_MASK            
659 #define RT5631_ALC_NOISE_GATE_FUN_DIS             
660 #define RT5631_ALC_NOISE_GATE_FUN_ENA             
661 /* ALC noise gate hold data function */           
662 #define RT5631_ALC_NOISE_GATE_H_D_MASK            
663 #define RT5631_ALC_NOISE_GATE_H_D_DIS             
664 #define RT5631_ALC_NOISE_GATE_H_D_ENA             
665                                                   
666 /* Psedueo Stereo & Spatial Effect Block Contr    
667 #define RT5631_SPATIAL_CTRL_EN                    
668 #define RT5631_ALL_PASS_FILTER_EN                 
669 #define RT5631_PSEUDO_STEREO_EN                   
670 #define RT5631_STEREO_EXPENSION_EN                
671 /* 3D gain parameter */                           
672 #define RT5631_GAIN_3D_PARA_MASK                  
673 #define RT5631_GAIN_3D_PARA_1_00                  
674 #define RT5631_GAIN_3D_PARA_1_50                  
675 #define RT5631_GAIN_3D_PARA_2_00                  
676 /* 3D ratio parameter */                          
677 #define RT5631_RATIO_3D_MASK                      
678 #define RT5631_RATIO_3D_0_0                       
679 #define RT5631_RATIO_3D_0_66                      
680 #define RT5631_RATIO_3D_1_0                       
681 /* select samplerate for all pass filter */       
682 #define RT5631_APF_FUN_SLE_MASK                   
683 #define RT5631_APF_FUN_SEL_48K                    
684 #define RT5631_APF_FUN_SEL_44_1K                  
685 #define RT5631_APF_FUN_SEL_32K                    
686 #define RT5631_APF_FUN_DIS                        
687                                                   
688 /* EQ CONTROL 1(0x6E) */                          
689 #define RT5631_HW_EQ_PATH_SEL_MASK                
690 #define RT5631_HW_EQ_PATH_SEL_DAC                 
691 #define RT5631_HW_EQ_PATH_SEL_ADC                 
692 #define RT5631_HW_EQ_UPDATE_CTRL                  
693                                                   
694 #define RT5631_EN_HW_EQ_HPF2                      
695 #define RT5631_EN_HW_EQ_HPF1                      
696 #define RT5631_EN_HW_EQ_BP3                       
697 #define RT5631_EN_HW_EQ_BP2                       
698 #define RT5631_EN_HW_EQ_BP1                       
699 #define RT5631_EN_HW_EQ_LPF                       
700                                                   
701                                                   
702 #endif /* __RTCODEC5631_H__ */                    
703                                                   

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