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

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


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  * ALSA SoC CX20721/CX20723 codec driver          
  4  *                                                
  5  * Copyright:   (C) 2017 Conexant Systems, Inc    
  6  * Author:      Simon Ho, <Simon.ho@conexant.c    
  7  */                                               
  8                                                   
  9 #ifndef __CX2072X_H__                             
 10 #define __CX2072X_H__                             
 11                                                   
 12 #define CX2072X_MCLK_PLL                1         
 13 #define CX2072X_MCLK_EXTERNAL_PLL       1         
 14 #define CX2072X_MCLK_INTERNAL_OSC       2         
 15                                                   
 16 /*#define CX2072X_RATES         SNDRV_PCM_RATE    
 17 #define CX2072X_RATES_DSP       SNDRV_PCM_RATE    
 18                                                   
 19 #define CX2072X_REG_MAX                           
 20                                                   
 21 #define CX2072X_VENDOR_ID                         
 22 #define CX2072X_REVISION_ID                       
 23 #define CX2072X_CURRENT_BCLK_FREQUENCY            
 24 #define CX2072X_AFG_POWER_STATE                   
 25 #define CX2072X_UM_RESPONSE                       
 26 #define CX2072X_GPIO_DATA                         
 27 #define CX2072X_GPIO_ENABLE                       
 28 #define CX2072X_GPIO_DIRECTION                    
 29 #define CX2072X_GPIO_WAKE                         
 30 #define CX2072X_GPIO_UM_ENABLE                    
 31 #define CX2072X_GPIO_STICKY_MASK                  
 32 #define CX2072X_AFG_FUNCTION_RESET                
 33 #define CX2072X_DAC1_CONVERTER_FORMAT             
 34 #define CX2072X_DAC1_AMP_GAIN_RIGHT               
 35 #define CX2072X_DAC1_AMP_GAIN_LEFT                
 36 #define CX2072X_DAC1_POWER_STATE                  
 37 #define CX2072X_DAC1_CONVERTER_STREAM_CHANNEL     
 38 #define CX2072X_DAC1_EAPD_ENABLE                  
 39 #define CX2072X_DAC2_CONVERTER_FORMAT             
 40 #define CX2072X_DAC2_AMP_GAIN_RIGHT               
 41 #define CX2072X_DAC2_AMP_GAIN_LEFT                
 42 #define CX2072X_DAC2_POWER_STATE                  
 43 #define CX2072X_DAC2_CONVERTER_STREAM_CHANNEL     
 44 #define CX2072X_ADC1_CONVERTER_FORMAT             
 45 #define CX2072X_ADC1_AMP_GAIN_RIGHT_0             
 46 #define CX2072X_ADC1_AMP_GAIN_LEFT_0              
 47 #define CX2072X_ADC1_AMP_GAIN_RIGHT_1             
 48 #define CX2072X_ADC1_AMP_GAIN_LEFT_1              
 49 #define CX2072X_ADC1_AMP_GAIN_RIGHT_2             
 50 #define CX2072X_ADC1_AMP_GAIN_LEFT_2              
 51 #define CX2072X_ADC1_AMP_GAIN_RIGHT_3             
 52 #define CX2072X_ADC1_AMP_GAIN_LEFT_3              
 53 #define CX2072X_ADC1_AMP_GAIN_RIGHT_4             
 54 #define CX2072X_ADC1_AMP_GAIN_LEFT_4              
 55 #define CX2072X_ADC1_AMP_GAIN_RIGHT_5             
 56 #define CX2072X_ADC1_AMP_GAIN_LEFT_5              
 57 #define CX2072X_ADC1_AMP_GAIN_RIGHT_6             
 58 #define CX2072X_ADC1_AMP_GAIN_LEFT_6              
 59 #define CX2072X_ADC1_CONNECTION_SELECT_CONTROL    
 60 #define CX2072X_ADC1_POWER_STATE                  
 61 #define CX2072X_ADC1_CONVERTER_STREAM_CHANNEL     
 62 #define CX2072X_ADC2_CONVERTER_FORMAT             
 63 #define CX2072X_ADC2_AMP_GAIN_RIGHT_0             
 64 #define CX2072X_ADC2_AMP_GAIN_LEFT_0              
 65 #define CX2072X_ADC2_AMP_GAIN_RIGHT_1             
 66 #define CX2072X_ADC2_AMP_GAIN_LEFT_1              
 67 #define CX2072X_ADC2_AMP_GAIN_RIGHT_2             
 68 #define CX2072X_ADC2_AMP_GAIN_LEFT_2              
 69 #define CX2072X_ADC2_CONNECTION_SELECT_CONTROL    
 70 #define CX2072X_ADC2_POWER_STATE                  
 71 #define CX2072X_ADC2_CONVERTER_STREAM_CHANNEL     
 72 #define CX2072X_PORTA_CONNECTION_SELECT_CTRL      
 73 #define CX2072X_PORTA_POWER_STATE                 
 74 #define CX2072X_PORTA_PIN_CTRL                    
 75 #define CX2072X_PORTA_UNSOLICITED_RESPONSE        
 76 #define CX2072X_PORTA_PIN_SENSE                   
 77 #define CX2072X_PORTA_EAPD_BTL                    
 78 #define CX2072X_PORTB_POWER_STATE                 
 79 #define CX2072X_PORTB_PIN_CTRL                    
 80 #define CX2072X_PORTB_UNSOLICITED_RESPONSE        
 81 #define CX2072X_PORTB_PIN_SENSE                   
 82 #define CX2072X_PORTB_EAPD_BTL                    
 83 #define CX2072X_PORTB_GAIN_RIGHT                  
 84 #define CX2072X_PORTB_GAIN_LEFT                   
 85 #define CX2072X_PORTC_POWER_STATE                 
 86 #define CX2072X_PORTC_PIN_CTRL                    
 87 #define CX2072X_PORTC_GAIN_RIGHT                  
 88 #define CX2072X_PORTC_GAIN_LEFT                   
 89 #define CX2072X_PORTD_POWER_STATE                 
 90 #define CX2072X_PORTD_PIN_CTRL                    
 91 #define CX2072X_PORTD_UNSOLICITED_RESPONSE        
 92 #define CX2072X_PORTD_PIN_SENSE                   
 93 #define CX2072X_PORTD_GAIN_RIGHT                  
 94 #define CX2072X_PORTD_GAIN_LEFT                   
 95 #define CX2072X_PORTE_CONNECTION_SELECT_CTRL      
 96 #define CX2072X_PORTE_POWER_STATE                 
 97 #define CX2072X_PORTE_PIN_CTRL                    
 98 #define CX2072X_PORTE_UNSOLICITED_RESPONSE        
 99 #define CX2072X_PORTE_PIN_SENSE                   
100 #define CX2072X_PORTE_EAPD_BTL                    
101 #define CX2072X_PORTE_GAIN_RIGHT                  
102 #define CX2072X_PORTE_GAIN_LEFT                   
103 #define CX2072X_PORTF_POWER_STATE                 
104 #define CX2072X_PORTF_PIN_CTRL                    
105 #define CX2072X_PORTF_UNSOLICITED_RESPONSE        
106 #define CX2072X_PORTF_PIN_SENSE                   
107 #define CX2072X_PORTF_GAIN_RIGHT                  
108 #define CX2072X_PORTF_GAIN_LEFT                   
109 #define CX2072X_PORTG_POWER_STATE                 
110 #define CX2072X_PORTG_PIN_CTRL                    
111 #define CX2072X_PORTG_CONNECTION_SELECT_CTRL      
112 #define CX2072X_PORTG_EAPD_BTL                    
113 #define CX2072X_PORTM_POWER_STATE                 
114 #define CX2072X_PORTM_PIN_CTRL                    
115 #define CX2072X_PORTM_CONNECTION_SELECT_CTRL      
116 #define CX2072X_PORTM_EAPD_BTL                    
117 #define CX2072X_MIXER_POWER_STATE                 
118 #define CX2072X_MIXER_GAIN_RIGHT_0                
119 #define CX2072X_MIXER_GAIN_LEFT_0                 
120 #define CX2072X_MIXER_GAIN_RIGHT_1                
121 #define CX2072X_MIXER_GAIN_LEFT_1                 
122 #define CX2072X_EQ_ENABLE_BYPASS                  
123 #define CX2072X_EQ_B0_COEFF                       
124 #define CX2072X_EQ_B1_COEFF                       
125 #define CX2072X_EQ_B2_COEFF                       
126 #define CX2072X_EQ_A1_COEFF                       
127 #define CX2072X_EQ_A2_COEFF                       
128 #define CX2072X_EQ_G_COEFF                        
129 #define CX2072X_EQ_BAND                           
130 #define CX2072X_SPKR_DRC_ENABLE_STEP              
131 #define CX2072X_SPKR_DRC_CONTROL                  
132 #define CX2072X_SPKR_DRC_TEST                     
133 #define CX2072X_DIGITAL_BIOS_TEST0                
134 #define CX2072X_DIGITAL_BIOS_TEST2                
135 #define CX2072X_I2SPCM_CONTROL1                   
136 #define CX2072X_I2SPCM_CONTROL2                   
137 #define CX2072X_I2SPCM_CONTROL3                   
138 #define CX2072X_I2SPCM_CONTROL4                   
139 #define CX2072X_I2SPCM_CONTROL5                   
140 #define CX2072X_I2SPCM_CONTROL6                   
141 #define CX2072X_UM_INTERRUPT_CRTL_E               
142 #define CX2072X_CODEC_TEST2                       
143 #define CX2072X_CODEC_TEST9                       
144 #define CX2072X_CODEC_TESTXX                      
145 #define CX2072X_CODEC_TEST20                      
146 #define CX2072X_CODEC_TEST24                      
147 #define CX2072X_CODEC_TEST26                      
148 #define CX2072X_ANALOG_TEST3                      
149 #define CX2072X_ANALOG_TEST4                      
150 #define CX2072X_ANALOG_TEST5                      
151 #define CX2072X_ANALOG_TEST6                      
152 #define CX2072X_ANALOG_TEST7                      
153 #define CX2072X_ANALOG_TEST8                      
154 #define CX2072X_ANALOG_TEST9                      
155 #define CX2072X_ANALOG_TEST10                     
156 #define CX2072X_ANALOG_TEST11                     
157 #define CX2072X_ANALOG_TEST12                     
158 #define CX2072X_ANALOG_TEST13                     
159 #define CX2072X_DIGITAL_TEST0                     
160 #define CX2072X_DIGITAL_TEST1                     
161 #define CX2072X_DIGITAL_TEST11                    
162 #define CX2072X_DIGITAL_TEST12                    
163 #define CX2072X_DIGITAL_TEST15                    
164 #define CX2072X_DIGITAL_TEST16                    
165 #define CX2072X_DIGITAL_TEST17                    
166 #define CX2072X_DIGITAL_TEST18                    
167 #define CX2072X_DIGITAL_TEST19                    
168 #define CX2072X_DIGITAL_TEST20                    
169                                                   
170 /* not used in the current code, for future ex    
171 #define CX2072X_MAX_EQ_BAND             7         
172 #define CX2072X_MAX_EQ_COEFF            11        
173 #define CX2072X_MAX_DRC_REGS            9         
174 #define CX2072X_MIC_EQ_COEFF            10        
175 #define CX2072X_PLBK_EQ_BAND_NUM        7         
176 #define CX2072X_PLBK_EQ_COEF_LEN        11        
177 #define CX2072X_PLBK_DRC_PARM_LEN       9         
178 #define CX2072X_CLASSD_AMP_LEN          6         
179                                                   
180 /* DAI interface type */                          
181 #define CX2072X_DAI_HIFI        1                 
182 #define CX2072X_DAI_DSP         2                 
183 #define CX2072X_DAI_DSP_PWM     3 /* 4 ch, inc    
184                                                   
185 enum cx2072x_reg_sample_size {                    
186         CX2072X_SAMPLE_SIZE_8_BITS = 0,           
187         CX2072X_SAMPLE_SIZE_16_BITS = 1,          
188         CX2072X_SAMPLE_SIZE_24_BITS = 2,          
189         CX2072X_SAMPLE_SIZE_RESERVED = 3,         
190 };                                                
191                                                   
192 union cx2072x_reg_i2spcm_ctrl_reg1 {              
193         struct {                                  
194                 u32 rx_data_one_line:1;           
195                 u32 rx_ws_pol:1;                  
196                 u32 rx_ws_wid:7;                  
197                 u32 rx_frm_len:5;                 
198                 u32 rx_sa_size:2;                 
199                 u32 tx_data_one_line:1;           
200                 u32 tx_ws_pol:1;                  
201                 u32 tx_ws_wid:7;                  
202                 u32 tx_frm_len:5;                 
203                 u32 tx_sa_size:2;                 
204         } r;                                      
205         u32 ulval;                                
206 };                                                
207                                                   
208 union cx2072x_reg_i2spcm_ctrl_reg2 {              
209         struct {                                  
210                 u32 tx_en_ch1:1;                  
211                 u32 tx_en_ch2:1;                  
212                 u32 tx_en_ch3:1;                  
213                 u32 tx_en_ch4:1;                  
214                 u32 tx_en_ch5:1;                  
215                 u32 tx_en_ch6:1;                  
216                 u32 tx_slot_1:5;                  
217                 u32 tx_slot_2:5;                  
218                 u32 tx_slot_3:5;                  
219                 u32 tx_slot_4:5;                  
220                 u32 res:1;                        
221                 u32 tx_data_neg_bclk:1;           
222                 u32 tx_master:1;                  
223                 u32 tx_tri_n:1;                   
224                 u32 tx_endian_sel:1;              
225                 u32 tx_dstart_dly:1;              
226         } r;                                      
227         u32 ulval;                                
228 };                                                
229                                                   
230 union cx2072x_reg_i2spcm_ctrl_reg3 {              
231         struct {                                  
232                 u32 rx_en_ch1:1;                  
233                 u32 rx_en_ch2:1;                  
234                 u32 rx_en_ch3:1;                  
235                 u32 rx_en_ch4:1;                  
236                 u32 rx_en_ch5:1;                  
237                 u32 rx_en_ch6:1;                  
238                 u32 rx_slot_1:5;                  
239                 u32 rx_slot_2:5;                  
240                 u32 rx_slot_3:5;                  
241                 u32 rx_slot_4:5;                  
242                 u32 res:1;                        
243                 u32 rx_data_neg_bclk:1;           
244                 u32 rx_master:1;                  
245                 u32 rx_tri_n:1;                   
246                 u32 rx_endian_sel:1;              
247                 u32 rx_dstart_dly:1;              
248         } r;                                      
249         u32 ulval;                                
250 };                                                
251                                                   
252 union cx2072x_reg_i2spcm_ctrl_reg4 {              
253         struct {                                  
254                 u32 rx_mute:1;                    
255                 u32 tx_mute:1;                    
256                 u32 reserved:1;                   
257                 u32 dac_34_independent:1;         
258                 u32 dac_bclk_lrck_share:1;        
259                 u32 bclk_lrck_share_en:1;         
260                 u32 reserved2:2;                  
261                 u32 rx_last_dac_ch_en:1;          
262                 u32 rx_last_dac_ch:3;             
263                 u32 tx_last_adc_ch_en:1;          
264                 u32 tx_last_adc_ch:3;             
265                 u32 rx_slot_5:5;                  
266                 u32 rx_slot_6:5;                  
267                 u32 reserved3:6;                  
268         } r;                                      
269         u32 ulval;                                
270 };                                                
271                                                   
272 union cx2072x_reg_i2spcm_ctrl_reg5 {              
273         struct {                                  
274                 u32 tx_slot_5:5;                  
275                 u32 reserved:3;                   
276                 u32 tx_slot_6:5;                  
277                 u32 reserved2:3;                  
278                 u32 reserved3:8;                  
279                 u32 i2s_pcm_clk_div:7;            
280                 u32 i2s_pcm_clk_div_chan_en:1;    
281         } r;                                      
282         u32 ulval;                                
283 };                                                
284                                                   
285 union cx2072x_reg_i2spcm_ctrl_reg6 {              
286         struct {                                  
287                 u32 reserved:5;                   
288                 u32 rx_pause_cycles:3;            
289                 u32 rx_pause_start_pos:8;         
290                 u32 reserved2:5;                  
291                 u32 tx_pause_cycles:3;            
292                 u32 tx_pause_start_pos:8;         
293         } r;                                      
294         u32 ulval;                                
295 };                                                
296                                                   
297 union cx2072x_reg_digital_bios_test2 {            
298         struct {                                  
299                 u32 pull_down_eapd:2;             
300                 u32 input_en_eapd_pad:1;          
301                 u32 push_pull_mode:1;             
302                 u32 eapd_pad_output_driver:2;     
303                 u32 pll_source:1;                 
304                 u32 i2s_bclk_en:1;                
305                 u32 i2s_bclk_invert:1;            
306                 u32 pll_ref_clock:1;              
307                 u32 class_d_shield_clk:1;         
308                 u32 audio_pll_bypass_mode:1;      
309                 u32 reserved:4;                   
310         } r;                                      
311         u32 ulval;                                
312 };                                                
313                                                   
314 #endif /* __CX2072X_H__ */                        
315                                                   

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