1 #ifndef WM8993_H
2 #define WM8993_H
3 
4 #define WM8993_SYSCLK_MCLK     1
5 #define WM8993_SYSCLK_FLL      2
6 
7 #define WM8993_FLL_MCLK  1
8 #define WM8993_FLL_BCLK  2
9 #define WM8993_FLL_LRCLK 3
10 
11 /*
12  * Register values.
13  */
14 #define WM8993_SOFTWARE_RESET                   0x00
15 #define WM8993_POWER_MANAGEMENT_1               0x01
16 #define WM8993_POWER_MANAGEMENT_2               0x02
17 #define WM8993_POWER_MANAGEMENT_3               0x03
18 #define WM8993_AUDIO_INTERFACE_1                0x04
19 #define WM8993_AUDIO_INTERFACE_2                0x05
20 #define WM8993_CLOCKING_1                       0x06
21 #define WM8993_CLOCKING_2                       0x07
22 #define WM8993_AUDIO_INTERFACE_3                0x08
23 #define WM8993_AUDIO_INTERFACE_4                0x09
24 #define WM8993_DAC_CTRL                         0x0A
25 #define WM8993_LEFT_DAC_DIGITAL_VOLUME          0x0B
26 #define WM8993_RIGHT_DAC_DIGITAL_VOLUME         0x0C
27 #define WM8993_DIGITAL_SIDE_TONE                0x0D
28 #define WM8993_ADC_CTRL                         0x0E
29 #define WM8993_LEFT_ADC_DIGITAL_VOLUME          0x0F
30 #define WM8993_RIGHT_ADC_DIGITAL_VOLUME         0x10
31 #define WM8993_GPIO_CTRL_1                      0x12
32 #define WM8993_GPIO1                            0x13
33 #define WM8993_IRQ_DEBOUNCE                     0x14
34 #define WM8993_INPUTS_CLAMP_REG			0x15
35 #define WM8993_GPIOCTRL_2                       0x16
36 #define WM8993_GPIO_POL                         0x17
37 #define WM8993_LEFT_LINE_INPUT_1_2_VOLUME       0x18
38 #define WM8993_LEFT_LINE_INPUT_3_4_VOLUME       0x19
39 #define WM8993_RIGHT_LINE_INPUT_1_2_VOLUME      0x1A
40 #define WM8993_RIGHT_LINE_INPUT_3_4_VOLUME      0x1B
41 #define WM8993_LEFT_OUTPUT_VOLUME               0x1C
42 #define WM8993_RIGHT_OUTPUT_VOLUME              0x1D
43 #define WM8993_LINE_OUTPUTS_VOLUME              0x1E
44 #define WM8993_HPOUT2_VOLUME                    0x1F
45 #define WM8993_LEFT_OPGA_VOLUME                 0x20
46 #define WM8993_RIGHT_OPGA_VOLUME                0x21
47 #define WM8993_SPKMIXL_ATTENUATION              0x22
48 #define WM8993_SPKMIXR_ATTENUATION              0x23
49 #define WM8993_SPKOUT_MIXERS                    0x24
50 #define WM8993_SPKOUT_BOOST                     0x25
51 #define WM8993_SPEAKER_VOLUME_LEFT              0x26
52 #define WM8993_SPEAKER_VOLUME_RIGHT             0x27
53 #define WM8993_INPUT_MIXER2                     0x28
54 #define WM8993_INPUT_MIXER3                     0x29
55 #define WM8993_INPUT_MIXER4                     0x2A
56 #define WM8993_INPUT_MIXER5                     0x2B
57 #define WM8993_INPUT_MIXER6                     0x2C
58 #define WM8993_OUTPUT_MIXER1                    0x2D
59 #define WM8993_OUTPUT_MIXER2                    0x2E
60 #define WM8993_OUTPUT_MIXER3                    0x2F
61 #define WM8993_OUTPUT_MIXER4                    0x30
62 #define WM8993_OUTPUT_MIXER5                    0x31
63 #define WM8993_OUTPUT_MIXER6                    0x32
64 #define WM8993_HPOUT2_MIXER                     0x33
65 #define WM8993_LINE_MIXER1                      0x34
66 #define WM8993_LINE_MIXER2                      0x35
67 #define WM8993_SPEAKER_MIXER                    0x36
68 #define WM8993_ADDITIONAL_CONTROL               0x37
69 #define WM8993_ANTIPOP1                         0x38
70 #define WM8993_ANTIPOP2                         0x39
71 #define WM8993_MICBIAS                          0x3A
72 #define WM8993_FLL_CONTROL_1                    0x3C
73 #define WM8993_FLL_CONTROL_2                    0x3D
74 #define WM8993_FLL_CONTROL_3                    0x3E
75 #define WM8993_FLL_CONTROL_4                    0x3F
76 #define WM8993_FLL_CONTROL_5                    0x40
77 #define WM8993_CLOCKING_3                       0x41
78 #define WM8993_CLOCKING_4                       0x42
79 #define WM8993_MW_SLAVE_CONTROL                 0x43
80 #define WM8993_BUS_CONTROL_1                    0x45
81 #define WM8993_WRITE_SEQUENCER_0                0x46
82 #define WM8993_WRITE_SEQUENCER_1                0x47
83 #define WM8993_WRITE_SEQUENCER_2                0x48
84 #define WM8993_WRITE_SEQUENCER_3                0x49
85 #define WM8993_WRITE_SEQUENCER_4                0x4A
86 #define WM8993_WRITE_SEQUENCER_5                0x4B
87 #define WM8993_CHARGE_PUMP_1                    0x4C
88 #define WM8993_CLASS_W_0                        0x51
89 #define WM8993_DC_SERVO_0                       0x54
90 #define WM8993_DC_SERVO_1                       0x55
91 #define WM8993_DC_SERVO_3                       0x57
92 #define WM8993_DC_SERVO_READBACK_0              0x58
93 #define WM8993_DC_SERVO_READBACK_1              0x59
94 #define WM8993_DC_SERVO_READBACK_2              0x5A
95 #define WM8993_ANALOGUE_HP_0                    0x60
96 #define WM8993_EQ1                              0x62
97 #define WM8993_EQ2                              0x63
98 #define WM8993_EQ3                              0x64
99 #define WM8993_EQ4                              0x65
100 #define WM8993_EQ5                              0x66
101 #define WM8993_EQ6                              0x67
102 #define WM8993_EQ7                              0x68
103 #define WM8993_EQ8                              0x69
104 #define WM8993_EQ9                              0x6A
105 #define WM8993_EQ10                             0x6B
106 #define WM8993_EQ11                             0x6C
107 #define WM8993_EQ12                             0x6D
108 #define WM8993_EQ13                             0x6E
109 #define WM8993_EQ14                             0x6F
110 #define WM8993_EQ15                             0x70
111 #define WM8993_EQ16                             0x71
112 #define WM8993_EQ17                             0x72
113 #define WM8993_EQ18                             0x73
114 #define WM8993_EQ19                             0x74
115 #define WM8993_EQ20                             0x75
116 #define WM8993_EQ21                             0x76
117 #define WM8993_EQ22                             0x77
118 #define WM8993_EQ23                             0x78
119 #define WM8993_EQ24                             0x79
120 #define WM8993_DIGITAL_PULLS                    0x7A
121 #define WM8993_DRC_CONTROL_1                    0x7B
122 #define WM8993_DRC_CONTROL_2                    0x7C
123 #define WM8993_DRC_CONTROL_3                    0x7D
124 #define WM8993_DRC_CONTROL_4                    0x7E
125 
126 #define WM8993_REGISTER_COUNT                   0x7F
127 #define WM8993_MAX_REGISTER                     0x7E
128 
129 /*
130  * Field Definitions.
131  */
132 
133 /*
134  * R0 (0x00) - Software Reset
135  */
136 #define WM8993_SW_RESET_MASK                    0xFFFF  /* SW_RESET - [15:0] */
137 #define WM8993_SW_RESET_SHIFT                        0  /* SW_RESET - [15:0] */
138 #define WM8993_SW_RESET_WIDTH                       16  /* SW_RESET - [15:0] */
139 
140 /*
141  * R1 (0x01) - Power Management (1)
142  */
143 #define WM8993_SPKOUTR_ENA                      0x2000  /* SPKOUTR_ENA */
144 #define WM8993_SPKOUTR_ENA_MASK                 0x2000  /* SPKOUTR_ENA */
145 #define WM8993_SPKOUTR_ENA_SHIFT                    13  /* SPKOUTR_ENA */
146 #define WM8993_SPKOUTR_ENA_WIDTH                     1  /* SPKOUTR_ENA */
147 #define WM8993_SPKOUTL_ENA                      0x1000  /* SPKOUTL_ENA */
148 #define WM8993_SPKOUTL_ENA_MASK                 0x1000  /* SPKOUTL_ENA */
149 #define WM8993_SPKOUTL_ENA_SHIFT                    12  /* SPKOUTL_ENA */
150 #define WM8993_SPKOUTL_ENA_WIDTH                     1  /* SPKOUTL_ENA */
151 #define WM8993_HPOUT2_ENA                       0x0800  /* HPOUT2_ENA */
152 #define WM8993_HPOUT2_ENA_MASK                  0x0800  /* HPOUT2_ENA */
153 #define WM8993_HPOUT2_ENA_SHIFT                     11  /* HPOUT2_ENA */
154 #define WM8993_HPOUT2_ENA_WIDTH                      1  /* HPOUT2_ENA */
155 #define WM8993_HPOUT1L_ENA                      0x0200  /* HPOUT1L_ENA */
156 #define WM8993_HPOUT1L_ENA_MASK                 0x0200  /* HPOUT1L_ENA */
157 #define WM8993_HPOUT1L_ENA_SHIFT                     9  /* HPOUT1L_ENA */
158 #define WM8993_HPOUT1L_ENA_WIDTH                     1  /* HPOUT1L_ENA */
159 #define WM8993_HPOUT1R_ENA                      0x0100  /* HPOUT1R_ENA */
160 #define WM8993_HPOUT1R_ENA_MASK                 0x0100  /* HPOUT1R_ENA */
161 #define WM8993_HPOUT1R_ENA_SHIFT                     8  /* HPOUT1R_ENA */
162 #define WM8993_HPOUT1R_ENA_WIDTH                     1  /* HPOUT1R_ENA */
163 #define WM8993_MICB2_ENA                        0x0020  /* MICB2_ENA */
164 #define WM8993_MICB2_ENA_MASK                   0x0020  /* MICB2_ENA */
165 #define WM8993_MICB2_ENA_SHIFT                       5  /* MICB2_ENA */
166 #define WM8993_MICB2_ENA_WIDTH                       1  /* MICB2_ENA */
167 #define WM8993_MICB1_ENA                        0x0010  /* MICB1_ENA */
168 #define WM8993_MICB1_ENA_MASK                   0x0010  /* MICB1_ENA */
169 #define WM8993_MICB1_ENA_SHIFT                       4  /* MICB1_ENA */
170 #define WM8993_MICB1_ENA_WIDTH                       1  /* MICB1_ENA */
171 #define WM8993_VMID_SEL_MASK                    0x0006  /* VMID_SEL - [2:1] */
172 #define WM8993_VMID_SEL_SHIFT                        1  /* VMID_SEL - [2:1] */
173 #define WM8993_VMID_SEL_WIDTH                        2  /* VMID_SEL - [2:1] */
174 #define WM8993_BIAS_ENA                         0x0001  /* BIAS_ENA */
175 #define WM8993_BIAS_ENA_MASK                    0x0001  /* BIAS_ENA */
176 #define WM8993_BIAS_ENA_SHIFT                        0  /* BIAS_ENA */
177 #define WM8993_BIAS_ENA_WIDTH                        1  /* BIAS_ENA */
178 
179 /*
180  * R2 (0x02) - Power Management (2)
181  */
182 #define WM8993_TSHUT_ENA                        0x4000  /* TSHUT_ENA */
183 #define WM8993_TSHUT_ENA_MASK                   0x4000  /* TSHUT_ENA */
184 #define WM8993_TSHUT_ENA_SHIFT                      14  /* TSHUT_ENA */
185 #define WM8993_TSHUT_ENA_WIDTH                       1  /* TSHUT_ENA */
186 #define WM8993_TSHUT_OPDIS                      0x2000  /* TSHUT_OPDIS */
187 #define WM8993_TSHUT_OPDIS_MASK                 0x2000  /* TSHUT_OPDIS */
188 #define WM8993_TSHUT_OPDIS_SHIFT                    13  /* TSHUT_OPDIS */
189 #define WM8993_TSHUT_OPDIS_WIDTH                     1  /* TSHUT_OPDIS */
190 #define WM8993_OPCLK_ENA                        0x0800  /* OPCLK_ENA */
191 #define WM8993_OPCLK_ENA_MASK                   0x0800  /* OPCLK_ENA */
192 #define WM8993_OPCLK_ENA_SHIFT                      11  /* OPCLK_ENA */
193 #define WM8993_OPCLK_ENA_WIDTH                       1  /* OPCLK_ENA */
194 #define WM8993_MIXINL_ENA                       0x0200  /* MIXINL_ENA */
195 #define WM8993_MIXINL_ENA_MASK                  0x0200  /* MIXINL_ENA */
196 #define WM8993_MIXINL_ENA_SHIFT                      9  /* MIXINL_ENA */
197 #define WM8993_MIXINL_ENA_WIDTH                      1  /* MIXINL_ENA */
198 #define WM8993_MIXINR_ENA                       0x0100  /* MIXINR_ENA */
199 #define WM8993_MIXINR_ENA_MASK                  0x0100  /* MIXINR_ENA */
200 #define WM8993_MIXINR_ENA_SHIFT                      8  /* MIXINR_ENA */
201 #define WM8993_MIXINR_ENA_WIDTH                      1  /* MIXINR_ENA */
202 #define WM8993_IN2L_ENA                         0x0080  /* IN2L_ENA */
203 #define WM8993_IN2L_ENA_MASK                    0x0080  /* IN2L_ENA */
204 #define WM8993_IN2L_ENA_SHIFT                        7  /* IN2L_ENA */
205 #define WM8993_IN2L_ENA_WIDTH                        1  /* IN2L_ENA */
206 #define WM8993_IN1L_ENA                         0x0040  /* IN1L_ENA */
207 #define WM8993_IN1L_ENA_MASK                    0x0040  /* IN1L_ENA */
208 #define WM8993_IN1L_ENA_SHIFT                        6  /* IN1L_ENA */
209 #define WM8993_IN1L_ENA_WIDTH                        1  /* IN1L_ENA */
210 #define WM8993_IN2R_ENA                         0x0020  /* IN2R_ENA */
211 #define WM8993_IN2R_ENA_MASK                    0x0020  /* IN2R_ENA */
212 #define WM8993_IN2R_ENA_SHIFT                        5  /* IN2R_ENA */
213 #define WM8993_IN2R_ENA_WIDTH                        1  /* IN2R_ENA */
214 #define WM8993_IN1R_ENA                         0x0010  /* IN1R_ENA */
215 #define WM8993_IN1R_ENA_MASK                    0x0010  /* IN1R_ENA */
216 #define WM8993_IN1R_ENA_SHIFT                        4  /* IN1R_ENA */
217 #define WM8993_IN1R_ENA_WIDTH                        1  /* IN1R_ENA */
218 #define WM8993_ADCL_ENA                         0x0002  /* ADCL_ENA */
219 #define WM8993_ADCL_ENA_MASK                    0x0002  /* ADCL_ENA */
220 #define WM8993_ADCL_ENA_SHIFT                        1  /* ADCL_ENA */
221 #define WM8993_ADCL_ENA_WIDTH                        1  /* ADCL_ENA */
222 #define WM8993_ADCR_ENA                         0x0001  /* ADCR_ENA */
223 #define WM8993_ADCR_ENA_MASK                    0x0001  /* ADCR_ENA */
224 #define WM8993_ADCR_ENA_SHIFT                        0  /* ADCR_ENA */
225 #define WM8993_ADCR_ENA_WIDTH                        1  /* ADCR_ENA */
226 
227 /*
228  * R3 (0x03) - Power Management (3)
229  */
230 #define WM8993_LINEOUT1N_ENA                    0x2000  /* LINEOUT1N_ENA */
231 #define WM8993_LINEOUT1N_ENA_MASK               0x2000  /* LINEOUT1N_ENA */
232 #define WM8993_LINEOUT1N_ENA_SHIFT                  13  /* LINEOUT1N_ENA */
233 #define WM8993_LINEOUT1N_ENA_WIDTH                   1  /* LINEOUT1N_ENA */
234 #define WM8993_LINEOUT1P_ENA                    0x1000  /* LINEOUT1P_ENA */
235 #define WM8993_LINEOUT1P_ENA_MASK               0x1000  /* LINEOUT1P_ENA */
236 #define WM8993_LINEOUT1P_ENA_SHIFT                  12  /* LINEOUT1P_ENA */
237 #define WM8993_LINEOUT1P_ENA_WIDTH                   1  /* LINEOUT1P_ENA */
238 #define WM8993_LINEOUT2N_ENA                    0x0800  /* LINEOUT2N_ENA */
239 #define WM8993_LINEOUT2N_ENA_MASK               0x0800  /* LINEOUT2N_ENA */
240 #define WM8993_LINEOUT2N_ENA_SHIFT                  11  /* LINEOUT2N_ENA */
241 #define WM8993_LINEOUT2N_ENA_WIDTH                   1  /* LINEOUT2N_ENA */
242 #define WM8993_LINEOUT2P_ENA                    0x0400  /* LINEOUT2P_ENA */
243 #define WM8993_LINEOUT2P_ENA_MASK               0x0400  /* LINEOUT2P_ENA */
244 #define WM8993_LINEOUT2P_ENA_SHIFT                  10  /* LINEOUT2P_ENA */
245 #define WM8993_LINEOUT2P_ENA_WIDTH                   1  /* LINEOUT2P_ENA */
246 #define WM8993_SPKRVOL_ENA                      0x0200  /* SPKRVOL_ENA */
247 #define WM8993_SPKRVOL_ENA_MASK                 0x0200  /* SPKRVOL_ENA */
248 #define WM8993_SPKRVOL_ENA_SHIFT                     9  /* SPKRVOL_ENA */
249 #define WM8993_SPKRVOL_ENA_WIDTH                     1  /* SPKRVOL_ENA */
250 #define WM8993_SPKLVOL_ENA                      0x0100  /* SPKLVOL_ENA */
251 #define WM8993_SPKLVOL_ENA_MASK                 0x0100  /* SPKLVOL_ENA */
252 #define WM8993_SPKLVOL_ENA_SHIFT                     8  /* SPKLVOL_ENA */
253 #define WM8993_SPKLVOL_ENA_WIDTH                     1  /* SPKLVOL_ENA */
254 #define WM8993_MIXOUTLVOL_ENA                   0x0080  /* MIXOUTLVOL_ENA */
255 #define WM8993_MIXOUTLVOL_ENA_MASK              0x0080  /* MIXOUTLVOL_ENA */
256 #define WM8993_MIXOUTLVOL_ENA_SHIFT                  7  /* MIXOUTLVOL_ENA */
257 #define WM8993_MIXOUTLVOL_ENA_WIDTH                  1  /* MIXOUTLVOL_ENA */
258 #define WM8993_MIXOUTRVOL_ENA                   0x0040  /* MIXOUTRVOL_ENA */
259 #define WM8993_MIXOUTRVOL_ENA_MASK              0x0040  /* MIXOUTRVOL_ENA */
260 #define WM8993_MIXOUTRVOL_ENA_SHIFT                  6  /* MIXOUTRVOL_ENA */
261 #define WM8993_MIXOUTRVOL_ENA_WIDTH                  1  /* MIXOUTRVOL_ENA */
262 #define WM8993_MIXOUTL_ENA                      0x0020  /* MIXOUTL_ENA */
263 #define WM8993_MIXOUTL_ENA_MASK                 0x0020  /* MIXOUTL_ENA */
264 #define WM8993_MIXOUTL_ENA_SHIFT                     5  /* MIXOUTL_ENA */
265 #define WM8993_MIXOUTL_ENA_WIDTH                     1  /* MIXOUTL_ENA */
266 #define WM8993_MIXOUTR_ENA                      0x0010  /* MIXOUTR_ENA */
267 #define WM8993_MIXOUTR_ENA_MASK                 0x0010  /* MIXOUTR_ENA */
268 #define WM8993_MIXOUTR_ENA_SHIFT                     4  /* MIXOUTR_ENA */
269 #define WM8993_MIXOUTR_ENA_WIDTH                     1  /* MIXOUTR_ENA */
270 #define WM8993_DACL_ENA                         0x0002  /* DACL_ENA */
271 #define WM8993_DACL_ENA_MASK                    0x0002  /* DACL_ENA */
272 #define WM8993_DACL_ENA_SHIFT                        1  /* DACL_ENA */
273 #define WM8993_DACL_ENA_WIDTH                        1  /* DACL_ENA */
274 #define WM8993_DACR_ENA                         0x0001  /* DACR_ENA */
275 #define WM8993_DACR_ENA_MASK                    0x0001  /* DACR_ENA */
276 #define WM8993_DACR_ENA_SHIFT                        0  /* DACR_ENA */
277 #define WM8993_DACR_ENA_WIDTH                        1  /* DACR_ENA */
278 
279 /*
280  * R4 (0x04) - Audio Interface (1)
281  */
282 #define WM8993_AIFADCL_SRC                      0x8000  /* AIFADCL_SRC */
283 #define WM8993_AIFADCL_SRC_MASK                 0x8000  /* AIFADCL_SRC */
284 #define WM8993_AIFADCL_SRC_SHIFT                    15  /* AIFADCL_SRC */
285 #define WM8993_AIFADCL_SRC_WIDTH                     1  /* AIFADCL_SRC */
286 #define WM8993_AIFADCR_SRC                      0x4000  /* AIFADCR_SRC */
287 #define WM8993_AIFADCR_SRC_MASK                 0x4000  /* AIFADCR_SRC */
288 #define WM8993_AIFADCR_SRC_SHIFT                    14  /* AIFADCR_SRC */
289 #define WM8993_AIFADCR_SRC_WIDTH                     1  /* AIFADCR_SRC */
290 #define WM8993_AIFADC_TDM                       0x2000  /* AIFADC_TDM */
291 #define WM8993_AIFADC_TDM_MASK                  0x2000  /* AIFADC_TDM */
292 #define WM8993_AIFADC_TDM_SHIFT                     13  /* AIFADC_TDM */
293 #define WM8993_AIFADC_TDM_WIDTH                      1  /* AIFADC_TDM */
294 #define WM8993_AIFADC_TDM_CHAN                  0x1000  /* AIFADC_TDM_CHAN */
295 #define WM8993_AIFADC_TDM_CHAN_MASK             0x1000  /* AIFADC_TDM_CHAN */
296 #define WM8993_AIFADC_TDM_CHAN_SHIFT                12  /* AIFADC_TDM_CHAN */
297 #define WM8993_AIFADC_TDM_CHAN_WIDTH                 1  /* AIFADC_TDM_CHAN */
298 #define WM8993_BCLK_DIR                         0x0200  /* BCLK_DIR */
299 #define WM8993_BCLK_DIR_MASK                    0x0200  /* BCLK_DIR */
300 #define WM8993_BCLK_DIR_SHIFT                        9  /* BCLK_DIR */
301 #define WM8993_BCLK_DIR_WIDTH                        1  /* BCLK_DIR */
302 #define WM8993_AIF_BCLK_INV                     0x0100  /* AIF_BCLK_INV */
303 #define WM8993_AIF_BCLK_INV_MASK                0x0100  /* AIF_BCLK_INV */
304 #define WM8993_AIF_BCLK_INV_SHIFT                    8  /* AIF_BCLK_INV */
305 #define WM8993_AIF_BCLK_INV_WIDTH                    1  /* AIF_BCLK_INV */
306 #define WM8993_AIF_LRCLK_INV                    0x0080  /* AIF_LRCLK_INV */
307 #define WM8993_AIF_LRCLK_INV_MASK               0x0080  /* AIF_LRCLK_INV */
308 #define WM8993_AIF_LRCLK_INV_SHIFT                   7  /* AIF_LRCLK_INV */
309 #define WM8993_AIF_LRCLK_INV_WIDTH                   1  /* AIF_LRCLK_INV */
310 #define WM8993_AIF_WL_MASK                      0x0060  /* AIF_WL - [6:5] */
311 #define WM8993_AIF_WL_SHIFT                          5  /* AIF_WL - [6:5] */
312 #define WM8993_AIF_WL_WIDTH                          2  /* AIF_WL - [6:5] */
313 #define WM8993_AIF_FMT_MASK                     0x0018  /* AIF_FMT - [4:3] */
314 #define WM8993_AIF_FMT_SHIFT                         3  /* AIF_FMT - [4:3] */
315 #define WM8993_AIF_FMT_WIDTH                         2  /* AIF_FMT - [4:3] */
316 
317 /*
318  * R5 (0x05) - Audio Interface (2)
319  */
320 #define WM8993_AIFDACL_SRC                      0x8000  /* AIFDACL_SRC */
321 #define WM8993_AIFDACL_SRC_MASK                 0x8000  /* AIFDACL_SRC */
322 #define WM8993_AIFDACL_SRC_SHIFT                    15  /* AIFDACL_SRC */
323 #define WM8993_AIFDACL_SRC_WIDTH                     1  /* AIFDACL_SRC */
324 #define WM8993_AIFDACR_SRC                      0x4000  /* AIFDACR_SRC */
325 #define WM8993_AIFDACR_SRC_MASK                 0x4000  /* AIFDACR_SRC */
326 #define WM8993_AIFDACR_SRC_SHIFT                    14  /* AIFDACR_SRC */
327 #define WM8993_AIFDACR_SRC_WIDTH                     1  /* AIFDACR_SRC */
328 #define WM8993_AIFDAC_TDM                       0x2000  /* AIFDAC_TDM */
329 #define WM8993_AIFDAC_TDM_MASK                  0x2000  /* AIFDAC_TDM */
330 #define WM8993_AIFDAC_TDM_SHIFT                     13  /* AIFDAC_TDM */
331 #define WM8993_AIFDAC_TDM_WIDTH                      1  /* AIFDAC_TDM */
332 #define WM8993_AIFDAC_TDM_CHAN                  0x1000  /* AIFDAC_TDM_CHAN */
333 #define WM8993_AIFDAC_TDM_CHAN_MASK             0x1000  /* AIFDAC_TDM_CHAN */
334 #define WM8993_AIFDAC_TDM_CHAN_SHIFT                12  /* AIFDAC_TDM_CHAN */
335 #define WM8993_AIFDAC_TDM_CHAN_WIDTH                 1  /* AIFDAC_TDM_CHAN */
336 #define WM8993_DAC_BOOST_MASK                   0x0C00  /* DAC_BOOST - [11:10] */
337 #define WM8993_DAC_BOOST_SHIFT                      10  /* DAC_BOOST - [11:10] */
338 #define WM8993_DAC_BOOST_WIDTH                       2  /* DAC_BOOST - [11:10] */
339 #define WM8993_DAC_COMP                         0x0010  /* DAC_COMP */
340 #define WM8993_DAC_COMP_MASK                    0x0010  /* DAC_COMP */
341 #define WM8993_DAC_COMP_SHIFT                        4  /* DAC_COMP */
342 #define WM8993_DAC_COMP_WIDTH                        1  /* DAC_COMP */
343 #define WM8993_DAC_COMPMODE                     0x0008  /* DAC_COMPMODE */
344 #define WM8993_DAC_COMPMODE_MASK                0x0008  /* DAC_COMPMODE */
345 #define WM8993_DAC_COMPMODE_SHIFT                    3  /* DAC_COMPMODE */
346 #define WM8993_DAC_COMPMODE_WIDTH                    1  /* DAC_COMPMODE */
347 #define WM8993_ADC_COMP                         0x0004  /* ADC_COMP */
348 #define WM8993_ADC_COMP_MASK                    0x0004  /* ADC_COMP */
349 #define WM8993_ADC_COMP_SHIFT                        2  /* ADC_COMP */
350 #define WM8993_ADC_COMP_WIDTH                        1  /* ADC_COMP */
351 #define WM8993_ADC_COMPMODE                     0x0002  /* ADC_COMPMODE */
352 #define WM8993_ADC_COMPMODE_MASK                0x0002  /* ADC_COMPMODE */
353 #define WM8993_ADC_COMPMODE_SHIFT                    1  /* ADC_COMPMODE */
354 #define WM8993_ADC_COMPMODE_WIDTH                    1  /* ADC_COMPMODE */
355 #define WM8993_LOOPBACK                         0x0001  /* LOOPBACK */
356 #define WM8993_LOOPBACK_MASK                    0x0001  /* LOOPBACK */
357 #define WM8993_LOOPBACK_SHIFT                        0  /* LOOPBACK */
358 #define WM8993_LOOPBACK_WIDTH                        1  /* LOOPBACK */
359 
360 /*
361  * R6 (0x06) - Clocking 1
362  */
363 #define WM8993_TOCLK_RATE                       0x8000  /* TOCLK_RATE */
364 #define WM8993_TOCLK_RATE_MASK                  0x8000  /* TOCLK_RATE */
365 #define WM8993_TOCLK_RATE_SHIFT                     15  /* TOCLK_RATE */
366 #define WM8993_TOCLK_RATE_WIDTH                      1  /* TOCLK_RATE */
367 #define WM8993_TOCLK_ENA                        0x4000  /* TOCLK_ENA */
368 #define WM8993_TOCLK_ENA_MASK                   0x4000  /* TOCLK_ENA */
369 #define WM8993_TOCLK_ENA_SHIFT                      14  /* TOCLK_ENA */
370 #define WM8993_TOCLK_ENA_WIDTH                       1  /* TOCLK_ENA */
371 #define WM8993_OPCLK_DIV_MASK                   0x1E00  /* OPCLK_DIV - [12:9] */
372 #define WM8993_OPCLK_DIV_SHIFT                       9  /* OPCLK_DIV - [12:9] */
373 #define WM8993_OPCLK_DIV_WIDTH                       4  /* OPCLK_DIV - [12:9] */
374 #define WM8993_DCLK_DIV_MASK                    0x01C0  /* DCLK_DIV - [8:6] */
375 #define WM8993_DCLK_DIV_SHIFT                        6  /* DCLK_DIV - [8:6] */
376 #define WM8993_DCLK_DIV_WIDTH                        3  /* DCLK_DIV - [8:6] */
377 #define WM8993_BCLK_DIV_MASK                    0x001E  /* BCLK_DIV - [4:1] */
378 #define WM8993_BCLK_DIV_SHIFT                        1  /* BCLK_DIV - [4:1] */
379 #define WM8993_BCLK_DIV_WIDTH                        4  /* BCLK_DIV - [4:1] */
380 
381 /*
382  * R7 (0x07) - Clocking 2
383  */
384 #define WM8993_MCLK_SRC                         0x8000  /* MCLK_SRC */
385 #define WM8993_MCLK_SRC_MASK                    0x8000  /* MCLK_SRC */
386 #define WM8993_MCLK_SRC_SHIFT                       15  /* MCLK_SRC */
387 #define WM8993_MCLK_SRC_WIDTH                        1  /* MCLK_SRC */
388 #define WM8993_SYSCLK_SRC                       0x4000  /* SYSCLK_SRC */
389 #define WM8993_SYSCLK_SRC_MASK                  0x4000  /* SYSCLK_SRC */
390 #define WM8993_SYSCLK_SRC_SHIFT                     14  /* SYSCLK_SRC */
391 #define WM8993_SYSCLK_SRC_WIDTH                      1  /* SYSCLK_SRC */
392 #define WM8993_MCLK_DIV                         0x1000  /* MCLK_DIV */
393 #define WM8993_MCLK_DIV_MASK                    0x1000  /* MCLK_DIV */
394 #define WM8993_MCLK_DIV_SHIFT                       12  /* MCLK_DIV */
395 #define WM8993_MCLK_DIV_WIDTH                        1  /* MCLK_DIV */
396 #define WM8993_MCLK_INV                         0x0400  /* MCLK_INV */
397 #define WM8993_MCLK_INV_MASK                    0x0400  /* MCLK_INV */
398 #define WM8993_MCLK_INV_SHIFT                       10  /* MCLK_INV */
399 #define WM8993_MCLK_INV_WIDTH                        1  /* MCLK_INV */
400 #define WM8993_ADC_DIV_MASK                     0x00E0  /* ADC_DIV - [7:5] */
401 #define WM8993_ADC_DIV_SHIFT                         5  /* ADC_DIV - [7:5] */
402 #define WM8993_ADC_DIV_WIDTH                         3  /* ADC_DIV - [7:5] */
403 #define WM8993_DAC_DIV_MASK                     0x001C  /* DAC_DIV - [4:2] */
404 #define WM8993_DAC_DIV_SHIFT                         2  /* DAC_DIV - [4:2] */
405 #define WM8993_DAC_DIV_WIDTH                         3  /* DAC_DIV - [4:2] */
406 
407 /*
408  * R8 (0x08) - Audio Interface (3)
409  */
410 #define WM8993_AIF_MSTR1                        0x8000  /* AIF_MSTR1 */
411 #define WM8993_AIF_MSTR1_MASK                   0x8000  /* AIF_MSTR1 */
412 #define WM8993_AIF_MSTR1_SHIFT                      15  /* AIF_MSTR1 */
413 #define WM8993_AIF_MSTR1_WIDTH                       1  /* AIF_MSTR1 */
414 
415 /*
416  * R9 (0x09) - Audio Interface (4)
417  */
418 #define WM8993_AIF_TRIS                         0x2000  /* AIF_TRIS */
419 #define WM8993_AIF_TRIS_MASK                    0x2000  /* AIF_TRIS */
420 #define WM8993_AIF_TRIS_SHIFT                       13  /* AIF_TRIS */
421 #define WM8993_AIF_TRIS_WIDTH                        1  /* AIF_TRIS */
422 #define WM8993_LRCLK_DIR                        0x0800  /* LRCLK_DIR */
423 #define WM8993_LRCLK_DIR_MASK                   0x0800  /* LRCLK_DIR */
424 #define WM8993_LRCLK_DIR_SHIFT                      11  /* LRCLK_DIR */
425 #define WM8993_LRCLK_DIR_WIDTH                       1  /* LRCLK_DIR */
426 #define WM8993_LRCLK_RATE_MASK                  0x07FF  /* LRCLK_RATE - [10:0] */
427 #define WM8993_LRCLK_RATE_SHIFT                      0  /* LRCLK_RATE - [10:0] */
428 #define WM8993_LRCLK_RATE_WIDTH                     11  /* LRCLK_RATE - [10:0] */
429 
430 /*
431  * R10 (0x0A) - DAC CTRL
432  */
433 #define WM8993_DAC_OSR128                       0x2000  /* DAC_OSR128 */
434 #define WM8993_DAC_OSR128_MASK                  0x2000  /* DAC_OSR128 */
435 #define WM8993_DAC_OSR128_SHIFT                     13  /* DAC_OSR128 */
436 #define WM8993_DAC_OSR128_WIDTH                      1  /* DAC_OSR128 */
437 #define WM8993_DAC_MONO                         0x0200  /* DAC_MONO */
438 #define WM8993_DAC_MONO_MASK                    0x0200  /* DAC_MONO */
439 #define WM8993_DAC_MONO_SHIFT                        9  /* DAC_MONO */
440 #define WM8993_DAC_MONO_WIDTH                        1  /* DAC_MONO */
441 #define WM8993_DAC_SB_FILT                      0x0100  /* DAC_SB_FILT */
442 #define WM8993_DAC_SB_FILT_MASK                 0x0100  /* DAC_SB_FILT */
443 #define WM8993_DAC_SB_FILT_SHIFT                     8  /* DAC_SB_FILT */
444 #define WM8993_DAC_SB_FILT_WIDTH                     1  /* DAC_SB_FILT */
445 #define WM8993_DAC_MUTERATE                     0x0080  /* DAC_MUTERATE */
446 #define WM8993_DAC_MUTERATE_MASK                0x0080  /* DAC_MUTERATE */
447 #define WM8993_DAC_MUTERATE_SHIFT                    7  /* DAC_MUTERATE */
448 #define WM8993_DAC_MUTERATE_WIDTH                    1  /* DAC_MUTERATE */
449 #define WM8993_DAC_UNMUTE_RAMP                  0x0040  /* DAC_UNMUTE_RAMP */
450 #define WM8993_DAC_UNMUTE_RAMP_MASK             0x0040  /* DAC_UNMUTE_RAMP */
451 #define WM8993_DAC_UNMUTE_RAMP_SHIFT                 6  /* DAC_UNMUTE_RAMP */
452 #define WM8993_DAC_UNMUTE_RAMP_WIDTH                 1  /* DAC_UNMUTE_RAMP */
453 #define WM8993_DEEMPH_MASK                      0x0030  /* DEEMPH - [5:4] */
454 #define WM8993_DEEMPH_SHIFT                          4  /* DEEMPH - [5:4] */
455 #define WM8993_DEEMPH_WIDTH                          2  /* DEEMPH - [5:4] */
456 #define WM8993_DAC_MUTE                         0x0004  /* DAC_MUTE */
457 #define WM8993_DAC_MUTE_MASK                    0x0004  /* DAC_MUTE */
458 #define WM8993_DAC_MUTE_SHIFT                        2  /* DAC_MUTE */
459 #define WM8993_DAC_MUTE_WIDTH                        1  /* DAC_MUTE */
460 #define WM8993_DACL_DATINV                      0x0002  /* DACL_DATINV */
461 #define WM8993_DACL_DATINV_MASK                 0x0002  /* DACL_DATINV */
462 #define WM8993_DACL_DATINV_SHIFT                     1  /* DACL_DATINV */
463 #define WM8993_DACL_DATINV_WIDTH                     1  /* DACL_DATINV */
464 #define WM8993_DACR_DATINV                      0x0001  /* DACR_DATINV */
465 #define WM8993_DACR_DATINV_MASK                 0x0001  /* DACR_DATINV */
466 #define WM8993_DACR_DATINV_SHIFT                     0  /* DACR_DATINV */
467 #define WM8993_DACR_DATINV_WIDTH                     1  /* DACR_DATINV */
468 
469 /*
470  * R11 (0x0B) - Left DAC Digital Volume
471  */
472 #define WM8993_DAC_VU                           0x0100  /* DAC_VU */
473 #define WM8993_DAC_VU_MASK                      0x0100  /* DAC_VU */
474 #define WM8993_DAC_VU_SHIFT                          8  /* DAC_VU */
475 #define WM8993_DAC_VU_WIDTH                          1  /* DAC_VU */
476 #define WM8993_DACL_VOL_MASK                    0x00FF  /* DACL_VOL - [7:0] */
477 #define WM8993_DACL_VOL_SHIFT                        0  /* DACL_VOL - [7:0] */
478 #define WM8993_DACL_VOL_WIDTH                        8  /* DACL_VOL - [7:0] */
479 
480 /*
481  * R12 (0x0C) - Right DAC Digital Volume
482  */
483 #define WM8993_DAC_VU                           0x0100  /* DAC_VU */
484 #define WM8993_DAC_VU_MASK                      0x0100  /* DAC_VU */
485 #define WM8993_DAC_VU_SHIFT                          8  /* DAC_VU */
486 #define WM8993_DAC_VU_WIDTH                          1  /* DAC_VU */
487 #define WM8993_DACR_VOL_MASK                    0x00FF  /* DACR_VOL - [7:0] */
488 #define WM8993_DACR_VOL_SHIFT                        0  /* DACR_VOL - [7:0] */
489 #define WM8993_DACR_VOL_WIDTH                        8  /* DACR_VOL - [7:0] */
490 
491 /*
492  * R13 (0x0D) - Digital Side Tone
493  */
494 #define WM8993_ADCL_DAC_SVOL_MASK               0x1E00  /* ADCL_DAC_SVOL - [12:9] */
495 #define WM8993_ADCL_DAC_SVOL_SHIFT                   9  /* ADCL_DAC_SVOL - [12:9] */
496 #define WM8993_ADCL_DAC_SVOL_WIDTH                   4  /* ADCL_DAC_SVOL - [12:9] */
497 #define WM8993_ADCR_DAC_SVOL_MASK               0x01E0  /* ADCR_DAC_SVOL - [8:5] */
498 #define WM8993_ADCR_DAC_SVOL_SHIFT                   5  /* ADCR_DAC_SVOL - [8:5] */
499 #define WM8993_ADCR_DAC_SVOL_WIDTH                   4  /* ADCR_DAC_SVOL - [8:5] */
500 #define WM8993_ADC_TO_DACL_MASK                 0x000C  /* ADC_TO_DACL - [3:2] */
501 #define WM8993_ADC_TO_DACL_SHIFT                     2  /* ADC_TO_DACL - [3:2] */
502 #define WM8993_ADC_TO_DACL_WIDTH                     2  /* ADC_TO_DACL - [3:2] */
503 #define WM8993_ADC_TO_DACR_MASK                 0x0003  /* ADC_TO_DACR - [1:0] */
504 #define WM8993_ADC_TO_DACR_SHIFT                     0  /* ADC_TO_DACR - [1:0] */
505 #define WM8993_ADC_TO_DACR_WIDTH                     2  /* ADC_TO_DACR - [1:0] */
506 
507 /*
508  * R14 (0x0E) - ADC CTRL
509  */
510 #define WM8993_ADC_OSR128                       0x0200  /* ADC_OSR128 */
511 #define WM8993_ADC_OSR128_MASK                  0x0200  /* ADC_OSR128 */
512 #define WM8993_ADC_OSR128_SHIFT                      9  /* ADC_OSR128 */
513 #define WM8993_ADC_OSR128_WIDTH                      1  /* ADC_OSR128 */
514 #define WM8993_ADC_HPF                          0x0100  /* ADC_HPF */
515 #define WM8993_ADC_HPF_MASK                     0x0100  /* ADC_HPF */
516 #define WM8993_ADC_HPF_SHIFT                         8  /* ADC_HPF */
517 #define WM8993_ADC_HPF_WIDTH                         1  /* ADC_HPF */
518 #define WM8993_ADC_HPF_CUT_MASK                 0x0060  /* ADC_HPF_CUT - [6:5] */
519 #define WM8993_ADC_HPF_CUT_SHIFT                     5  /* ADC_HPF_CUT - [6:5] */
520 #define WM8993_ADC_HPF_CUT_WIDTH                     2  /* ADC_HPF_CUT - [6:5] */
521 #define WM8993_ADCL_DATINV                      0x0002  /* ADCL_DATINV */
522 #define WM8993_ADCL_DATINV_MASK                 0x0002  /* ADCL_DATINV */
523 #define WM8993_ADCL_DATINV_SHIFT                     1  /* ADCL_DATINV */
524 #define WM8993_ADCL_DATINV_WIDTH                     1  /* ADCL_DATINV */
525 #define WM8993_ADCR_DATINV                      0x0001  /* ADCR_DATINV */
526 #define WM8993_ADCR_DATINV_MASK                 0x0001  /* ADCR_DATINV */
527 #define WM8993_ADCR_DATINV_SHIFT                     0  /* ADCR_DATINV */
528 #define WM8993_ADCR_DATINV_WIDTH                     1  /* ADCR_DATINV */
529 
530 /*
531  * R15 (0x0F) - Left ADC Digital Volume
532  */
533 #define WM8993_ADC_VU                           0x0100  /* ADC_VU */
534 #define WM8993_ADC_VU_MASK                      0x0100  /* ADC_VU */
535 #define WM8993_ADC_VU_SHIFT                          8  /* ADC_VU */
536 #define WM8993_ADC_VU_WIDTH                          1  /* ADC_VU */
537 #define WM8993_ADCL_VOL_MASK                    0x00FF  /* ADCL_VOL - [7:0] */
538 #define WM8993_ADCL_VOL_SHIFT                        0  /* ADCL_VOL - [7:0] */
539 #define WM8993_ADCL_VOL_WIDTH                        8  /* ADCL_VOL - [7:0] */
540 
541 /*
542  * R16 (0x10) - Right ADC Digital Volume
543  */
544 #define WM8993_ADC_VU                           0x0100  /* ADC_VU */
545 #define WM8993_ADC_VU_MASK                      0x0100  /* ADC_VU */
546 #define WM8993_ADC_VU_SHIFT                          8  /* ADC_VU */
547 #define WM8993_ADC_VU_WIDTH                          1  /* ADC_VU */
548 #define WM8993_ADCR_VOL_MASK                    0x00FF  /* ADCR_VOL - [7:0] */
549 #define WM8993_ADCR_VOL_SHIFT                        0  /* ADCR_VOL - [7:0] */
550 #define WM8993_ADCR_VOL_WIDTH                        8  /* ADCR_VOL - [7:0] */
551 
552 /*
553  * R18 (0x12) - GPIO CTRL 1
554  */
555 #define WM8993_JD2_SC_EINT                      0x8000  /* JD2_SC_EINT */
556 #define WM8993_JD2_SC_EINT_MASK                 0x8000  /* JD2_SC_EINT */
557 #define WM8993_JD2_SC_EINT_SHIFT                    15  /* JD2_SC_EINT */
558 #define WM8993_JD2_SC_EINT_WIDTH                     1  /* JD2_SC_EINT */
559 #define WM8993_JD2_EINT                         0x4000  /* JD2_EINT */
560 #define WM8993_JD2_EINT_MASK                    0x4000  /* JD2_EINT */
561 #define WM8993_JD2_EINT_SHIFT                       14  /* JD2_EINT */
562 #define WM8993_JD2_EINT_WIDTH                        1  /* JD2_EINT */
563 #define WM8993_WSEQ_EINT                        0x2000  /* WSEQ_EINT */
564 #define WM8993_WSEQ_EINT_MASK                   0x2000  /* WSEQ_EINT */
565 #define WM8993_WSEQ_EINT_SHIFT                      13  /* WSEQ_EINT */
566 #define WM8993_WSEQ_EINT_WIDTH                       1  /* WSEQ_EINT */
567 #define WM8993_IRQ                              0x1000  /* IRQ */
568 #define WM8993_IRQ_MASK                         0x1000  /* IRQ */
569 #define WM8993_IRQ_SHIFT                            12  /* IRQ */
570 #define WM8993_IRQ_WIDTH                             1  /* IRQ */
571 #define WM8993_TEMPOK_EINT                      0x0800  /* TEMPOK_EINT */
572 #define WM8993_TEMPOK_EINT_MASK                 0x0800  /* TEMPOK_EINT */
573 #define WM8993_TEMPOK_EINT_SHIFT                    11  /* TEMPOK_EINT */
574 #define WM8993_TEMPOK_EINT_WIDTH                     1  /* TEMPOK_EINT */
575 #define WM8993_JD1_SC_EINT                      0x0400  /* JD1_SC_EINT */
576 #define WM8993_JD1_SC_EINT_MASK                 0x0400  /* JD1_SC_EINT */
577 #define WM8993_JD1_SC_EINT_SHIFT                    10  /* JD1_SC_EINT */
578 #define WM8993_JD1_SC_EINT_WIDTH                     1  /* JD1_SC_EINT */
579 #define WM8993_JD1_EINT                         0x0200  /* JD1_EINT */
580 #define WM8993_JD1_EINT_MASK                    0x0200  /* JD1_EINT */
581 #define WM8993_JD1_EINT_SHIFT                        9  /* JD1_EINT */
582 #define WM8993_JD1_EINT_WIDTH                        1  /* JD1_EINT */
583 #define WM8993_FLL_LOCK_EINT                    0x0100  /* FLL_LOCK_EINT */
584 #define WM8993_FLL_LOCK_EINT_MASK               0x0100  /* FLL_LOCK_EINT */
585 #define WM8993_FLL_LOCK_EINT_SHIFT                   8  /* FLL_LOCK_EINT */
586 #define WM8993_FLL_LOCK_EINT_WIDTH                   1  /* FLL_LOCK_EINT */
587 #define WM8993_GPI8_EINT                        0x0080  /* GPI8_EINT */
588 #define WM8993_GPI8_EINT_MASK                   0x0080  /* GPI8_EINT */
589 #define WM8993_GPI8_EINT_SHIFT                       7  /* GPI8_EINT */
590 #define WM8993_GPI8_EINT_WIDTH                       1  /* GPI8_EINT */
591 #define WM8993_GPI7_EINT                        0x0040  /* GPI7_EINT */
592 #define WM8993_GPI7_EINT_MASK                   0x0040  /* GPI7_EINT */
593 #define WM8993_GPI7_EINT_SHIFT                       6  /* GPI7_EINT */
594 #define WM8993_GPI7_EINT_WIDTH                       1  /* GPI7_EINT */
595 #define WM8993_GPIO1_EINT                       0x0001  /* GPIO1_EINT */
596 #define WM8993_GPIO1_EINT_MASK                  0x0001  /* GPIO1_EINT */
597 #define WM8993_GPIO1_EINT_SHIFT                      0  /* GPIO1_EINT */
598 #define WM8993_GPIO1_EINT_WIDTH                      1  /* GPIO1_EINT */
599 
600 /*
601  * R19 (0x13) - GPIO1
602  */
603 #define WM8993_GPIO1_PU                         0x0020  /* GPIO1_PU */
604 #define WM8993_GPIO1_PU_MASK                    0x0020  /* GPIO1_PU */
605 #define WM8993_GPIO1_PU_SHIFT                        5  /* GPIO1_PU */
606 #define WM8993_GPIO1_PU_WIDTH                        1  /* GPIO1_PU */
607 #define WM8993_GPIO1_PD                         0x0010  /* GPIO1_PD */
608 #define WM8993_GPIO1_PD_MASK                    0x0010  /* GPIO1_PD */
609 #define WM8993_GPIO1_PD_SHIFT                        4  /* GPIO1_PD */
610 #define WM8993_GPIO1_PD_WIDTH                        1  /* GPIO1_PD */
611 #define WM8993_GPIO1_SEL_MASK                   0x000F  /* GPIO1_SEL - [3:0] */
612 #define WM8993_GPIO1_SEL_SHIFT                       0  /* GPIO1_SEL - [3:0] */
613 #define WM8993_GPIO1_SEL_WIDTH                       4  /* GPIO1_SEL - [3:0] */
614 
615 /*
616  * R20 (0x14) - IRQ_DEBOUNCE
617  */
618 #define WM8993_JD2_SC_DB                        0x8000  /* JD2_SC_DB */
619 #define WM8993_JD2_SC_DB_MASK                   0x8000  /* JD2_SC_DB */
620 #define WM8993_JD2_SC_DB_SHIFT                      15  /* JD2_SC_DB */
621 #define WM8993_JD2_SC_DB_WIDTH                       1  /* JD2_SC_DB */
622 #define WM8993_JD2_DB                           0x4000  /* JD2_DB */
623 #define WM8993_JD2_DB_MASK                      0x4000  /* JD2_DB */
624 #define WM8993_JD2_DB_SHIFT                         14  /* JD2_DB */
625 #define WM8993_JD2_DB_WIDTH                          1  /* JD2_DB */
626 #define WM8993_WSEQ_DB                          0x2000  /* WSEQ_DB */
627 #define WM8993_WSEQ_DB_MASK                     0x2000  /* WSEQ_DB */
628 #define WM8993_WSEQ_DB_SHIFT                        13  /* WSEQ_DB */
629 #define WM8993_WSEQ_DB_WIDTH                         1  /* WSEQ_DB */
630 #define WM8993_TEMPOK_DB                        0x0800  /* TEMPOK_DB */
631 #define WM8993_TEMPOK_DB_MASK                   0x0800  /* TEMPOK_DB */
632 #define WM8993_TEMPOK_DB_SHIFT                      11  /* TEMPOK_DB */
633 #define WM8993_TEMPOK_DB_WIDTH                       1  /* TEMPOK_DB */
634 #define WM8993_JD1_SC_DB                        0x0400  /* JD1_SC_DB */
635 #define WM8993_JD1_SC_DB_MASK                   0x0400  /* JD1_SC_DB */
636 #define WM8993_JD1_SC_DB_SHIFT                      10  /* JD1_SC_DB */
637 #define WM8993_JD1_SC_DB_WIDTH                       1  /* JD1_SC_DB */
638 #define WM8993_JD1_DB                           0x0200  /* JD1_DB */
639 #define WM8993_JD1_DB_MASK                      0x0200  /* JD1_DB */
640 #define WM8993_JD1_DB_SHIFT                          9  /* JD1_DB */
641 #define WM8993_JD1_DB_WIDTH                          1  /* JD1_DB */
642 #define WM8993_FLL_LOCK_DB                      0x0100  /* FLL_LOCK_DB */
643 #define WM8993_FLL_LOCK_DB_MASK                 0x0100  /* FLL_LOCK_DB */
644 #define WM8993_FLL_LOCK_DB_SHIFT                     8  /* FLL_LOCK_DB */
645 #define WM8993_FLL_LOCK_DB_WIDTH                     1  /* FLL_LOCK_DB */
646 #define WM8993_GPI8_DB                          0x0080  /* GPI8_DB */
647 #define WM8993_GPI8_DB_MASK                     0x0080  /* GPI8_DB */
648 #define WM8993_GPI8_DB_SHIFT                         7  /* GPI8_DB */
649 #define WM8993_GPI8_DB_WIDTH                         1  /* GPI8_DB */
650 #define WM8993_GPI7_DB                          0x0008  /* GPI7_DB */
651 #define WM8993_GPI7_DB_MASK                     0x0008  /* GPI7_DB */
652 #define WM8993_GPI7_DB_SHIFT                         3  /* GPI7_DB */
653 #define WM8993_GPI7_DB_WIDTH                         1  /* GPI7_DB */
654 #define WM8993_GPIO1_DB                         0x0001  /* GPIO1_DB */
655 #define WM8993_GPIO1_DB_MASK                    0x0001  /* GPIO1_DB */
656 #define WM8993_GPIO1_DB_SHIFT                        0  /* GPIO1_DB */
657 #define WM8993_GPIO1_DB_WIDTH                        1  /* GPIO1_DB */
658 
659 /*
660  * R21 (0x15) - Inputs Clamp
661  */
662 #define WM8993_INPUTS_CLAMP                     0x0040  /* INPUTS_CLAMP */
663 #define WM8993_INPUTS_CLAMP_MASK                0x0040  /* INPUTS_CLAMP */
664 #define WM8993_INPUTS_CLAMP_SHIFT                    7  /* INPUTS_CLAMP */
665 #define WM8993_INPUTS_CLAMP_WIDTH                    1  /* INPUTS_CLAMP */
666 
667 /*
668  * R22 (0x16) - GPIOCTRL 2
669  */
670 #define WM8993_IM_JD2_EINT                      0x2000  /* IM_JD2_EINT */
671 #define WM8993_IM_JD2_EINT_MASK                 0x2000  /* IM_JD2_EINT */
672 #define WM8993_IM_JD2_EINT_SHIFT                    13  /* IM_JD2_EINT */
673 #define WM8993_IM_JD2_EINT_WIDTH                     1  /* IM_JD2_EINT */
674 #define WM8993_IM_JD2_SC_EINT                   0x1000  /* IM_JD2_SC_EINT */
675 #define WM8993_IM_JD2_SC_EINT_MASK              0x1000  /* IM_JD2_SC_EINT */
676 #define WM8993_IM_JD2_SC_EINT_SHIFT                 12  /* IM_JD2_SC_EINT */
677 #define WM8993_IM_JD2_SC_EINT_WIDTH                  1  /* IM_JD2_SC_EINT */
678 #define WM8993_IM_TEMPOK_EINT                   0x0800  /* IM_TEMPOK_EINT */
679 #define WM8993_IM_TEMPOK_EINT_MASK              0x0800  /* IM_TEMPOK_EINT */
680 #define WM8993_IM_TEMPOK_EINT_SHIFT                 11  /* IM_TEMPOK_EINT */
681 #define WM8993_IM_TEMPOK_EINT_WIDTH                  1  /* IM_TEMPOK_EINT */
682 #define WM8993_IM_JD1_SC_EINT                   0x0400  /* IM_JD1_SC_EINT */
683 #define WM8993_IM_JD1_SC_EINT_MASK              0x0400  /* IM_JD1_SC_EINT */
684 #define WM8993_IM_JD1_SC_EINT_SHIFT                 10  /* IM_JD1_SC_EINT */
685 #define WM8993_IM_JD1_SC_EINT_WIDTH                  1  /* IM_JD1_SC_EINT */
686 #define WM8993_IM_JD1_EINT                      0x0200  /* IM_JD1_EINT */
687 #define WM8993_IM_JD1_EINT_MASK                 0x0200  /* IM_JD1_EINT */
688 #define WM8993_IM_JD1_EINT_SHIFT                     9  /* IM_JD1_EINT */
689 #define WM8993_IM_JD1_EINT_WIDTH                     1  /* IM_JD1_EINT */
690 #define WM8993_IM_FLL_LOCK_EINT                 0x0100  /* IM_FLL_LOCK_EINT */
691 #define WM8993_IM_FLL_LOCK_EINT_MASK            0x0100  /* IM_FLL_LOCK_EINT */
692 #define WM8993_IM_FLL_LOCK_EINT_SHIFT                8  /* IM_FLL_LOCK_EINT */
693 #define WM8993_IM_FLL_LOCK_EINT_WIDTH                1  /* IM_FLL_LOCK_EINT */
694 #define WM8993_IM_GPI8_EINT                     0x0040  /* IM_GPI8_EINT */
695 #define WM8993_IM_GPI8_EINT_MASK                0x0040  /* IM_GPI8_EINT */
696 #define WM8993_IM_GPI8_EINT_SHIFT                    6  /* IM_GPI8_EINT */
697 #define WM8993_IM_GPI8_EINT_WIDTH                    1  /* IM_GPI8_EINT */
698 #define WM8993_IM_GPIO1_EINT                    0x0020  /* IM_GPIO1_EINT */
699 #define WM8993_IM_GPIO1_EINT_MASK               0x0020  /* IM_GPIO1_EINT */
700 #define WM8993_IM_GPIO1_EINT_SHIFT                   5  /* IM_GPIO1_EINT */
701 #define WM8993_IM_GPIO1_EINT_WIDTH                   1  /* IM_GPIO1_EINT */
702 #define WM8993_GPI8_ENA                         0x0010  /* GPI8_ENA */
703 #define WM8993_GPI8_ENA_MASK                    0x0010  /* GPI8_ENA */
704 #define WM8993_GPI8_ENA_SHIFT                        4  /* GPI8_ENA */
705 #define WM8993_GPI8_ENA_WIDTH                        1  /* GPI8_ENA */
706 #define WM8993_IM_GPI7_EINT                     0x0004  /* IM_GPI7_EINT */
707 #define WM8993_IM_GPI7_EINT_MASK                0x0004  /* IM_GPI7_EINT */
708 #define WM8993_IM_GPI7_EINT_SHIFT                    2  /* IM_GPI7_EINT */
709 #define WM8993_IM_GPI7_EINT_WIDTH                    1  /* IM_GPI7_EINT */
710 #define WM8993_IM_WSEQ_EINT                     0x0002  /* IM_WSEQ_EINT */
711 #define WM8993_IM_WSEQ_EINT_MASK                0x0002  /* IM_WSEQ_EINT */
712 #define WM8993_IM_WSEQ_EINT_SHIFT                    1  /* IM_WSEQ_EINT */
713 #define WM8993_IM_WSEQ_EINT_WIDTH                    1  /* IM_WSEQ_EINT */
714 #define WM8993_GPI7_ENA                         0x0001  /* GPI7_ENA */
715 #define WM8993_GPI7_ENA_MASK                    0x0001  /* GPI7_ENA */
716 #define WM8993_GPI7_ENA_SHIFT                        0  /* GPI7_ENA */
717 #define WM8993_GPI7_ENA_WIDTH                        1  /* GPI7_ENA */
718 
719 /*
720  * R23 (0x17) - GPIO_POL
721  */
722 #define WM8993_JD2_SC_POL                       0x8000  /* JD2_SC_POL */
723 #define WM8993_JD2_SC_POL_MASK                  0x8000  /* JD2_SC_POL */
724 #define WM8993_JD2_SC_POL_SHIFT                     15  /* JD2_SC_POL */
725 #define WM8993_JD2_SC_POL_WIDTH                      1  /* JD2_SC_POL */
726 #define WM8993_JD2_POL                          0x4000  /* JD2_POL */
727 #define WM8993_JD2_POL_MASK                     0x4000  /* JD2_POL */
728 #define WM8993_JD2_POL_SHIFT                        14  /* JD2_POL */
729 #define WM8993_JD2_POL_WIDTH                         1  /* JD2_POL */
730 #define WM8993_WSEQ_POL                         0x2000  /* WSEQ_POL */
731 #define WM8993_WSEQ_POL_MASK                    0x2000  /* WSEQ_POL */
732 #define WM8993_WSEQ_POL_SHIFT                       13  /* WSEQ_POL */
733 #define WM8993_WSEQ_POL_WIDTH                        1  /* WSEQ_POL */
734 #define WM8993_IRQ_POL                          0x1000  /* IRQ_POL */
735 #define WM8993_IRQ_POL_MASK                     0x1000  /* IRQ_POL */
736 #define WM8993_IRQ_POL_SHIFT                        12  /* IRQ_POL */
737 #define WM8993_IRQ_POL_WIDTH                         1  /* IRQ_POL */
738 #define WM8993_TEMPOK_POL                       0x0800  /* TEMPOK_POL */
739 #define WM8993_TEMPOK_POL_MASK                  0x0800  /* TEMPOK_POL */
740 #define WM8993_TEMPOK_POL_SHIFT                     11  /* TEMPOK_POL */
741 #define WM8993_TEMPOK_POL_WIDTH                      1  /* TEMPOK_POL */
742 #define WM8993_JD1_SC_POL                       0x0400  /* JD1_SC_POL */
743 #define WM8993_JD1_SC_POL_MASK                  0x0400  /* JD1_SC_POL */
744 #define WM8993_JD1_SC_POL_SHIFT                     10  /* JD1_SC_POL */
745 #define WM8993_JD1_SC_POL_WIDTH                      1  /* JD1_SC_POL */
746 #define WM8993_JD1_POL                          0x0200  /* JD1_POL */
747 #define WM8993_JD1_POL_MASK                     0x0200  /* JD1_POL */
748 #define WM8993_JD1_POL_SHIFT                         9  /* JD1_POL */
749 #define WM8993_JD1_POL_WIDTH                         1  /* JD1_POL */
750 #define WM8993_FLL_LOCK_POL                     0x0100  /* FLL_LOCK_POL */
751 #define WM8993_FLL_LOCK_POL_MASK                0x0100  /* FLL_LOCK_POL */
752 #define WM8993_FLL_LOCK_POL_SHIFT                    8  /* FLL_LOCK_POL */
753 #define WM8993_FLL_LOCK_POL_WIDTH                    1  /* FLL_LOCK_POL */
754 #define WM8993_GPI8_POL                         0x0080  /* GPI8_POL */
755 #define WM8993_GPI8_POL_MASK                    0x0080  /* GPI8_POL */
756 #define WM8993_GPI8_POL_SHIFT                        7  /* GPI8_POL */
757 #define WM8993_GPI8_POL_WIDTH                        1  /* GPI8_POL */
758 #define WM8993_GPI7_POL                         0x0040  /* GPI7_POL */
759 #define WM8993_GPI7_POL_MASK                    0x0040  /* GPI7_POL */
760 #define WM8993_GPI7_POL_SHIFT                        6  /* GPI7_POL */
761 #define WM8993_GPI7_POL_WIDTH                        1  /* GPI7_POL */
762 #define WM8993_GPIO1_POL                        0x0001  /* GPIO1_POL */
763 #define WM8993_GPIO1_POL_MASK                   0x0001  /* GPIO1_POL */
764 #define WM8993_GPIO1_POL_SHIFT                       0  /* GPIO1_POL */
765 #define WM8993_GPIO1_POL_WIDTH                       1  /* GPIO1_POL */
766 
767 /*
768  * R24 (0x18) - Left Line Input 1&2 Volume
769  */
770 #define WM8993_IN1_VU                           0x0100  /* IN1_VU */
771 #define WM8993_IN1_VU_MASK                      0x0100  /* IN1_VU */
772 #define WM8993_IN1_VU_SHIFT                          8  /* IN1_VU */
773 #define WM8993_IN1_VU_WIDTH                          1  /* IN1_VU */
774 #define WM8993_IN1L_MUTE                        0x0080  /* IN1L_MUTE */
775 #define WM8993_IN1L_MUTE_MASK                   0x0080  /* IN1L_MUTE */
776 #define WM8993_IN1L_MUTE_SHIFT                       7  /* IN1L_MUTE */
777 #define WM8993_IN1L_MUTE_WIDTH                       1  /* IN1L_MUTE */
778 #define WM8993_IN1L_ZC                          0x0040  /* IN1L_ZC */
779 #define WM8993_IN1L_ZC_MASK                     0x0040  /* IN1L_ZC */
780 #define WM8993_IN1L_ZC_SHIFT                         6  /* IN1L_ZC */
781 #define WM8993_IN1L_ZC_WIDTH                         1  /* IN1L_ZC */
782 #define WM8993_IN1L_VOL_MASK                    0x001F  /* IN1L_VOL - [4:0] */
783 #define WM8993_IN1L_VOL_SHIFT                        0  /* IN1L_VOL - [4:0] */
784 #define WM8993_IN1L_VOL_WIDTH                        5  /* IN1L_VOL - [4:0] */
785 
786 /*
787  * R25 (0x19) - Left Line Input 3&4 Volume
788  */
789 #define WM8993_IN2_VU                           0x0100  /* IN2_VU */
790 #define WM8993_IN2_VU_MASK                      0x0100  /* IN2_VU */
791 #define WM8993_IN2_VU_SHIFT                          8  /* IN2_VU */
792 #define WM8993_IN2_VU_WIDTH                          1  /* IN2_VU */
793 #define WM8993_IN2L_MUTE                        0x0080  /* IN2L_MUTE */
794 #define WM8993_IN2L_MUTE_MASK                   0x0080  /* IN2L_MUTE */
795 #define WM8993_IN2L_MUTE_SHIFT                       7  /* IN2L_MUTE */
796 #define WM8993_IN2L_MUTE_WIDTH                       1  /* IN2L_MUTE */
797 #define WM8993_IN2L_ZC                          0x0040  /* IN2L_ZC */
798 #define WM8993_IN2L_ZC_MASK                     0x0040  /* IN2L_ZC */
799 #define WM8993_IN2L_ZC_SHIFT                         6  /* IN2L_ZC */
800 #define WM8993_IN2L_ZC_WIDTH                         1  /* IN2L_ZC */
801 #define WM8993_IN2L_VOL_MASK                    0x001F  /* IN2L_VOL - [4:0] */
802 #define WM8993_IN2L_VOL_SHIFT                        0  /* IN2L_VOL - [4:0] */
803 #define WM8993_IN2L_VOL_WIDTH                        5  /* IN2L_VOL - [4:0] */
804 
805 /*
806  * R26 (0x1A) - Right Line Input 1&2 Volume
807  */
808 #define WM8993_IN1_VU                           0x0100  /* IN1_VU */
809 #define WM8993_IN1_VU_MASK                      0x0100  /* IN1_VU */
810 #define WM8993_IN1_VU_SHIFT                          8  /* IN1_VU */
811 #define WM8993_IN1_VU_WIDTH                          1  /* IN1_VU */
812 #define WM8993_IN1R_MUTE                        0x0080  /* IN1R_MUTE */
813 #define WM8993_IN1R_MUTE_MASK                   0x0080  /* IN1R_MUTE */
814 #define WM8993_IN1R_MUTE_SHIFT                       7  /* IN1R_MUTE */
815 #define WM8993_IN1R_MUTE_WIDTH                       1  /* IN1R_MUTE */
816 #define WM8993_IN1R_ZC                          0x0040  /* IN1R_ZC */
817 #define WM8993_IN1R_ZC_MASK                     0x0040  /* IN1R_ZC */
818 #define WM8993_IN1R_ZC_SHIFT                         6  /* IN1R_ZC */
819 #define WM8993_IN1R_ZC_WIDTH                         1  /* IN1R_ZC */
820 #define WM8993_IN1R_VOL_MASK                    0x001F  /* IN1R_VOL - [4:0] */
821 #define WM8993_IN1R_VOL_SHIFT                        0  /* IN1R_VOL - [4:0] */
822 #define WM8993_IN1R_VOL_WIDTH                        5  /* IN1R_VOL - [4:0] */
823 
824 /*
825  * R27 (0x1B) - Right Line Input 3&4 Volume
826  */
827 #define WM8993_IN2_VU                           0x0100  /* IN2_VU */
828 #define WM8993_IN2_VU_MASK                      0x0100  /* IN2_VU */
829 #define WM8993_IN2_VU_SHIFT                          8  /* IN2_VU */
830 #define WM8993_IN2_VU_WIDTH                          1  /* IN2_VU */
831 #define WM8993_IN2R_MUTE                        0x0080  /* IN2R_MUTE */
832 #define WM8993_IN2R_MUTE_MASK                   0x0080  /* IN2R_MUTE */
833 #define WM8993_IN2R_MUTE_SHIFT                       7  /* IN2R_MUTE */
834 #define WM8993_IN2R_MUTE_WIDTH                       1  /* IN2R_MUTE */
835 #define WM8993_IN2R_ZC                          0x0040  /* IN2R_ZC */
836 #define WM8993_IN2R_ZC_MASK                     0x0040  /* IN2R_ZC */
837 #define WM8993_IN2R_ZC_SHIFT                         6  /* IN2R_ZC */
838 #define WM8993_IN2R_ZC_WIDTH                         1  /* IN2R_ZC */
839 #define WM8993_IN2R_VOL_MASK                    0x001F  /* IN2R_VOL - [4:0] */
840 #define WM8993_IN2R_VOL_SHIFT                        0  /* IN2R_VOL - [4:0] */
841 #define WM8993_IN2R_VOL_WIDTH                        5  /* IN2R_VOL - [4:0] */
842 
843 /*
844  * R28 (0x1C) - Left Output Volume
845  */
846 #define WM8993_HPOUT1_VU                        0x0100  /* HPOUT1_VU */
847 #define WM8993_HPOUT1_VU_MASK                   0x0100  /* HPOUT1_VU */
848 #define WM8993_HPOUT1_VU_SHIFT                       8  /* HPOUT1_VU */
849 #define WM8993_HPOUT1_VU_WIDTH                       1  /* HPOUT1_VU */
850 #define WM8993_HPOUT1L_ZC                       0x0080  /* HPOUT1L_ZC */
851 #define WM8993_HPOUT1L_ZC_MASK                  0x0080  /* HPOUT1L_ZC */
852 #define WM8993_HPOUT1L_ZC_SHIFT                      7  /* HPOUT1L_ZC */
853 #define WM8993_HPOUT1L_ZC_WIDTH                      1  /* HPOUT1L_ZC */
854 #define WM8993_HPOUT1L_MUTE_N                   0x0040  /* HPOUT1L_MUTE_N */
855 #define WM8993_HPOUT1L_MUTE_N_MASK              0x0040  /* HPOUT1L_MUTE_N */
856 #define WM8993_HPOUT1L_MUTE_N_SHIFT                  6  /* HPOUT1L_MUTE_N */
857 #define WM8993_HPOUT1L_MUTE_N_WIDTH                  1  /* HPOUT1L_MUTE_N */
858 #define WM8993_HPOUT1L_VOL_MASK                 0x003F  /* HPOUT1L_VOL - [5:0] */
859 #define WM8993_HPOUT1L_VOL_SHIFT                     0  /* HPOUT1L_VOL - [5:0] */
860 #define WM8993_HPOUT1L_VOL_WIDTH                     6  /* HPOUT1L_VOL - [5:0] */
861 
862 /*
863  * R29 (0x1D) - Right Output Volume
864  */
865 #define WM8993_HPOUT1_VU                        0x0100  /* HPOUT1_VU */
866 #define WM8993_HPOUT1_VU_MASK                   0x0100  /* HPOUT1_VU */
867 #define WM8993_HPOUT1_VU_SHIFT                       8  /* HPOUT1_VU */
868 #define WM8993_HPOUT1_VU_WIDTH                       1  /* HPOUT1_VU */
869 #define WM8993_HPOUT1R_ZC                       0x0080  /* HPOUT1R_ZC */
870 #define WM8993_HPOUT1R_ZC_MASK                  0x0080  /* HPOUT1R_ZC */
871 #define WM8993_HPOUT1R_ZC_SHIFT                      7  /* HPOUT1R_ZC */
872 #define WM8993_HPOUT1R_ZC_WIDTH                      1  /* HPOUT1R_ZC */
873 #define WM8993_HPOUT1R_MUTE_N                   0x0040  /* HPOUT1R_MUTE_N */
874 #define WM8993_HPOUT1R_MUTE_N_MASK              0x0040  /* HPOUT1R_MUTE_N */
875 #define WM8993_HPOUT1R_MUTE_N_SHIFT                  6  /* HPOUT1R_MUTE_N */
876 #define WM8993_HPOUT1R_MUTE_N_WIDTH                  1  /* HPOUT1R_MUTE_N */
877 #define WM8993_HPOUT1R_VOL_MASK                 0x003F  /* HPOUT1R_VOL - [5:0] */
878 #define WM8993_HPOUT1R_VOL_SHIFT                     0  /* HPOUT1R_VOL - [5:0] */
879 #define WM8993_HPOUT1R_VOL_WIDTH                     6  /* HPOUT1R_VOL - [5:0] */
880 
881 /*
882  * R30 (0x1E) - Line Outputs Volume
883  */
884 #define WM8993_LINEOUT1N_MUTE                   0x0040  /* LINEOUT1N_MUTE */
885 #define WM8993_LINEOUT1N_MUTE_MASK              0x0040  /* LINEOUT1N_MUTE */
886 #define WM8993_LINEOUT1N_MUTE_SHIFT                  6  /* LINEOUT1N_MUTE */
887 #define WM8993_LINEOUT1N_MUTE_WIDTH                  1  /* LINEOUT1N_MUTE */
888 #define WM8993_LINEOUT1P_MUTE                   0x0020  /* LINEOUT1P_MUTE */
889 #define WM8993_LINEOUT1P_MUTE_MASK              0x0020  /* LINEOUT1P_MUTE */
890 #define WM8993_LINEOUT1P_MUTE_SHIFT                  5  /* LINEOUT1P_MUTE */
891 #define WM8993_LINEOUT1P_MUTE_WIDTH                  1  /* LINEOUT1P_MUTE */
892 #define WM8993_LINEOUT1_VOL                     0x0010  /* LINEOUT1_VOL */
893 #define WM8993_LINEOUT1_VOL_MASK                0x0010  /* LINEOUT1_VOL */
894 #define WM8993_LINEOUT1_VOL_SHIFT                    4  /* LINEOUT1_VOL */
895 #define WM8993_LINEOUT1_VOL_WIDTH                    1  /* LINEOUT1_VOL */
896 #define WM8993_LINEOUT2N_MUTE                   0x0004  /* LINEOUT2N_MUTE */
897 #define WM8993_LINEOUT2N_MUTE_MASK              0x0004  /* LINEOUT2N_MUTE */
898 #define WM8993_LINEOUT2N_MUTE_SHIFT                  2  /* LINEOUT2N_MUTE */
899 #define WM8993_LINEOUT2N_MUTE_WIDTH                  1  /* LINEOUT2N_MUTE */
900 #define WM8993_LINEOUT2P_MUTE                   0x0002  /* LINEOUT2P_MUTE */
901 #define WM8993_LINEOUT2P_MUTE_MASK              0x0002  /* LINEOUT2P_MUTE */
902 #define WM8993_LINEOUT2P_MUTE_SHIFT                  1  /* LINEOUT2P_MUTE */
903 #define WM8993_LINEOUT2P_MUTE_WIDTH                  1  /* LINEOUT2P_MUTE */
904 #define WM8993_LINEOUT2_VOL                     0x0001  /* LINEOUT2_VOL */
905 #define WM8993_LINEOUT2_VOL_MASK                0x0001  /* LINEOUT2_VOL */
906 #define WM8993_LINEOUT2_VOL_SHIFT                    0  /* LINEOUT2_VOL */
907 #define WM8993_LINEOUT2_VOL_WIDTH                    1  /* LINEOUT2_VOL */
908 
909 /*
910  * R31 (0x1F) - HPOUT2 Volume
911  */
912 #define WM8993_HPOUT2_MUTE                      0x0020  /* HPOUT2_MUTE */
913 #define WM8993_HPOUT2_MUTE_MASK                 0x0020  /* HPOUT2_MUTE */
914 #define WM8993_HPOUT2_MUTE_SHIFT                     5  /* HPOUT2_MUTE */
915 #define WM8993_HPOUT2_MUTE_WIDTH                     1  /* HPOUT2_MUTE */
916 #define WM8993_HPOUT2_VOL                       0x0010  /* HPOUT2_VOL */
917 #define WM8993_HPOUT2_VOL_MASK                  0x0010  /* HPOUT2_VOL */
918 #define WM8993_HPOUT2_VOL_SHIFT                      4  /* HPOUT2_VOL */
919 #define WM8993_HPOUT2_VOL_WIDTH                      1  /* HPOUT2_VOL */
920 
921 /*
922  * R32 (0x20) - Left OPGA Volume
923  */
924 #define WM8993_MIXOUT_VU                        0x0100  /* MIXOUT_VU */
925 #define WM8993_MIXOUT_VU_MASK                   0x0100  /* MIXOUT_VU */
926 #define WM8993_MIXOUT_VU_SHIFT                       8  /* MIXOUT_VU */
927 #define WM8993_MIXOUT_VU_WIDTH                       1  /* MIXOUT_VU */
928 #define WM8993_MIXOUTL_ZC                       0x0080  /* MIXOUTL_ZC */
929 #define WM8993_MIXOUTL_ZC_MASK                  0x0080  /* MIXOUTL_ZC */
930 #define WM8993_MIXOUTL_ZC_SHIFT                      7  /* MIXOUTL_ZC */
931 #define WM8993_MIXOUTL_ZC_WIDTH                      1  /* MIXOUTL_ZC */
932 #define WM8993_MIXOUTL_MUTE_N                   0x0040  /* MIXOUTL_MUTE_N */
933 #define WM8993_MIXOUTL_MUTE_N_MASK              0x0040  /* MIXOUTL_MUTE_N */
934 #define WM8993_MIXOUTL_MUTE_N_SHIFT                  6  /* MIXOUTL_MUTE_N */
935 #define WM8993_MIXOUTL_MUTE_N_WIDTH                  1  /* MIXOUTL_MUTE_N */
936 #define WM8993_MIXOUTL_VOL_MASK                 0x003F  /* MIXOUTL_VOL - [5:0] */
937 #define WM8993_MIXOUTL_VOL_SHIFT                     0  /* MIXOUTL_VOL - [5:0] */
938 #define WM8993_MIXOUTL_VOL_WIDTH                     6  /* MIXOUTL_VOL - [5:0] */
939 
940 /*
941  * R33 (0x21) - Right OPGA Volume
942  */
943 #define WM8993_MIXOUT_VU                        0x0100  /* MIXOUT_VU */
944 #define WM8993_MIXOUT_VU_MASK                   0x0100  /* MIXOUT_VU */
945 #define WM8993_MIXOUT_VU_SHIFT                       8  /* MIXOUT_VU */
946 #define WM8993_MIXOUT_VU_WIDTH                       1  /* MIXOUT_VU */
947 #define WM8993_MIXOUTR_ZC                       0x0080  /* MIXOUTR_ZC */
948 #define WM8993_MIXOUTR_ZC_MASK                  0x0080  /* MIXOUTR_ZC */
949 #define WM8993_MIXOUTR_ZC_SHIFT                      7  /* MIXOUTR_ZC */
950 #define WM8993_MIXOUTR_ZC_WIDTH                      1  /* MIXOUTR_ZC */
951 #define WM8993_MIXOUTR_MUTE_N                   0x0040  /* MIXOUTR_MUTE_N */
952 #define WM8993_MIXOUTR_MUTE_N_MASK              0x0040  /* MIXOUTR_MUTE_N */
953 #define WM8993_MIXOUTR_MUTE_N_SHIFT                  6  /* MIXOUTR_MUTE_N */
954 #define WM8993_MIXOUTR_MUTE_N_WIDTH                  1  /* MIXOUTR_MUTE_N */
955 #define WM8993_MIXOUTR_VOL_MASK                 0x003F  /* MIXOUTR_VOL - [5:0] */
956 #define WM8993_MIXOUTR_VOL_SHIFT                     0  /* MIXOUTR_VOL - [5:0] */
957 #define WM8993_MIXOUTR_VOL_WIDTH                     6  /* MIXOUTR_VOL - [5:0] */
958 
959 /*
960  * R34 (0x22) - SPKMIXL Attenuation
961  */
962 #define WM8993_MIXINL_SPKMIXL_VOL               0x0020  /* MIXINL_SPKMIXL_VOL */
963 #define WM8993_MIXINL_SPKMIXL_VOL_MASK          0x0020  /* MIXINL_SPKMIXL_VOL */
964 #define WM8993_MIXINL_SPKMIXL_VOL_SHIFT              5  /* MIXINL_SPKMIXL_VOL */
965 #define WM8993_MIXINL_SPKMIXL_VOL_WIDTH              1  /* MIXINL_SPKMIXL_VOL */
966 #define WM8993_IN1LP_SPKMIXL_VOL                0x0010  /* IN1LP_SPKMIXL_VOL */
967 #define WM8993_IN1LP_SPKMIXL_VOL_MASK           0x0010  /* IN1LP_SPKMIXL_VOL */
968 #define WM8993_IN1LP_SPKMIXL_VOL_SHIFT               4  /* IN1LP_SPKMIXL_VOL */
969 #define WM8993_IN1LP_SPKMIXL_VOL_WIDTH               1  /* IN1LP_SPKMIXL_VOL */
970 #define WM8993_MIXOUTL_SPKMIXL_VOL              0x0008  /* MIXOUTL_SPKMIXL_VOL */
971 #define WM8993_MIXOUTL_SPKMIXL_VOL_MASK         0x0008  /* MIXOUTL_SPKMIXL_VOL */
972 #define WM8993_MIXOUTL_SPKMIXL_VOL_SHIFT             3  /* MIXOUTL_SPKMIXL_VOL */
973 #define WM8993_MIXOUTL_SPKMIXL_VOL_WIDTH             1  /* MIXOUTL_SPKMIXL_VOL */
974 #define WM8993_DACL_SPKMIXL_VOL                 0x0004  /* DACL_SPKMIXL_VOL */
975 #define WM8993_DACL_SPKMIXL_VOL_MASK            0x0004  /* DACL_SPKMIXL_VOL */
976 #define WM8993_DACL_SPKMIXL_VOL_SHIFT                2  /* DACL_SPKMIXL_VOL */
977 #define WM8993_DACL_SPKMIXL_VOL_WIDTH                1  /* DACL_SPKMIXL_VOL */
978 #define WM8993_SPKMIXL_VOL_MASK                 0x0003  /* SPKMIXL_VOL - [1:0] */
979 #define WM8993_SPKMIXL_VOL_SHIFT                     0  /* SPKMIXL_VOL - [1:0] */
980 #define WM8993_SPKMIXL_VOL_WIDTH                     2  /* SPKMIXL_VOL - [1:0] */
981 
982 /*
983  * R35 (0x23) - SPKMIXR Attenuation
984  */
985 #define WM8993_SPKOUT_CLASSAB_MODE              0x0100  /* SPKOUT_CLASSAB_MODE */
986 #define WM8993_SPKOUT_CLASSAB_MODE_MASK         0x0100  /* SPKOUT_CLASSAB_MODE */
987 #define WM8993_SPKOUT_CLASSAB_MODE_SHIFT             8  /* SPKOUT_CLASSAB_MODE */
988 #define WM8993_SPKOUT_CLASSAB_MODE_WIDTH             1  /* SPKOUT_CLASSAB_MODE */
989 #define WM8993_MIXINR_SPKMIXR_VOL               0x0020  /* MIXINR_SPKMIXR_VOL */
990 #define WM8993_MIXINR_SPKMIXR_VOL_MASK          0x0020  /* MIXINR_SPKMIXR_VOL */
991 #define WM8993_MIXINR_SPKMIXR_VOL_SHIFT              5  /* MIXINR_SPKMIXR_VOL */
992 #define WM8993_MIXINR_SPKMIXR_VOL_WIDTH              1  /* MIXINR_SPKMIXR_VOL */
993 #define WM8993_IN1RP_SPKMIXR_VOL                0x0010  /* IN1RP_SPKMIXR_VOL */
994 #define WM8993_IN1RP_SPKMIXR_VOL_MASK           0x0010  /* IN1RP_SPKMIXR_VOL */
995 #define WM8993_IN1RP_SPKMIXR_VOL_SHIFT               4  /* IN1RP_SPKMIXR_VOL */
996 #define WM8993_IN1RP_SPKMIXR_VOL_WIDTH               1  /* IN1RP_SPKMIXR_VOL */
997 #define WM8993_MIXOUTR_SPKMIXR_VOL              0x0008  /* MIXOUTR_SPKMIXR_VOL */
998 #define WM8993_MIXOUTR_SPKMIXR_VOL_MASK         0x0008  /* MIXOUTR_SPKMIXR_VOL */
999 #define WM8993_MIXOUTR_SPKMIXR_VOL_SHIFT             3  /* MIXOUTR_SPKMIXR_VOL */
1000 #define WM8993_MIXOUTR_SPKMIXR_VOL_WIDTH             1  /* MIXOUTR_SPKMIXR_VOL */
1001 #define WM8993_DACR_SPKMIXR_VOL                 0x0004  /* DACR_SPKMIXR_VOL */
1002 #define WM8993_DACR_SPKMIXR_VOL_MASK            0x0004  /* DACR_SPKMIXR_VOL */
1003 #define WM8993_DACR_SPKMIXR_VOL_SHIFT                2  /* DACR_SPKMIXR_VOL */
1004 #define WM8993_DACR_SPKMIXR_VOL_WIDTH                1  /* DACR_SPKMIXR_VOL */
1005 #define WM8993_SPKMIXR_VOL_MASK                 0x0003  /* SPKMIXR_VOL - [1:0] */
1006 #define WM8993_SPKMIXR_VOL_SHIFT                     0  /* SPKMIXR_VOL - [1:0] */
1007 #define WM8993_SPKMIXR_VOL_WIDTH                     2  /* SPKMIXR_VOL - [1:0] */
1008 
1009 /*
1010  * R36 (0x24) - SPKOUT Mixers
1011  */
1012 #define WM8993_VRX_TO_SPKOUTL                   0x0020  /* VRX_TO_SPKOUTL */
1013 #define WM8993_VRX_TO_SPKOUTL_MASK              0x0020  /* VRX_TO_SPKOUTL */
1014 #define WM8993_VRX_TO_SPKOUTL_SHIFT                  5  /* VRX_TO_SPKOUTL */
1015 #define WM8993_VRX_TO_SPKOUTL_WIDTH                  1  /* VRX_TO_SPKOUTL */
1016 #define WM8993_SPKMIXL_TO_SPKOUTL               0x0010  /* SPKMIXL_TO_SPKOUTL */
1017 #define WM8993_SPKMIXL_TO_SPKOUTL_MASK          0x0010  /* SPKMIXL_TO_SPKOUTL */
1018 #define WM8993_SPKMIXL_TO_SPKOUTL_SHIFT              4  /* SPKMIXL_TO_SPKOUTL */
1019 #define WM8993_SPKMIXL_TO_SPKOUTL_WIDTH              1  /* SPKMIXL_TO_SPKOUTL */
1020 #define WM8993_SPKMIXR_TO_SPKOUTL               0x0008  /* SPKMIXR_TO_SPKOUTL */
1021 #define WM8993_SPKMIXR_TO_SPKOUTL_MASK          0x0008  /* SPKMIXR_TO_SPKOUTL */
1022 #define WM8993_SPKMIXR_TO_SPKOUTL_SHIFT              3  /* SPKMIXR_TO_SPKOUTL */
1023 #define WM8993_SPKMIXR_TO_SPKOUTL_WIDTH              1  /* SPKMIXR_TO_SPKOUTL */
1024 #define WM8993_VRX_TO_SPKOUTR                   0x0004  /* VRX_TO_SPKOUTR */
1025 #define WM8993_VRX_TO_SPKOUTR_MASK              0x0004  /* VRX_TO_SPKOUTR */
1026 #define WM8993_VRX_TO_SPKOUTR_SHIFT                  2  /* VRX_TO_SPKOUTR */
1027 #define WM8993_VRX_TO_SPKOUTR_WIDTH                  1  /* VRX_TO_SPKOUTR */
1028 #define WM8993_SPKMIXL_TO_SPKOUTR               0x0002  /* SPKMIXL_TO_SPKOUTR */
1029 #define WM8993_SPKMIXL_TO_SPKOUTR_MASK          0x0002  /* SPKMIXL_TO_SPKOUTR */
1030 #define WM8993_SPKMIXL_TO_SPKOUTR_SHIFT              1  /* SPKMIXL_TO_SPKOUTR */
1031 #define WM8993_SPKMIXL_TO_SPKOUTR_WIDTH              1  /* SPKMIXL_TO_SPKOUTR */
1032 #define WM8993_SPKMIXR_TO_SPKOUTR               0x0001  /* SPKMIXR_TO_SPKOUTR */
1033 #define WM8993_SPKMIXR_TO_SPKOUTR_MASK          0x0001  /* SPKMIXR_TO_SPKOUTR */
1034 #define WM8993_SPKMIXR_TO_SPKOUTR_SHIFT              0  /* SPKMIXR_TO_SPKOUTR */
1035 #define WM8993_SPKMIXR_TO_SPKOUTR_WIDTH              1  /* SPKMIXR_TO_SPKOUTR */
1036 
1037 /*
1038  * R37 (0x25) - SPKOUT Boost
1039  */
1040 #define WM8993_SPKOUTL_BOOST_MASK               0x0038  /* SPKOUTL_BOOST - [5:3] */
1041 #define WM8993_SPKOUTL_BOOST_SHIFT                   3  /* SPKOUTL_BOOST - [5:3] */
1042 #define WM8993_SPKOUTL_BOOST_WIDTH                   3  /* SPKOUTL_BOOST - [5:3] */
1043 #define WM8993_SPKOUTR_BOOST_MASK               0x0007  /* SPKOUTR_BOOST - [2:0] */
1044 #define WM8993_SPKOUTR_BOOST_SHIFT                   0  /* SPKOUTR_BOOST - [2:0] */
1045 #define WM8993_SPKOUTR_BOOST_WIDTH                   3  /* SPKOUTR_BOOST - [2:0] */
1046 
1047 /*
1048  * R38 (0x26) - Speaker Volume Left
1049  */
1050 #define WM8993_SPKOUT_VU                        0x0100  /* SPKOUT_VU */
1051 #define WM8993_SPKOUT_VU_MASK                   0x0100  /* SPKOUT_VU */
1052 #define WM8993_SPKOUT_VU_SHIFT                       8  /* SPKOUT_VU */
1053 #define WM8993_SPKOUT_VU_WIDTH                       1  /* SPKOUT_VU */
1054 #define WM8993_SPKOUTL_ZC                       0x0080  /* SPKOUTL_ZC */
1055 #define WM8993_SPKOUTL_ZC_MASK                  0x0080  /* SPKOUTL_ZC */
1056 #define WM8993_SPKOUTL_ZC_SHIFT                      7  /* SPKOUTL_ZC */
1057 #define WM8993_SPKOUTL_ZC_WIDTH                      1  /* SPKOUTL_ZC */
1058 #define WM8993_SPKOUTL_MUTE_N                   0x0040  /* SPKOUTL_MUTE_N */
1059 #define WM8993_SPKOUTL_MUTE_N_MASK              0x0040  /* SPKOUTL_MUTE_N */
1060 #define WM8993_SPKOUTL_MUTE_N_SHIFT                  6  /* SPKOUTL_MUTE_N */
1061 #define WM8993_SPKOUTL_MUTE_N_WIDTH                  1  /* SPKOUTL_MUTE_N */
1062 #define WM8993_SPKOUTL_VOL_MASK                 0x003F  /* SPKOUTL_VOL - [5:0] */
1063 #define WM8993_SPKOUTL_VOL_SHIFT                     0  /* SPKOUTL_VOL - [5:0] */
1064 #define WM8993_SPKOUTL_VOL_WIDTH                     6  /* SPKOUTL_VOL - [5:0] */
1065 
1066 /*
1067  * R39 (0x27) - Speaker Volume Right
1068  */
1069 #define WM8993_SPKOUT_VU                        0x0100  /* SPKOUT_VU */
1070 #define WM8993_SPKOUT_VU_MASK                   0x0100  /* SPKOUT_VU */
1071 #define WM8993_SPKOUT_VU_SHIFT                       8  /* SPKOUT_VU */
1072 #define WM8993_SPKOUT_VU_WIDTH                       1  /* SPKOUT_VU */
1073 #define WM8993_SPKOUTR_ZC                       0x0080  /* SPKOUTR_ZC */
1074 #define WM8993_SPKOUTR_ZC_MASK                  0x0080  /* SPKOUTR_ZC */
1075 #define WM8993_SPKOUTR_ZC_SHIFT                      7  /* SPKOUTR_ZC */
1076 #define WM8993_SPKOUTR_ZC_WIDTH                      1  /* SPKOUTR_ZC */
1077 #define WM8993_SPKOUTR_MUTE_N                   0x0040  /* SPKOUTR_MUTE_N */
1078 #define WM8993_SPKOUTR_MUTE_N_MASK              0x0040  /* SPKOUTR_MUTE_N */
1079 #define WM8993_SPKOUTR_MUTE_N_SHIFT                  6  /* SPKOUTR_MUTE_N */
1080 #define WM8993_SPKOUTR_MUTE_N_WIDTH                  1  /* SPKOUTR_MUTE_N */
1081 #define WM8993_SPKOUTR_VOL_MASK                 0x003F  /* SPKOUTR_VOL - [5:0] */
1082 #define WM8993_SPKOUTR_VOL_SHIFT                     0  /* SPKOUTR_VOL - [5:0] */
1083 #define WM8993_SPKOUTR_VOL_WIDTH                     6  /* SPKOUTR_VOL - [5:0] */
1084 
1085 /*
1086  * R40 (0x28) - Input Mixer2
1087  */
1088 #define WM8993_IN2LP_TO_IN2L                    0x0080  /* IN2LP_TO_IN2L */
1089 #define WM8993_IN2LP_TO_IN2L_MASK               0x0080  /* IN2LP_TO_IN2L */
1090 #define WM8993_IN2LP_TO_IN2L_SHIFT                   7  /* IN2LP_TO_IN2L */
1091 #define WM8993_IN2LP_TO_IN2L_WIDTH                   1  /* IN2LP_TO_IN2L */
1092 #define WM8993_IN2LN_TO_IN2L                    0x0040  /* IN2LN_TO_IN2L */
1093 #define WM8993_IN2LN_TO_IN2L_MASK               0x0040  /* IN2LN_TO_IN2L */
1094 #define WM8993_IN2LN_TO_IN2L_SHIFT                   6  /* IN2LN_TO_IN2L */
1095 #define WM8993_IN2LN_TO_IN2L_WIDTH                   1  /* IN2LN_TO_IN2L */
1096 #define WM8993_IN1LP_TO_IN1L                    0x0020  /* IN1LP_TO_IN1L */
1097 #define WM8993_IN1LP_TO_IN1L_MASK               0x0020  /* IN1LP_TO_IN1L */
1098 #define WM8993_IN1LP_TO_IN1L_SHIFT                   5  /* IN1LP_TO_IN1L */
1099 #define WM8993_IN1LP_TO_IN1L_WIDTH                   1  /* IN1LP_TO_IN1L */
1100 #define WM8993_IN1LN_TO_IN1L                    0x0010  /* IN1LN_TO_IN1L */
1101 #define WM8993_IN1LN_TO_IN1L_MASK               0x0010  /* IN1LN_TO_IN1L */
1102 #define WM8993_IN1LN_TO_IN1L_SHIFT                   4  /* IN1LN_TO_IN1L */
1103 #define WM8993_IN1LN_TO_IN1L_WIDTH                   1  /* IN1LN_TO_IN1L */
1104 #define WM8993_IN2RP_TO_IN2R                    0x0008  /* IN2RP_TO_IN2R */
1105 #define WM8993_IN2RP_TO_IN2R_MASK               0x0008  /* IN2RP_TO_IN2R */
1106 #define WM8993_IN2RP_TO_IN2R_SHIFT                   3  /* IN2RP_TO_IN2R */
1107 #define WM8993_IN2RP_TO_IN2R_WIDTH                   1  /* IN2RP_TO_IN2R */
1108 #define WM8993_IN2RN_TO_IN2R                    0x0004  /* IN2RN_TO_IN2R */
1109 #define WM8993_IN2RN_TO_IN2R_MASK               0x0004  /* IN2RN_TO_IN2R */
1110 #define WM8993_IN2RN_TO_IN2R_SHIFT                   2  /* IN2RN_TO_IN2R */
1111 #define WM8993_IN2RN_TO_IN2R_WIDTH                   1  /* IN2RN_TO_IN2R */
1112 #define WM8993_IN1RP_TO_IN1R                    0x0002  /* IN1RP_TO_IN1R */
1113 #define WM8993_IN1RP_TO_IN1R_MASK               0x0002  /* IN1RP_TO_IN1R */
1114 #define WM8993_IN1RP_TO_IN1R_SHIFT                   1  /* IN1RP_TO_IN1R */
1115 #define WM8993_IN1RP_TO_IN1R_WIDTH                   1  /* IN1RP_TO_IN1R */
1116 #define WM8993_IN1RN_TO_IN1R                    0x0001  /* IN1RN_TO_IN1R */
1117 #define WM8993_IN1RN_TO_IN1R_MASK               0x0001  /* IN1RN_TO_IN1R */
1118 #define WM8993_IN1RN_TO_IN1R_SHIFT                   0  /* IN1RN_TO_IN1R */
1119 #define WM8993_IN1RN_TO_IN1R_WIDTH                   1  /* IN1RN_TO_IN1R */
1120 
1121 /*
1122  * R41 (0x29) - Input Mixer3
1123  */
1124 #define WM8993_IN2L_TO_MIXINL                   0x0100  /* IN2L_TO_MIXINL */
1125 #define WM8993_IN2L_TO_MIXINL_MASK              0x0100  /* IN2L_TO_MIXINL */
1126 #define WM8993_IN2L_TO_MIXINL_SHIFT                  8  /* IN2L_TO_MIXINL */
1127 #define WM8993_IN2L_TO_MIXINL_WIDTH                  1  /* IN2L_TO_MIXINL */
1128 #define WM8993_IN2L_MIXINL_VOL                  0x0080  /* IN2L_MIXINL_VOL */
1129 #define WM8993_IN2L_MIXINL_VOL_MASK             0x0080  /* IN2L_MIXINL_VOL */
1130 #define WM8993_IN2L_MIXINL_VOL_SHIFT                 7  /* IN2L_MIXINL_VOL */
1131 #define WM8993_IN2L_MIXINL_VOL_WIDTH                 1  /* IN2L_MIXINL_VOL */
1132 #define WM8993_IN1L_TO_MIXINL                   0x0020  /* IN1L_TO_MIXINL */
1133 #define WM8993_IN1L_TO_MIXINL_MASK              0x0020  /* IN1L_TO_MIXINL */
1134 #define WM8993_IN1L_TO_MIXINL_SHIFT                  5  /* IN1L_TO_MIXINL */
1135 #define WM8993_IN1L_TO_MIXINL_WIDTH                  1  /* IN1L_TO_MIXINL */
1136 #define WM8993_IN1L_MIXINL_VOL                  0x0010  /* IN1L_MIXINL_VOL */
1137 #define WM8993_IN1L_MIXINL_VOL_MASK             0x0010  /* IN1L_MIXINL_VOL */
1138 #define WM8993_IN1L_MIXINL_VOL_SHIFT                 4  /* IN1L_MIXINL_VOL */
1139 #define WM8993_IN1L_MIXINL_VOL_WIDTH                 1  /* IN1L_MIXINL_VOL */
1140 #define WM8993_MIXOUTL_MIXINL_VOL_MASK          0x0007  /* MIXOUTL_MIXINL_VOL - [2:0] */
1141 #define WM8993_MIXOUTL_MIXINL_VOL_SHIFT              0  /* MIXOUTL_MIXINL_VOL - [2:0] */
1142 #define WM8993_MIXOUTL_MIXINL_VOL_WIDTH              3  /* MIXOUTL_MIXINL_VOL - [2:0] */
1143 
1144 /*
1145  * R42 (0x2A) - Input Mixer4
1146  */
1147 #define WM8993_IN2R_TO_MIXINR                   0x0100  /* IN2R_TO_MIXINR */
1148 #define WM8993_IN2R_TO_MIXINR_MASK              0x0100  /* IN2R_TO_MIXINR */
1149 #define WM8993_IN2R_TO_MIXINR_SHIFT                  8  /* IN2R_TO_MIXINR */
1150 #define WM8993_IN2R_TO_MIXINR_WIDTH                  1  /* IN2R_TO_MIXINR */
1151 #define WM8993_IN2R_MIXINR_VOL                  0x0080  /* IN2R_MIXINR_VOL */
1152 #define WM8993_IN2R_MIXINR_VOL_MASK             0x0080  /* IN2R_MIXINR_VOL */
1153 #define WM8993_IN2R_MIXINR_VOL_SHIFT                 7  /* IN2R_MIXINR_VOL */
1154 #define WM8993_IN2R_MIXINR_VOL_WIDTH                 1  /* IN2R_MIXINR_VOL */
1155 #define WM8993_IN1R_TO_MIXINR                   0x0020  /* IN1R_TO_MIXINR */
1156 #define WM8993_IN1R_TO_MIXINR_MASK              0x0020  /* IN1R_TO_MIXINR */
1157 #define WM8993_IN1R_TO_MIXINR_SHIFT                  5  /* IN1R_TO_MIXINR */
1158 #define WM8993_IN1R_TO_MIXINR_WIDTH                  1  /* IN1R_TO_MIXINR */
1159 #define WM8993_IN1R_MIXINR_VOL                  0x0010  /* IN1R_MIXINR_VOL */
1160 #define WM8993_IN1R_MIXINR_VOL_MASK             0x0010  /* IN1R_MIXINR_VOL */
1161 #define WM8993_IN1R_MIXINR_VOL_SHIFT                 4  /* IN1R_MIXINR_VOL */
1162 #define WM8993_IN1R_MIXINR_VOL_WIDTH                 1  /* IN1R_MIXINR_VOL */
1163 #define WM8993_MIXOUTR_MIXINR_VOL_MASK          0x0007  /* MIXOUTR_MIXINR_VOL - [2:0] */
1164 #define WM8993_MIXOUTR_MIXINR_VOL_SHIFT              0  /* MIXOUTR_MIXINR_VOL - [2:0] */
1165 #define WM8993_MIXOUTR_MIXINR_VOL_WIDTH              3  /* MIXOUTR_MIXINR_VOL - [2:0] */
1166 
1167 /*
1168  * R43 (0x2B) - Input Mixer5
1169  */
1170 #define WM8993_IN1LP_MIXINL_VOL_MASK            0x01C0  /* IN1LP_MIXINL_VOL - [8:6] */
1171 #define WM8993_IN1LP_MIXINL_VOL_SHIFT                6  /* IN1LP_MIXINL_VOL - [8:6] */
1172 #define WM8993_IN1LP_MIXINL_VOL_WIDTH                3  /* IN1LP_MIXINL_VOL - [8:6] */
1173 #define WM8993_VRX_MIXINL_VOL_MASK              0x0007  /* VRX_MIXINL_VOL - [2:0] */
1174 #define WM8993_VRX_MIXINL_VOL_SHIFT                  0  /* VRX_MIXINL_VOL - [2:0] */
1175 #define WM8993_VRX_MIXINL_VOL_WIDTH                  3  /* VRX_MIXINL_VOL - [2:0] */
1176 
1177 /*
1178  * R44 (0x2C) - Input Mixer6
1179  */
1180 #define WM8993_IN1RP_MIXINR_VOL_MASK            0x01C0  /* IN1RP_MIXINR_VOL - [8:6] */
1181 #define WM8993_IN1RP_MIXINR_VOL_SHIFT                6  /* IN1RP_MIXINR_VOL - [8:6] */
1182 #define WM8993_IN1RP_MIXINR_VOL_WIDTH                3  /* IN1RP_MIXINR_VOL - [8:6] */
1183 #define WM8993_VRX_MIXINR_VOL_MASK              0x0007  /* VRX_MIXINR_VOL - [2:0] */
1184 #define WM8993_VRX_MIXINR_VOL_SHIFT                  0  /* VRX_MIXINR_VOL - [2:0] */
1185 #define WM8993_VRX_MIXINR_VOL_WIDTH                  3  /* VRX_MIXINR_VOL - [2:0] */
1186 
1187 /*
1188  * R45 (0x2D) - Output Mixer1
1189  */
1190 #define WM8993_DACL_TO_HPOUT1L                  0x0100  /* DACL_TO_HPOUT1L */
1191 #define WM8993_DACL_TO_HPOUT1L_MASK             0x0100  /* DACL_TO_HPOUT1L */
1192 #define WM8993_DACL_TO_HPOUT1L_SHIFT                 8  /* DACL_TO_HPOUT1L */
1193 #define WM8993_DACL_TO_HPOUT1L_WIDTH                 1  /* DACL_TO_HPOUT1L */
1194 #define WM8993_MIXINR_TO_MIXOUTL                0x0080  /* MIXINR_TO_MIXOUTL */
1195 #define WM8993_MIXINR_TO_MIXOUTL_MASK           0x0080  /* MIXINR_TO_MIXOUTL */
1196 #define WM8993_MIXINR_TO_MIXOUTL_SHIFT               7  /* MIXINR_TO_MIXOUTL */
1197 #define WM8993_MIXINR_TO_MIXOUTL_WIDTH               1  /* MIXINR_TO_MIXOUTL */
1198 #define WM8993_MIXINL_TO_MIXOUTL                0x0040  /* MIXINL_TO_MIXOUTL */
1199 #define WM8993_MIXINL_TO_MIXOUTL_MASK           0x0040  /* MIXINL_TO_MIXOUTL */
1200 #define WM8993_MIXINL_TO_MIXOUTL_SHIFT               6  /* MIXINL_TO_MIXOUTL */
1201 #define WM8993_MIXINL_TO_MIXOUTL_WIDTH               1  /* MIXINL_TO_MIXOUTL */
1202 #define WM8993_IN2RN_TO_MIXOUTL                 0x0020  /* IN2RN_TO_MIXOUTL */
1203 #define WM8993_IN2RN_TO_MIXOUTL_MASK            0x0020  /* IN2RN_TO_MIXOUTL */
1204 #define WM8993_IN2RN_TO_MIXOUTL_SHIFT                5  /* IN2RN_TO_MIXOUTL */
1205 #define WM8993_IN2RN_TO_MIXOUTL_WIDTH                1  /* IN2RN_TO_MIXOUTL */
1206 #define WM8993_IN2LN_TO_MIXOUTL                 0x0010  /* IN2LN_TO_MIXOUTL */
1207 #define WM8993_IN2LN_TO_MIXOUTL_MASK            0x0010  /* IN2LN_TO_MIXOUTL */
1208 #define WM8993_IN2LN_TO_MIXOUTL_SHIFT                4  /* IN2LN_TO_MIXOUTL */
1209 #define WM8993_IN2LN_TO_MIXOUTL_WIDTH                1  /* IN2LN_TO_MIXOUTL */
1210 #define WM8993_IN1R_TO_MIXOUTL                  0x0008  /* IN1R_TO_MIXOUTL */
1211 #define WM8993_IN1R_TO_MIXOUTL_MASK             0x0008  /* IN1R_TO_MIXOUTL */
1212 #define WM8993_IN1R_TO_MIXOUTL_SHIFT                 3  /* IN1R_TO_MIXOUTL */
1213 #define WM8993_IN1R_TO_MIXOUTL_WIDTH                 1  /* IN1R_TO_MIXOUTL */
1214 #define WM8993_IN1L_TO_MIXOUTL                  0x0004  /* IN1L_TO_MIXOUTL */
1215 #define WM8993_IN1L_TO_MIXOUTL_MASK             0x0004  /* IN1L_TO_MIXOUTL */
1216 #define WM8993_IN1L_TO_MIXOUTL_SHIFT                 2  /* IN1L_TO_MIXOUTL */
1217 #define WM8993_IN1L_TO_MIXOUTL_WIDTH                 1  /* IN1L_TO_MIXOUTL */
1218 #define WM8993_IN2LP_TO_MIXOUTL                 0x0002  /* IN2LP_TO_MIXOUTL */
1219 #define WM8993_IN2LP_TO_MIXOUTL_MASK            0x0002  /* IN2LP_TO_MIXOUTL */
1220 #define WM8993_IN2LP_TO_MIXOUTL_SHIFT                1  /* IN2LP_TO_MIXOUTL */
1221 #define WM8993_IN2LP_TO_MIXOUTL_WIDTH                1  /* IN2LP_TO_MIXOUTL */
1222 #define WM8993_DACL_TO_MIXOUTL                  0x0001  /* DACL_TO_MIXOUTL */
1223 #define WM8993_DACL_TO_MIXOUTL_MASK             0x0001  /* DACL_TO_MIXOUTL */
1224 #define WM8993_DACL_TO_MIXOUTL_SHIFT                 0  /* DACL_TO_MIXOUTL */
1225 #define WM8993_DACL_TO_MIXOUTL_WIDTH                 1  /* DACL_TO_MIXOUTL */
1226 
1227 /*
1228  * R46 (0x2E) - Output Mixer2
1229  */
1230 #define WM8993_DACR_TO_HPOUT1R                  0x0100  /* DACR_TO_HPOUT1R */
1231 #define WM8993_DACR_TO_HPOUT1R_MASK             0x0100  /* DACR_TO_HPOUT1R */
1232 #define WM8993_DACR_TO_HPOUT1R_SHIFT                 8  /* DACR_TO_HPOUT1R */
1233 #define WM8993_DACR_TO_HPOUT1R_WIDTH                 1  /* DACR_TO_HPOUT1R */
1234 #define WM8993_MIXINL_TO_MIXOUTR                0x0080  /* MIXINL_TO_MIXOUTR */
1235 #define WM8993_MIXINL_TO_MIXOUTR_MASK           0x0080  /* MIXINL_TO_MIXOUTR */
1236 #define WM8993_MIXINL_TO_MIXOUTR_SHIFT               7  /* MIXINL_TO_MIXOUTR */
1237 #define WM8993_MIXINL_TO_MIXOUTR_WIDTH               1  /* MIXINL_TO_MIXOUTR */
1238 #define WM8993_MIXINR_TO_MIXOUTR                0x0040  /* MIXINR_TO_MIXOUTR */
1239 #define WM8993_MIXINR_TO_MIXOUTR_MASK           0x0040  /* MIXINR_TO_MIXOUTR */
1240 #define WM8993_MIXINR_TO_MIXOUTR_SHIFT               6  /* MIXINR_TO_MIXOUTR */
1241 #define WM8993_MIXINR_TO_MIXOUTR_WIDTH               1  /* MIXINR_TO_MIXOUTR */
1242 #define WM8993_IN2LN_TO_MIXOUTR                 0x0020  /* IN2LN_TO_MIXOUTR */
1243 #define WM8993_IN2LN_TO_MIXOUTR_MASK            0x0020  /* IN2LN_TO_MIXOUTR */
1244 #define WM8993_IN2LN_TO_MIXOUTR_SHIFT                5  /* IN2LN_TO_MIXOUTR */
1245 #define WM8993_IN2LN_TO_MIXOUTR_WIDTH                1  /* IN2LN_TO_MIXOUTR */
1246 #define WM8993_IN2RN_TO_MIXOUTR                 0x0010  /* IN2RN_TO_MIXOUTR */
1247 #define WM8993_IN2RN_TO_MIXOUTR_MASK            0x0010  /* IN2RN_TO_MIXOUTR */
1248 #define WM8993_IN2RN_TO_MIXOUTR_SHIFT                4  /* IN2RN_TO_MIXOUTR */
1249 #define WM8993_IN2RN_TO_MIXOUTR_WIDTH                1  /* IN2RN_TO_MIXOUTR */
1250 #define WM8993_IN1L_TO_MIXOUTR                  0x0008  /* IN1L_TO_MIXOUTR */
1251 #define WM8993_IN1L_TO_MIXOUTR_MASK             0x0008  /* IN1L_TO_MIXOUTR */
1252 #define WM8993_IN1L_TO_MIXOUTR_SHIFT                 3  /* IN1L_TO_MIXOUTR */
1253 #define WM8993_IN1L_TO_MIXOUTR_WIDTH                 1  /* IN1L_TO_MIXOUTR */
1254 #define WM8993_IN1R_TO_MIXOUTR                  0x0004  /* IN1R_TO_MIXOUTR */
1255 #define WM8993_IN1R_TO_MIXOUTR_MASK             0x0004  /* IN1R_TO_MIXOUTR */
1256 #define WM8993_IN1R_TO_MIXOUTR_SHIFT                 2  /* IN1R_TO_MIXOUTR */
1257 #define WM8993_IN1R_TO_MIXOUTR_WIDTH                 1  /* IN1R_TO_MIXOUTR */
1258 #define WM8993_IN2RP_TO_MIXOUTR                 0x0002  /* IN2RP_TO_MIXOUTR */
1259 #define WM8993_IN2RP_TO_MIXOUTR_MASK            0x0002  /* IN2RP_TO_MIXOUTR */
1260 #define WM8993_IN2RP_TO_MIXOUTR_SHIFT                1  /* IN2RP_TO_MIXOUTR */
1261 #define WM8993_IN2RP_TO_MIXOUTR_WIDTH                1  /* IN2RP_TO_MIXOUTR */
1262 #define WM8993_DACR_TO_MIXOUTR                  0x0001  /* DACR_TO_MIXOUTR */
1263 #define WM8993_DACR_TO_MIXOUTR_MASK             0x0001  /* DACR_TO_MIXOUTR */
1264 #define WM8993_DACR_TO_MIXOUTR_SHIFT                 0  /* DACR_TO_MIXOUTR */
1265 #define WM8993_DACR_TO_MIXOUTR_WIDTH                 1  /* DACR_TO_MIXOUTR */
1266 
1267 /*
1268  * R47 (0x2F) - Output Mixer3
1269  */
1270 #define WM8993_IN2LP_MIXOUTL_VOL_MASK           0x0E00  /* IN2LP_MIXOUTL_VOL - [11:9] */
1271 #define WM8993_IN2LP_MIXOUTL_VOL_SHIFT               9  /* IN2LP_MIXOUTL_VOL - [11:9] */
1272 #define WM8993_IN2LP_MIXOUTL_VOL_WIDTH               3  /* IN2LP_MIXOUTL_VOL - [11:9] */
1273 #define WM8993_IN2LN_MIXOUTL_VOL_MASK           0x01C0  /* IN2LN_MIXOUTL_VOL - [8:6] */
1274 #define WM8993_IN2LN_MIXOUTL_VOL_SHIFT               6  /* IN2LN_MIXOUTL_VOL - [8:6] */
1275 #define WM8993_IN2LN_MIXOUTL_VOL_WIDTH               3  /* IN2LN_MIXOUTL_VOL - [8:6] */
1276 #define WM8993_IN1R_MIXOUTL_VOL_MASK            0x0038  /* IN1R_MIXOUTL_VOL - [5:3] */
1277 #define WM8993_IN1R_MIXOUTL_VOL_SHIFT                3  /* IN1R_MIXOUTL_VOL - [5:3] */
1278 #define WM8993_IN1R_MIXOUTL_VOL_WIDTH                3  /* IN1R_MIXOUTL_VOL - [5:3] */
1279 #define WM8993_IN1L_MIXOUTL_VOL_MASK            0x0007  /* IN1L_MIXOUTL_VOL - [2:0] */
1280 #define WM8993_IN1L_MIXOUTL_VOL_SHIFT                0  /* IN1L_MIXOUTL_VOL - [2:0] */
1281 #define WM8993_IN1L_MIXOUTL_VOL_WIDTH                3  /* IN1L_MIXOUTL_VOL - [2:0] */
1282 
1283 /*
1284  * R48 (0x30) - Output Mixer4
1285  */
1286 #define WM8993_IN2RP_MIXOUTR_VOL_MASK           0x0E00  /* IN2RP_MIXOUTR_VOL - [11:9] */
1287 #define WM8993_IN2RP_MIXOUTR_VOL_SHIFT               9  /* IN2RP_MIXOUTR_VOL - [11:9] */
1288 #define WM8993_IN2RP_MIXOUTR_VOL_WIDTH               3  /* IN2RP_MIXOUTR_VOL - [11:9] */
1289 #define WM8993_IN2RN_MIXOUTR_VOL_MASK           0x01C0  /* IN2RN_MIXOUTR_VOL - [8:6] */
1290 #define WM8993_IN2RN_MIXOUTR_VOL_SHIFT               6  /* IN2RN_MIXOUTR_VOL - [8:6] */
1291 #define WM8993_IN2RN_MIXOUTR_VOL_WIDTH               3  /* IN2RN_MIXOUTR_VOL - [8:6] */
1292 #define WM8993_IN1L_MIXOUTR_VOL_MASK            0x0038  /* IN1L_MIXOUTR_VOL - [5:3] */
1293 #define WM8993_IN1L_MIXOUTR_VOL_SHIFT                3  /* IN1L_MIXOUTR_VOL - [5:3] */
1294 #define WM8993_IN1L_MIXOUTR_VOL_WIDTH                3  /* IN1L_MIXOUTR_VOL - [5:3] */
1295 #define WM8993_IN1R_MIXOUTR_VOL_MASK            0x0007  /* IN1R_MIXOUTR_VOL - [2:0] */
1296 #define WM8993_IN1R_MIXOUTR_VOL_SHIFT                0  /* IN1R_MIXOUTR_VOL - [2:0] */
1297 #define WM8993_IN1R_MIXOUTR_VOL_WIDTH                3  /* IN1R_MIXOUTR_VOL - [2:0] */
1298 
1299 /*
1300  * R49 (0x31) - Output Mixer5
1301  */
1302 #define WM8993_DACL_MIXOUTL_VOL_MASK            0x0E00  /* DACL_MIXOUTL_VOL - [11:9] */
1303 #define WM8993_DACL_MIXOUTL_VOL_SHIFT                9  /* DACL_MIXOUTL_VOL - [11:9] */
1304 #define WM8993_DACL_MIXOUTL_VOL_WIDTH                3  /* DACL_MIXOUTL_VOL - [11:9] */
1305 #define WM8993_IN2RN_MIXOUTL_VOL_MASK           0x01C0  /* IN2RN_MIXOUTL_VOL - [8:6] */
1306 #define WM8993_IN2RN_MIXOUTL_VOL_SHIFT               6  /* IN2RN_MIXOUTL_VOL - [8:6] */
1307 #define WM8993_IN2RN_MIXOUTL_VOL_WIDTH               3  /* IN2RN_MIXOUTL_VOL - [8:6] */
1308 #define WM8993_MIXINR_MIXOUTL_VOL_MASK          0x0038  /* MIXINR_MIXOUTL_VOL - [5:3] */
1309 #define WM8993_MIXINR_MIXOUTL_VOL_SHIFT              3  /* MIXINR_MIXOUTL_VOL - [5:3] */
1310 #define WM8993_MIXINR_MIXOUTL_VOL_WIDTH              3  /* MIXINR_MIXOUTL_VOL - [5:3] */
1311 #define WM8993_MIXINL_MIXOUTL_VOL_MASK          0x0007  /* MIXINL_MIXOUTL_VOL - [2:0] */
1312 #define WM8993_MIXINL_MIXOUTL_VOL_SHIFT              0  /* MIXINL_MIXOUTL_VOL - [2:0] */
1313 #define WM8993_MIXINL_MIXOUTL_VOL_WIDTH              3  /* MIXINL_MIXOUTL_VOL - [2:0] */
1314 
1315 /*
1316  * R50 (0x32) - Output Mixer6
1317  */
1318 #define WM8993_DACR_MIXOUTR_VOL_MASK            0x0E00  /* DACR_MIXOUTR_VOL - [11:9] */
1319 #define WM8993_DACR_MIXOUTR_VOL_SHIFT                9  /* DACR_MIXOUTR_VOL - [11:9] */
1320 #define WM8993_DACR_MIXOUTR_VOL_WIDTH                3  /* DACR_MIXOUTR_VOL - [11:9] */
1321 #define WM8993_IN2LN_MIXOUTR_VOL_MASK           0x01C0  /* IN2LN_MIXOUTR_VOL - [8:6] */
1322 #define WM8993_IN2LN_MIXOUTR_VOL_SHIFT               6  /* IN2LN_MIXOUTR_VOL - [8:6] */
1323 #define WM8993_IN2LN_MIXOUTR_VOL_WIDTH               3  /* IN2LN_MIXOUTR_VOL - [8:6] */
1324 #define WM8993_MIXINL_MIXOUTR_VOL_MASK          0x0038  /* MIXINL_MIXOUTR_VOL - [5:3] */
1325 #define WM8993_MIXINL_MIXOUTR_VOL_SHIFT              3  /* MIXINL_MIXOUTR_VOL - [5:3] */
1326 #define WM8993_MIXINL_MIXOUTR_VOL_WIDTH              3  /* MIXINL_MIXOUTR_VOL - [5:3] */
1327 #define WM8993_MIXINR_MIXOUTR_VOL_MASK          0x0007  /* MIXINR_MIXOUTR_VOL - [2:0] */
1328 #define WM8993_MIXINR_MIXOUTR_VOL_SHIFT              0  /* MIXINR_MIXOUTR_VOL - [2:0] */
1329 #define WM8993_MIXINR_MIXOUTR_VOL_WIDTH              3  /* MIXINR_MIXOUTR_VOL - [2:0] */
1330 
1331 /*
1332  * R51 (0x33) - HPOUT2 Mixer
1333  */
1334 #define WM8993_VRX_TO_HPOUT2                    0x0020  /* VRX_TO_HPOUT2 */
1335 #define WM8993_VRX_TO_HPOUT2_MASK               0x0020  /* VRX_TO_HPOUT2 */
1336 #define WM8993_VRX_TO_HPOUT2_SHIFT                   5  /* VRX_TO_HPOUT2 */
1337 #define WM8993_VRX_TO_HPOUT2_WIDTH                   1  /* VRX_TO_HPOUT2 */
1338 #define WM8993_MIXOUTLVOL_TO_HPOUT2             0x0010  /* MIXOUTLVOL_TO_HPOUT2 */
1339 #define WM8993_MIXOUTLVOL_TO_HPOUT2_MASK        0x0010  /* MIXOUTLVOL_TO_HPOUT2 */
1340 #define WM8993_MIXOUTLVOL_TO_HPOUT2_SHIFT            4  /* MIXOUTLVOL_TO_HPOUT2 */
1341 #define WM8993_MIXOUTLVOL_TO_HPOUT2_WIDTH            1  /* MIXOUTLVOL_TO_HPOUT2 */
1342 #define WM8993_MIXOUTRVOL_TO_HPOUT2             0x0008  /* MIXOUTRVOL_TO_HPOUT2 */
1343 #define WM8993_MIXOUTRVOL_TO_HPOUT2_MASK        0x0008  /* MIXOUTRVOL_TO_HPOUT2 */
1344 #define WM8993_MIXOUTRVOL_TO_HPOUT2_SHIFT            3  /* MIXOUTRVOL_TO_HPOUT2 */
1345 #define WM8993_MIXOUTRVOL_TO_HPOUT2_WIDTH            1  /* MIXOUTRVOL_TO_HPOUT2 */
1346 
1347 /*
1348  * R52 (0x34) - Line Mixer1
1349  */
1350 #define WM8993_MIXOUTL_TO_LINEOUT1N             0x0040  /* MIXOUTL_TO_LINEOUT1N */
1351 #define WM8993_MIXOUTL_TO_LINEOUT1N_MASK        0x0040  /* MIXOUTL_TO_LINEOUT1N */
1352 #define WM8993_MIXOUTL_TO_LINEOUT1N_SHIFT            6  /* MIXOUTL_TO_LINEOUT1N */
1353 #define WM8993_MIXOUTL_TO_LINEOUT1N_WIDTH            1  /* MIXOUTL_TO_LINEOUT1N */
1354 #define WM8993_MIXOUTR_TO_LINEOUT1N             0x0020  /* MIXOUTR_TO_LINEOUT1N */
1355 #define WM8993_MIXOUTR_TO_LINEOUT1N_MASK        0x0020  /* MIXOUTR_TO_LINEOUT1N */
1356 #define WM8993_MIXOUTR_TO_LINEOUT1N_SHIFT            5  /* MIXOUTR_TO_LINEOUT1N */
1357 #define WM8993_MIXOUTR_TO_LINEOUT1N_WIDTH            1  /* MIXOUTR_TO_LINEOUT1N */
1358 #define WM8993_LINEOUT1_MODE                    0x0010  /* LINEOUT1_MODE */
1359 #define WM8993_LINEOUT1_MODE_MASK               0x0010  /* LINEOUT1_MODE */
1360 #define WM8993_LINEOUT1_MODE_SHIFT                   4  /* LINEOUT1_MODE */
1361 #define WM8993_LINEOUT1_MODE_WIDTH                   1  /* LINEOUT1_MODE */
1362 #define WM8993_IN1R_TO_LINEOUT1P                0x0004  /* IN1R_TO_LINEOUT1P */
1363 #define WM8993_IN1R_TO_LINEOUT1P_MASK           0x0004  /* IN1R_TO_LINEOUT1P */
1364 #define WM8993_IN1R_TO_LINEOUT1P_SHIFT               2  /* IN1R_TO_LINEOUT1P */
1365 #define WM8993_IN1R_TO_LINEOUT1P_WIDTH               1  /* IN1R_TO_LINEOUT1P */
1366 #define WM8993_IN1L_TO_LINEOUT1P                0x0002  /* IN1L_TO_LINEOUT1P */
1367 #define WM8993_IN1L_TO_LINEOUT1P_MASK           0x0002  /* IN1L_TO_LINEOUT1P */
1368 #define WM8993_IN1L_TO_LINEOUT1P_SHIFT               1  /* IN1L_TO_LINEOUT1P */
1369 #define WM8993_IN1L_TO_LINEOUT1P_WIDTH               1  /* IN1L_TO_LINEOUT1P */
1370 #define WM8993_MIXOUTL_TO_LINEOUT1P             0x0001  /* MIXOUTL_TO_LINEOUT1P */
1371 #define WM8993_MIXOUTL_TO_LINEOUT1P_MASK        0x0001  /* MIXOUTL_TO_LINEOUT1P */
1372 #define WM8993_MIXOUTL_TO_LINEOUT1P_SHIFT            0  /* MIXOUTL_TO_LINEOUT1P */
1373 #define WM8993_MIXOUTL_TO_LINEOUT1P_WIDTH            1  /* MIXOUTL_TO_LINEOUT1P */
1374 
1375 /*
1376  * R53 (0x35) - Line Mixer2
1377  */
1378 #define WM8993_MIXOUTR_TO_LINEOUT2N             0x0040  /* MIXOUTR_TO_LINEOUT2N */
1379 #define WM8993_MIXOUTR_TO_LINEOUT2N_MASK        0x0040  /* MIXOUTR_TO_LINEOUT2N */
1380 #define WM8993_MIXOUTR_TO_LINEOUT2N_SHIFT            6  /* MIXOUTR_TO_LINEOUT2N */
1381 #define WM8993_MIXOUTR_TO_LINEOUT2N_WIDTH            1  /* MIXOUTR_TO_LINEOUT2N */
1382 #define WM8993_MIXOUTL_TO_LINEOUT2N             0x0020  /* MIXOUTL_TO_LINEOUT2N */
1383 #define WM8993_MIXOUTL_TO_LINEOUT2N_MASK        0x0020  /* MIXOUTL_TO_LINEOUT2N */
1384 #define WM8993_MIXOUTL_TO_LINEOUT2N_SHIFT            5  /* MIXOUTL_TO_LINEOUT2N */
1385 #define WM8993_MIXOUTL_TO_LINEOUT2N_WIDTH            1  /* MIXOUTL_TO_LINEOUT2N */
1386 #define WM8993_LINEOUT2_MODE                    0x0010  /* LINEOUT2_MODE */
1387 #define WM8993_LINEOUT2_MODE_MASK               0x0010  /* LINEOUT2_MODE */
1388 #define WM8993_LINEOUT2_MODE_SHIFT                   4  /* LINEOUT2_MODE */
1389 #define WM8993_LINEOUT2_MODE_WIDTH                   1  /* LINEOUT2_MODE */
1390 #define WM8993_IN1L_TO_LINEOUT2P                0x0004  /* IN1L_TO_LINEOUT2P */
1391 #define WM8993_IN1L_TO_LINEOUT2P_MASK           0x0004  /* IN1L_TO_LINEOUT2P */
1392 #define WM8993_IN1L_TO_LINEOUT2P_SHIFT               2  /* IN1L_TO_LINEOUT2P */
1393 #define WM8993_IN1L_TO_LINEOUT2P_WIDTH               1  /* IN1L_TO_LINEOUT2P */
1394 #define WM8993_IN1R_TO_LINEOUT2P                0x0002  /* IN1R_TO_LINEOUT2P */
1395 #define WM8993_IN1R_TO_LINEOUT2P_MASK           0x0002  /* IN1R_TO_LINEOUT2P */
1396 #define WM8993_IN1R_TO_LINEOUT2P_SHIFT               1  /* IN1R_TO_LINEOUT2P */
1397 #define WM8993_IN1R_TO_LINEOUT2P_WIDTH               1  /* IN1R_TO_LINEOUT2P */
1398 #define WM8993_MIXOUTR_TO_LINEOUT2P             0x0001  /* MIXOUTR_TO_LINEOUT2P */
1399 #define WM8993_MIXOUTR_TO_LINEOUT2P_MASK        0x0001  /* MIXOUTR_TO_LINEOUT2P */
1400 #define WM8993_MIXOUTR_TO_LINEOUT2P_SHIFT            0  /* MIXOUTR_TO_LINEOUT2P */
1401 #define WM8993_MIXOUTR_TO_LINEOUT2P_WIDTH            1  /* MIXOUTR_TO_LINEOUT2P */
1402 
1403 /*
1404  * R54 (0x36) - Speaker Mixer
1405  */
1406 #define WM8993_SPKAB_REF_SEL                    0x0100  /* SPKAB_REF_SEL */
1407 #define WM8993_SPKAB_REF_SEL_MASK               0x0100  /* SPKAB_REF_SEL */
1408 #define WM8993_SPKAB_REF_SEL_SHIFT                   8  /* SPKAB_REF_SEL */
1409 #define WM8993_SPKAB_REF_SEL_WIDTH                   1  /* SPKAB_REF_SEL */
1410 #define WM8993_MIXINL_TO_SPKMIXL                0x0080  /* MIXINL_TO_SPKMIXL */
1411 #define WM8993_MIXINL_TO_SPKMIXL_MASK           0x0080  /* MIXINL_TO_SPKMIXL */
1412 #define WM8993_MIXINL_TO_SPKMIXL_SHIFT               7  /* MIXINL_TO_SPKMIXL */
1413 #define WM8993_MIXINL_TO_SPKMIXL_WIDTH               1  /* MIXINL_TO_SPKMIXL */
1414 #define WM8993_MIXINR_TO_SPKMIXR                0x0040  /* MIXINR_TO_SPKMIXR */
1415 #define WM8993_MIXINR_TO_SPKMIXR_MASK           0x0040  /* MIXINR_TO_SPKMIXR */
1416 #define WM8993_MIXINR_TO_SPKMIXR_SHIFT               6  /* MIXINR_TO_SPKMIXR */
1417 #define WM8993_MIXINR_TO_SPKMIXR_WIDTH               1  /* MIXINR_TO_SPKMIXR */
1418 #define WM8993_IN1LP_TO_SPKMIXL                 0x0020  /* IN1LP_TO_SPKMIXL */
1419 #define WM8993_IN1LP_TO_SPKMIXL_MASK            0x0020  /* IN1LP_TO_SPKMIXL */
1420 #define WM8993_IN1LP_TO_SPKMIXL_SHIFT                5  /* IN1LP_TO_SPKMIXL */
1421 #define WM8993_IN1LP_TO_SPKMIXL_WIDTH                1  /* IN1LP_TO_SPKMIXL */
1422 #define WM8993_IN1RP_TO_SPKMIXR                 0x0010  /* IN1RP_TO_SPKMIXR */
1423 #define WM8993_IN1RP_TO_SPKMIXR_MASK            0x0010  /* IN1RP_TO_SPKMIXR */
1424 #define WM8993_IN1RP_TO_SPKMIXR_SHIFT                4  /* IN1RP_TO_SPKMIXR */
1425 #define WM8993_IN1RP_TO_SPKMIXR_WIDTH                1  /* IN1RP_TO_SPKMIXR */
1426 #define WM8993_MIXOUTL_TO_SPKMIXL               0x0008  /* MIXOUTL_TO_SPKMIXL */
1427 #define WM8993_MIXOUTL_TO_SPKMIXL_MASK          0x0008  /* MIXOUTL_TO_SPKMIXL */
1428 #define WM8993_MIXOUTL_TO_SPKMIXL_SHIFT              3  /* MIXOUTL_TO_SPKMIXL */
1429 #define WM8993_MIXOUTL_TO_SPKMIXL_WIDTH              1  /* MIXOUTL_TO_SPKMIXL */
1430 #define WM8993_MIXOUTR_TO_SPKMIXR               0x0004  /* MIXOUTR_TO_SPKMIXR */
1431 #define WM8993_MIXOUTR_TO_SPKMIXR_MASK          0x0004  /* MIXOUTR_TO_SPKMIXR */
1432 #define WM8993_MIXOUTR_TO_SPKMIXR_SHIFT              2  /* MIXOUTR_TO_SPKMIXR */
1433 #define WM8993_MIXOUTR_TO_SPKMIXR_WIDTH              1  /* MIXOUTR_TO_SPKMIXR */
1434 #define WM8993_DACL_TO_SPKMIXL                  0x0002  /* DACL_TO_SPKMIXL */
1435 #define WM8993_DACL_TO_SPKMIXL_MASK             0x0002  /* DACL_TO_SPKMIXL */
1436 #define WM8993_DACL_TO_SPKMIXL_SHIFT                 1  /* DACL_TO_SPKMIXL */
1437 #define WM8993_DACL_TO_SPKMIXL_WIDTH                 1  /* DACL_TO_SPKMIXL */
1438 #define WM8993_DACR_TO_SPKMIXR                  0x0001  /* DACR_TO_SPKMIXR */
1439 #define WM8993_DACR_TO_SPKMIXR_MASK             0x0001  /* DACR_TO_SPKMIXR */
1440 #define WM8993_DACR_TO_SPKMIXR_SHIFT                 0  /* DACR_TO_SPKMIXR */
1441 #define WM8993_DACR_TO_SPKMIXR_WIDTH                 1  /* DACR_TO_SPKMIXR */
1442 
1443 /*
1444  * R55 (0x37) - Additional Control
1445  */
1446 #define WM8993_LINEOUT1_FB                      0x0080  /* LINEOUT1_FB */
1447 #define WM8993_LINEOUT1_FB_MASK                 0x0080  /* LINEOUT1_FB */
1448 #define WM8993_LINEOUT1_FB_SHIFT                     7  /* LINEOUT1_FB */
1449 #define WM8993_LINEOUT1_FB_WIDTH                     1  /* LINEOUT1_FB */
1450 #define WM8993_LINEOUT2_FB                      0x0040  /* LINEOUT2_FB */
1451 #define WM8993_LINEOUT2_FB_MASK                 0x0040  /* LINEOUT2_FB */
1452 #define WM8993_LINEOUT2_FB_SHIFT                     6  /* LINEOUT2_FB */
1453 #define WM8993_LINEOUT2_FB_WIDTH                     1  /* LINEOUT2_FB */
1454 #define WM8993_VROI                             0x0001  /* VROI */
1455 #define WM8993_VROI_MASK                        0x0001  /* VROI */
1456 #define WM8993_VROI_SHIFT                            0  /* VROI */
1457 #define WM8993_VROI_WIDTH                            1  /* VROI */
1458 
1459 /*
1460  * R56 (0x38) - AntiPOP1
1461  */
1462 #define WM8993_LINEOUT_VMID_BUF_ENA             0x0080  /* LINEOUT_VMID_BUF_ENA */
1463 #define WM8993_LINEOUT_VMID_BUF_ENA_MASK        0x0080  /* LINEOUT_VMID_BUF_ENA */
1464 #define WM8993_LINEOUT_VMID_BUF_ENA_SHIFT            7  /* LINEOUT_VMID_BUF_ENA */
1465 #define WM8993_LINEOUT_VMID_BUF_ENA_WIDTH            1  /* LINEOUT_VMID_BUF_ENA */
1466 #define WM8993_HPOUT2_IN_ENA                    0x0040  /* HPOUT2_IN_ENA */
1467 #define WM8993_HPOUT2_IN_ENA_MASK               0x0040  /* HPOUT2_IN_ENA */
1468 #define WM8993_HPOUT2_IN_ENA_SHIFT                   6  /* HPOUT2_IN_ENA */
1469 #define WM8993_HPOUT2_IN_ENA_WIDTH                   1  /* HPOUT2_IN_ENA */
1470 #define WM8993_LINEOUT1_DISCH                   0x0020  /* LINEOUT1_DISCH */
1471 #define WM8993_LINEOUT1_DISCH_MASK              0x0020  /* LINEOUT1_DISCH */
1472 #define WM8993_LINEOUT1_DISCH_SHIFT                  5  /* LINEOUT1_DISCH */
1473 #define WM8993_LINEOUT1_DISCH_WIDTH                  1  /* LINEOUT1_DISCH */
1474 #define WM8993_LINEOUT2_DISCH                   0x0010  /* LINEOUT2_DISCH */
1475 #define WM8993_LINEOUT2_DISCH_MASK              0x0010  /* LINEOUT2_DISCH */
1476 #define WM8993_LINEOUT2_DISCH_SHIFT                  4  /* LINEOUT2_DISCH */
1477 #define WM8993_LINEOUT2_DISCH_WIDTH                  1  /* LINEOUT2_DISCH */
1478 
1479 /*
1480  * R57 (0x39) - AntiPOP2
1481  */
1482 #define WM8993_VMID_RAMP_MASK                   0x0060  /* VMID_RAMP - [6:5] */
1483 #define WM8993_VMID_RAMP_SHIFT                       5  /* VMID_RAMP - [6:5] */
1484 #define WM8993_VMID_RAMP_WIDTH                       2  /* VMID_RAMP - [6:5] */
1485 #define WM8993_VMID_BUF_ENA                     0x0008  /* VMID_BUF_ENA */
1486 #define WM8993_VMID_BUF_ENA_MASK                0x0008  /* VMID_BUF_ENA */
1487 #define WM8993_VMID_BUF_ENA_SHIFT                    3  /* VMID_BUF_ENA */
1488 #define WM8993_VMID_BUF_ENA_WIDTH                    1  /* VMID_BUF_ENA */
1489 #define WM8993_STARTUP_BIAS_ENA                 0x0004  /* STARTUP_BIAS_ENA */
1490 #define WM8993_STARTUP_BIAS_ENA_MASK            0x0004  /* STARTUP_BIAS_ENA */
1491 #define WM8993_STARTUP_BIAS_ENA_SHIFT                2  /* STARTUP_BIAS_ENA */
1492 #define WM8993_STARTUP_BIAS_ENA_WIDTH                1  /* STARTUP_BIAS_ENA */
1493 #define WM8993_BIAS_SRC                         0x0002  /* BIAS_SRC */
1494 #define WM8993_BIAS_SRC_MASK                    0x0002  /* BIAS_SRC */
1495 #define WM8993_BIAS_SRC_SHIFT                        1  /* BIAS_SRC */
1496 #define WM8993_BIAS_SRC_WIDTH                        1  /* BIAS_SRC */
1497 #define WM8993_VMID_DISCH                       0x0001  /* VMID_DISCH */
1498 #define WM8993_VMID_DISCH_MASK                  0x0001  /* VMID_DISCH */
1499 #define WM8993_VMID_DISCH_SHIFT                      0  /* VMID_DISCH */
1500 #define WM8993_VMID_DISCH_WIDTH                      1  /* VMID_DISCH */
1501 
1502 /*
1503  * R58 (0x3A) - MICBIAS
1504  */
1505 #define WM8993_JD_SCTHR_MASK                    0x00C0  /* JD_SCTHR - [7:6] */
1506 #define WM8993_JD_SCTHR_SHIFT                        6  /* JD_SCTHR - [7:6] */
1507 #define WM8993_JD_SCTHR_WIDTH                        2  /* JD_SCTHR - [7:6] */
1508 #define WM8993_JD_THR_MASK                      0x0030  /* JD_THR - [5:4] */
1509 #define WM8993_JD_THR_SHIFT                          4  /* JD_THR - [5:4] */
1510 #define WM8993_JD_THR_WIDTH                          2  /* JD_THR - [5:4] */
1511 #define WM8993_JD_ENA                           0x0004  /* JD_ENA */
1512 #define WM8993_JD_ENA_MASK                      0x0004  /* JD_ENA */
1513 #define WM8993_JD_ENA_SHIFT                          2  /* JD_ENA */
1514 #define WM8993_JD_ENA_WIDTH                          1  /* JD_ENA */
1515 #define WM8993_MICB2_LVL                        0x0002  /* MICB2_LVL */
1516 #define WM8993_MICB2_LVL_MASK                   0x0002  /* MICB2_LVL */
1517 #define WM8993_MICB2_LVL_SHIFT                       1  /* MICB2_LVL */
1518 #define WM8993_MICB2_LVL_WIDTH                       1  /* MICB2_LVL */
1519 #define WM8993_MICB1_LVL                        0x0001  /* MICB1_LVL */
1520 #define WM8993_MICB1_LVL_MASK                   0x0001  /* MICB1_LVL */
1521 #define WM8993_MICB1_LVL_SHIFT                       0  /* MICB1_LVL */
1522 #define WM8993_MICB1_LVL_WIDTH                       1  /* MICB1_LVL */
1523 
1524 /*
1525  * R60 (0x3C) - FLL Control 1
1526  */
1527 #define WM8993_FLL_FRAC                         0x0004  /* FLL_FRAC */
1528 #define WM8993_FLL_FRAC_MASK                    0x0004  /* FLL_FRAC */
1529 #define WM8993_FLL_FRAC_SHIFT                        2  /* FLL_FRAC */
1530 #define WM8993_FLL_FRAC_WIDTH                        1  /* FLL_FRAC */
1531 #define WM8993_FLL_OSC_ENA                      0x0002  /* FLL_OSC_ENA */
1532 #define WM8993_FLL_OSC_ENA_MASK                 0x0002  /* FLL_OSC_ENA */
1533 #define WM8993_FLL_OSC_ENA_SHIFT                     1  /* FLL_OSC_ENA */
1534 #define WM8993_FLL_OSC_ENA_WIDTH                     1  /* FLL_OSC_ENA */
1535 #define WM8993_FLL_ENA                          0x0001  /* FLL_ENA */
1536 #define WM8993_FLL_ENA_MASK                     0x0001  /* FLL_ENA */
1537 #define WM8993_FLL_ENA_SHIFT                         0  /* FLL_ENA */
1538 #define WM8993_FLL_ENA_WIDTH                         1  /* FLL_ENA */
1539 
1540 /*
1541  * R61 (0x3D) - FLL Control 2
1542  */
1543 #define WM8993_FLL_OUTDIV_MASK                  0x0700  /* FLL_OUTDIV - [10:8] */
1544 #define WM8993_FLL_OUTDIV_SHIFT                      8  /* FLL_OUTDIV - [10:8] */
1545 #define WM8993_FLL_OUTDIV_WIDTH                      3  /* FLL_OUTDIV - [10:8] */
1546 #define WM8993_FLL_CTRL_RATE_MASK               0x0070  /* FLL_CTRL_RATE - [6:4] */
1547 #define WM8993_FLL_CTRL_RATE_SHIFT                   4  /* FLL_CTRL_RATE - [6:4] */
1548 #define WM8993_FLL_CTRL_RATE_WIDTH                   3  /* FLL_CTRL_RATE - [6:4] */
1549 #define WM8993_FLL_FRATIO_MASK                  0x0007  /* FLL_FRATIO - [2:0] */
1550 #define WM8993_FLL_FRATIO_SHIFT                      0  /* FLL_FRATIO - [2:0] */
1551 #define WM8993_FLL_FRATIO_WIDTH                      3  /* FLL_FRATIO - [2:0] */
1552 
1553 /*
1554  * R62 (0x3E) - FLL Control 3
1555  */
1556 #define WM8993_FLL_K_MASK                       0xFFFF  /* FLL_K - [15:0] */
1557 #define WM8993_FLL_K_SHIFT                           0  /* FLL_K - [15:0] */
1558 #define WM8993_FLL_K_WIDTH                          16  /* FLL_K - [15:0] */
1559 
1560 /*
1561  * R63 (0x3F) - FLL Control 4
1562  */
1563 #define WM8993_FLL_N_MASK                       0x7FE0  /* FLL_N - [14:5] */
1564 #define WM8993_FLL_N_SHIFT                           5  /* FLL_N - [14:5] */
1565 #define WM8993_FLL_N_WIDTH                          10  /* FLL_N - [14:5] */
1566 #define WM8993_FLL_GAIN_MASK                    0x000F  /* FLL_GAIN - [3:0] */
1567 #define WM8993_FLL_GAIN_SHIFT                        0  /* FLL_GAIN - [3:0] */
1568 #define WM8993_FLL_GAIN_WIDTH                        4  /* FLL_GAIN - [3:0] */
1569 
1570 /*
1571  * R64 (0x40) - FLL Control 5
1572  */
1573 #define WM8993_FLL_FRC_NCO_VAL_MASK             0x1F80  /* FLL_FRC_NCO_VAL - [12:7] */
1574 #define WM8993_FLL_FRC_NCO_VAL_SHIFT                 7  /* FLL_FRC_NCO_VAL - [12:7] */
1575 #define WM8993_FLL_FRC_NCO_VAL_WIDTH                 6  /* FLL_FRC_NCO_VAL - [12:7] */
1576 #define WM8993_FLL_FRC_NCO                      0x0040  /* FLL_FRC_NCO */
1577 #define WM8993_FLL_FRC_NCO_MASK                 0x0040  /* FLL_FRC_NCO */
1578 #define WM8993_FLL_FRC_NCO_SHIFT                     6  /* FLL_FRC_NCO */
1579 #define WM8993_FLL_FRC_NCO_WIDTH                     1  /* FLL_FRC_NCO */
1580 #define WM8993_FLL_CLK_REF_DIV_MASK             0x0018  /* FLL_CLK_REF_DIV - [4:3] */
1581 #define WM8993_FLL_CLK_REF_DIV_SHIFT                 3  /* FLL_CLK_REF_DIV - [4:3] */
1582 #define WM8993_FLL_CLK_REF_DIV_WIDTH                 2  /* FLL_CLK_REF_DIV - [4:3] */
1583 #define WM8993_FLL_CLK_SRC_MASK                 0x0003  /* FLL_CLK_SRC - [1:0] */
1584 #define WM8993_FLL_CLK_SRC_SHIFT                     0  /* FLL_CLK_SRC - [1:0] */
1585 #define WM8993_FLL_CLK_SRC_WIDTH                     2  /* FLL_CLK_SRC - [1:0] */
1586 
1587 /*
1588  * R65 (0x41) - Clocking 3
1589  */
1590 #define WM8993_CLK_DCS_DIV_MASK                 0x3C00  /* CLK_DCS_DIV - [13:10] */
1591 #define WM8993_CLK_DCS_DIV_SHIFT                    10  /* CLK_DCS_DIV - [13:10] */
1592 #define WM8993_CLK_DCS_DIV_WIDTH                     4  /* CLK_DCS_DIV - [13:10] */
1593 #define WM8993_SAMPLE_RATE_MASK                 0x0380  /* SAMPLE_RATE - [9:7] */
1594 #define WM8993_SAMPLE_RATE_SHIFT                     7  /* SAMPLE_RATE - [9:7] */
1595 #define WM8993_SAMPLE_RATE_WIDTH                     3  /* SAMPLE_RATE - [9:7] */
1596 #define WM8993_CLK_SYS_RATE_MASK                0x001E  /* CLK_SYS_RATE - [4:1] */
1597 #define WM8993_CLK_SYS_RATE_SHIFT                    1  /* CLK_SYS_RATE - [4:1] */
1598 #define WM8993_CLK_SYS_RATE_WIDTH                    4  /* CLK_SYS_RATE - [4:1] */
1599 #define WM8993_CLK_DSP_ENA                      0x0001  /* CLK_DSP_ENA */
1600 #define WM8993_CLK_DSP_ENA_MASK                 0x0001  /* CLK_DSP_ENA */
1601 #define WM8993_CLK_DSP_ENA_SHIFT                     0  /* CLK_DSP_ENA */
1602 #define WM8993_CLK_DSP_ENA_WIDTH                     1  /* CLK_DSP_ENA */
1603 
1604 /*
1605  * R66 (0x42) - Clocking 4
1606  */
1607 #define WM8993_DAC_DIV4                         0x0200  /* DAC_DIV4 */
1608 #define WM8993_DAC_DIV4_MASK                    0x0200  /* DAC_DIV4 */
1609 #define WM8993_DAC_DIV4_SHIFT                        9  /* DAC_DIV4 */
1610 #define WM8993_DAC_DIV4_WIDTH                        1  /* DAC_DIV4 */
1611 #define WM8993_CLK_256K_DIV_MASK                0x007E  /* CLK_256K_DIV - [6:1] */
1612 #define WM8993_CLK_256K_DIV_SHIFT                    1  /* CLK_256K_DIV - [6:1] */
1613 #define WM8993_CLK_256K_DIV_WIDTH                    6  /* CLK_256K_DIV - [6:1] */
1614 #define WM8993_SR_MODE                          0x0001  /* SR_MODE */
1615 #define WM8993_SR_MODE_MASK                     0x0001  /* SR_MODE */
1616 #define WM8993_SR_MODE_SHIFT                         0  /* SR_MODE */
1617 #define WM8993_SR_MODE_WIDTH                         1  /* SR_MODE */
1618 
1619 /*
1620  * R67 (0x43) - MW Slave Control
1621  */
1622 #define WM8993_MASK_WRITE_ENA                   0x0001  /* MASK_WRITE_ENA */
1623 #define WM8993_MASK_WRITE_ENA_MASK              0x0001  /* MASK_WRITE_ENA */
1624 #define WM8993_MASK_WRITE_ENA_SHIFT                  0  /* MASK_WRITE_ENA */
1625 #define WM8993_MASK_WRITE_ENA_WIDTH                  1  /* MASK_WRITE_ENA */
1626 
1627 /*
1628  * R69 (0x45) - Bus Control 1
1629  */
1630 #define WM8993_CLK_SYS_ENA                      0x0002  /* CLK_SYS_ENA */
1631 #define WM8993_CLK_SYS_ENA_MASK                 0x0002  /* CLK_SYS_ENA */
1632 #define WM8993_CLK_SYS_ENA_SHIFT                     1  /* CLK_SYS_ENA */
1633 #define WM8993_CLK_SYS_ENA_WIDTH                     1  /* CLK_SYS_ENA */
1634 
1635 /*
1636  * R70 (0x46) - Write Sequencer 0
1637  */
1638 #define WM8993_WSEQ_ENA                         0x0100  /* WSEQ_ENA */
1639 #define WM8993_WSEQ_ENA_MASK                    0x0100  /* WSEQ_ENA */
1640 #define WM8993_WSEQ_ENA_SHIFT                        8  /* WSEQ_ENA */
1641 #define WM8993_WSEQ_ENA_WIDTH                        1  /* WSEQ_ENA */
1642 #define WM8993_WSEQ_WRITE_INDEX_MASK            0x001F  /* WSEQ_WRITE_INDEX - [4:0] */
1643 #define WM8993_WSEQ_WRITE_INDEX_SHIFT                0  /* WSEQ_WRITE_INDEX - [4:0] */
1644 #define WM8993_WSEQ_WRITE_INDEX_WIDTH                5  /* WSEQ_WRITE_INDEX - [4:0] */
1645 
1646 /*
1647  * R71 (0x47) - Write Sequencer 1
1648  */
1649 #define WM8993_WSEQ_DATA_WIDTH_MASK             0x7000  /* WSEQ_DATA_WIDTH - [14:12] */
1650 #define WM8993_WSEQ_DATA_WIDTH_SHIFT                12  /* WSEQ_DATA_WIDTH - [14:12] */
1651 #define WM8993_WSEQ_DATA_WIDTH_WIDTH                 3  /* WSEQ_DATA_WIDTH - [14:12] */
1652 #define WM8993_WSEQ_DATA_START_MASK             0x0F00  /* WSEQ_DATA_START - [11:8] */
1653 #define WM8993_WSEQ_DATA_START_SHIFT                 8  /* WSEQ_DATA_START - [11:8] */
1654 #define WM8993_WSEQ_DATA_START_WIDTH                 4  /* WSEQ_DATA_START - [11:8] */
1655 #define WM8993_WSEQ_ADDR_MASK                   0x00FF  /* WSEQ_ADDR - [7:0] */
1656 #define WM8993_WSEQ_ADDR_SHIFT                       0  /* WSEQ_ADDR - [7:0] */
1657 #define WM8993_WSEQ_ADDR_WIDTH                       8  /* WSEQ_ADDR - [7:0] */
1658 
1659 /*
1660  * R72 (0x48) - Write Sequencer 2
1661  */
1662 #define WM8993_WSEQ_EOS                         0x4000  /* WSEQ_EOS */
1663 #define WM8993_WSEQ_EOS_MASK                    0x4000  /* WSEQ_EOS */
1664 #define WM8993_WSEQ_EOS_SHIFT                       14  /* WSEQ_EOS */
1665 #define WM8993_WSEQ_EOS_WIDTH                        1  /* WSEQ_EOS */
1666 #define WM8993_WSEQ_DELAY_MASK                  0x0F00  /* WSEQ_DELAY - [11:8] */
1667 #define WM8993_WSEQ_DELAY_SHIFT                      8  /* WSEQ_DELAY - [11:8] */
1668 #define WM8993_WSEQ_DELAY_WIDTH                      4  /* WSEQ_DELAY - [11:8] */
1669 #define WM8993_WSEQ_DATA_MASK                   0x00FF  /* WSEQ_DATA - [7:0] */
1670 #define WM8993_WSEQ_DATA_SHIFT                       0  /* WSEQ_DATA - [7:0] */
1671 #define WM8993_WSEQ_DATA_WIDTH                       8  /* WSEQ_DATA - [7:0] */
1672 
1673 /*
1674  * R73 (0x49) - Write Sequencer 3
1675  */
1676 #define WM8993_WSEQ_ABORT                       0x0200  /* WSEQ_ABORT */
1677 #define WM8993_WSEQ_ABORT_MASK                  0x0200  /* WSEQ_ABORT */
1678 #define WM8993_WSEQ_ABORT_SHIFT                      9  /* WSEQ_ABORT */
1679 #define WM8993_WSEQ_ABORT_WIDTH                      1  /* WSEQ_ABORT */
1680 #define WM8993_WSEQ_START                       0x0100  /* WSEQ_START */
1681 #define WM8993_WSEQ_START_MASK                  0x0100  /* WSEQ_START */
1682 #define WM8993_WSEQ_START_SHIFT                      8  /* WSEQ_START */
1683 #define WM8993_WSEQ_START_WIDTH                      1  /* WSEQ_START */
1684 #define WM8993_WSEQ_START_INDEX_MASK            0x003F  /* WSEQ_START_INDEX - [5:0] */
1685 #define WM8993_WSEQ_START_INDEX_SHIFT                0  /* WSEQ_START_INDEX - [5:0] */
1686 #define WM8993_WSEQ_START_INDEX_WIDTH                6  /* WSEQ_START_INDEX - [5:0] */
1687 
1688 /*
1689  * R74 (0x4A) - Write Sequencer 4
1690  */
1691 #define WM8993_WSEQ_BUSY                        0x0001  /* WSEQ_BUSY */
1692 #define WM8993_WSEQ_BUSY_MASK                   0x0001  /* WSEQ_BUSY */
1693 #define WM8993_WSEQ_BUSY_SHIFT                       0  /* WSEQ_BUSY */
1694 #define WM8993_WSEQ_BUSY_WIDTH                       1  /* WSEQ_BUSY */
1695 
1696 /*
1697  * R75 (0x4B) - Write Sequencer 5
1698  */
1699 #define WM8993_WSEQ_CURRENT_INDEX_MASK          0x003F  /* WSEQ_CURRENT_INDEX - [5:0] */
1700 #define WM8993_WSEQ_CURRENT_INDEX_SHIFT              0  /* WSEQ_CURRENT_INDEX - [5:0] */
1701 #define WM8993_WSEQ_CURRENT_INDEX_WIDTH              6  /* WSEQ_CURRENT_INDEX - [5:0] */
1702 
1703 /*
1704  * R76 (0x4C) - Charge Pump 1
1705  */
1706 #define WM8993_CP_ENA                           0x8000  /* CP_ENA */
1707 #define WM8993_CP_ENA_MASK                      0x8000  /* CP_ENA */
1708 #define WM8993_CP_ENA_SHIFT                         15  /* CP_ENA */
1709 #define WM8993_CP_ENA_WIDTH                          1  /* CP_ENA */
1710 
1711 /*
1712  * R81 (0x51) - Class W 0
1713  */
1714 #define WM8993_CP_DYN_FREQ                      0x0002  /* CP_DYN_FREQ */
1715 #define WM8993_CP_DYN_FREQ_MASK                 0x0002  /* CP_DYN_FREQ */
1716 #define WM8993_CP_DYN_FREQ_SHIFT                     1  /* CP_DYN_FREQ */
1717 #define WM8993_CP_DYN_FREQ_WIDTH                     1  /* CP_DYN_FREQ */
1718 #define WM8993_CP_DYN_V                         0x0001  /* CP_DYN_V */
1719 #define WM8993_CP_DYN_V_MASK                    0x0001  /* CP_DYN_V */
1720 #define WM8993_CP_DYN_V_SHIFT                        0  /* CP_DYN_V */
1721 #define WM8993_CP_DYN_V_WIDTH                        1  /* CP_DYN_V */
1722 
1723 /*
1724  * R84 (0x54) - DC Servo 0
1725  */
1726 #define WM8993_DCS_TRIG_SINGLE_1                0x2000  /* DCS_TRIG_SINGLE_1 */
1727 #define WM8993_DCS_TRIG_SINGLE_1_MASK           0x2000  /* DCS_TRIG_SINGLE_1 */
1728 #define WM8993_DCS_TRIG_SINGLE_1_SHIFT              13  /* DCS_TRIG_SINGLE_1 */
1729 #define WM8993_DCS_TRIG_SINGLE_1_WIDTH               1  /* DCS_TRIG_SINGLE_1 */
1730 #define WM8993_DCS_TRIG_SINGLE_0                0x1000  /* DCS_TRIG_SINGLE_0 */
1731 #define WM8993_DCS_TRIG_SINGLE_0_MASK           0x1000  /* DCS_TRIG_SINGLE_0 */
1732 #define WM8993_DCS_TRIG_SINGLE_0_SHIFT              12  /* DCS_TRIG_SINGLE_0 */
1733 #define WM8993_DCS_TRIG_SINGLE_0_WIDTH               1  /* DCS_TRIG_SINGLE_0 */
1734 #define WM8993_DCS_TRIG_SERIES_1                0x0200  /* DCS_TRIG_SERIES_1 */
1735 #define WM8993_DCS_TRIG_SERIES_1_MASK           0x0200  /* DCS_TRIG_SERIES_1 */
1736 #define WM8993_DCS_TRIG_SERIES_1_SHIFT               9  /* DCS_TRIG_SERIES_1 */
1737 #define WM8993_DCS_TRIG_SERIES_1_WIDTH               1  /* DCS_TRIG_SERIES_1 */
1738 #define WM8993_DCS_TRIG_SERIES_0                0x0100  /* DCS_TRIG_SERIES_0 */
1739 #define WM8993_DCS_TRIG_SERIES_0_MASK           0x0100  /* DCS_TRIG_SERIES_0 */
1740 #define WM8993_DCS_TRIG_SERIES_0_SHIFT               8  /* DCS_TRIG_SERIES_0 */
1741 #define WM8993_DCS_TRIG_SERIES_0_WIDTH               1  /* DCS_TRIG_SERIES_0 */
1742 #define WM8993_DCS_TRIG_STARTUP_1               0x0020  /* DCS_TRIG_STARTUP_1 */
1743 #define WM8993_DCS_TRIG_STARTUP_1_MASK          0x0020  /* DCS_TRIG_STARTUP_1 */
1744 #define WM8993_DCS_TRIG_STARTUP_1_SHIFT              5  /* DCS_TRIG_STARTUP_1 */
1745 #define WM8993_DCS_TRIG_STARTUP_1_WIDTH              1  /* DCS_TRIG_STARTUP_1 */
1746 #define WM8993_DCS_TRIG_STARTUP_0               0x0010  /* DCS_TRIG_STARTUP_0 */
1747 #define WM8993_DCS_TRIG_STARTUP_0_MASK          0x0010  /* DCS_TRIG_STARTUP_0 */
1748 #define WM8993_DCS_TRIG_STARTUP_0_SHIFT              4  /* DCS_TRIG_STARTUP_0 */
1749 #define WM8993_DCS_TRIG_STARTUP_0_WIDTH              1  /* DCS_TRIG_STARTUP_0 */
1750 #define WM8993_DCS_TRIG_DAC_WR_1                0x0008  /* DCS_TRIG_DAC_WR_1 */
1751 #define WM8993_DCS_TRIG_DAC_WR_1_MASK           0x0008  /* DCS_TRIG_DAC_WR_1 */
1752 #define WM8993_DCS_TRIG_DAC_WR_1_SHIFT               3  /* DCS_TRIG_DAC_WR_1 */
1753 #define WM8993_DCS_TRIG_DAC_WR_1_WIDTH               1  /* DCS_TRIG_DAC_WR_1 */
1754 #define WM8993_DCS_TRIG_DAC_WR_0                0x0004  /* DCS_TRIG_DAC_WR_0 */
1755 #define WM8993_DCS_TRIG_DAC_WR_0_MASK           0x0004  /* DCS_TRIG_DAC_WR_0 */
1756 #define WM8993_DCS_TRIG_DAC_WR_0_SHIFT               2  /* DCS_TRIG_DAC_WR_0 */
1757 #define WM8993_DCS_TRIG_DAC_WR_0_WIDTH               1  /* DCS_TRIG_DAC_WR_0 */
1758 #define WM8993_DCS_ENA_CHAN_1                   0x0002  /* DCS_ENA_CHAN_1 */
1759 #define WM8993_DCS_ENA_CHAN_1_MASK              0x0002  /* DCS_ENA_CHAN_1 */
1760 #define WM8993_DCS_ENA_CHAN_1_SHIFT                  1  /* DCS_ENA_CHAN_1 */
1761 #define WM8993_DCS_ENA_CHAN_1_WIDTH                  1  /* DCS_ENA_CHAN_1 */
1762 #define WM8993_DCS_ENA_CHAN_0                   0x0001  /* DCS_ENA_CHAN_0 */
1763 #define WM8993_DCS_ENA_CHAN_0_MASK              0x0001  /* DCS_ENA_CHAN_0 */
1764 #define WM8993_DCS_ENA_CHAN_0_SHIFT                  0  /* DCS_ENA_CHAN_0 */
1765 #define WM8993_DCS_ENA_CHAN_0_WIDTH                  1  /* DCS_ENA_CHAN_0 */
1766 
1767 /*
1768  * R85 (0x55) - DC Servo 1
1769  */
1770 #define WM8993_DCS_SERIES_NO_01_MASK            0x0FE0  /* DCS_SERIES_NO_01 - [11:5] */
1771 #define WM8993_DCS_SERIES_NO_01_SHIFT                5  /* DCS_SERIES_NO_01 - [11:5] */
1772 #define WM8993_DCS_SERIES_NO_01_WIDTH                7  /* DCS_SERIES_NO_01 - [11:5] */
1773 #define WM8993_DCS_TIMER_PERIOD_01_MASK         0x000F  /* DCS_TIMER_PERIOD_01 - [3:0] */
1774 #define WM8993_DCS_TIMER_PERIOD_01_SHIFT             0  /* DCS_TIMER_PERIOD_01 - [3:0] */
1775 #define WM8993_DCS_TIMER_PERIOD_01_WIDTH             4  /* DCS_TIMER_PERIOD_01 - [3:0] */
1776 
1777 /*
1778  * R87 (0x57) - DC Servo 3
1779  */
1780 #define WM8993_DCS_DAC_WR_VAL_1_MASK            0xFF00  /* DCS_DAC_WR_VAL_1 - [15:8] */
1781 #define WM8993_DCS_DAC_WR_VAL_1_SHIFT                8  /* DCS_DAC_WR_VAL_1 - [15:8] */
1782 #define WM8993_DCS_DAC_WR_VAL_1_WIDTH                8  /* DCS_DAC_WR_VAL_1 - [15:8] */
1783 #define WM8993_DCS_DAC_WR_VAL_0_MASK            0x00FF  /* DCS_DAC_WR_VAL_0 - [7:0] */
1784 #define WM8993_DCS_DAC_WR_VAL_0_SHIFT                0  /* DCS_DAC_WR_VAL_0 - [7:0] */
1785 #define WM8993_DCS_DAC_WR_VAL_0_WIDTH                8  /* DCS_DAC_WR_VAL_0 - [7:0] */
1786 
1787 /*
1788  * R88 (0x58) - DC Servo Readback 0
1789  */
1790 #define WM8993_DCS_DATAPATH_BUSY                0x4000  /* DCS_DATAPATH_BUSY */
1791 #define WM8993_DCS_DATAPATH_BUSY_MASK           0x4000  /* DCS_DATAPATH_BUSY */
1792 #define WM8993_DCS_DATAPATH_BUSY_SHIFT              14  /* DCS_DATAPATH_BUSY */
1793 #define WM8993_DCS_DATAPATH_BUSY_WIDTH               1  /* DCS_DATAPATH_BUSY */
1794 #define WM8993_DCS_CHANNEL_MASK                 0x3000  /* DCS_CHANNEL - [13:12] */
1795 #define WM8993_DCS_CHANNEL_SHIFT                    12  /* DCS_CHANNEL - [13:12] */
1796 #define WM8993_DCS_CHANNEL_WIDTH                     2  /* DCS_CHANNEL - [13:12] */
1797 #define WM8993_DCS_CAL_COMPLETE_MASK            0x0300  /* DCS_CAL_COMPLETE - [9:8] */
1798 #define WM8993_DCS_CAL_COMPLETE_SHIFT                8  /* DCS_CAL_COMPLETE - [9:8] */
1799 #define WM8993_DCS_CAL_COMPLETE_WIDTH                2  /* DCS_CAL_COMPLETE - [9:8] */
1800 #define WM8993_DCS_DAC_WR_COMPLETE_MASK         0x0030  /* DCS_DAC_WR_COMPLETE - [5:4] */
1801 #define WM8993_DCS_DAC_WR_COMPLETE_SHIFT             4  /* DCS_DAC_WR_COMPLETE - [5:4] */
1802 #define WM8993_DCS_DAC_WR_COMPLETE_WIDTH             2  /* DCS_DAC_WR_COMPLETE - [5:4] */
1803 #define WM8993_DCS_STARTUP_COMPLETE_MASK        0x0003  /* DCS_STARTUP_COMPLETE - [1:0] */
1804 #define WM8993_DCS_STARTUP_COMPLETE_SHIFT            0  /* DCS_STARTUP_COMPLETE - [1:0] */
1805 #define WM8993_DCS_STARTUP_COMPLETE_WIDTH            2  /* DCS_STARTUP_COMPLETE - [1:0] */
1806 
1807 /*
1808  * R89 (0x59) - DC Servo Readback 1
1809  */
1810 #define WM8993_DCS_INTEG_CHAN_1_MASK            0x00FF  /* DCS_INTEG_CHAN_1 - [7:0] */
1811 #define WM8993_DCS_INTEG_CHAN_1_SHIFT                0  /* DCS_INTEG_CHAN_1 - [7:0] */
1812 #define WM8993_DCS_INTEG_CHAN_1_WIDTH                8  /* DCS_INTEG_CHAN_1 - [7:0] */
1813 
1814 /*
1815  * R90 (0x5A) - DC Servo Readback 2
1816  */
1817 #define WM8993_DCS_INTEG_CHAN_0_MASK            0x00FF  /* DCS_INTEG_CHAN_0 - [7:0] */
1818 #define WM8993_DCS_INTEG_CHAN_0_SHIFT                0  /* DCS_INTEG_CHAN_0 - [7:0] */
1819 #define WM8993_DCS_INTEG_CHAN_0_WIDTH                8  /* DCS_INTEG_CHAN_0 - [7:0] */
1820 
1821 /*
1822  * R96 (0x60) - Analogue HP 0
1823  */
1824 #define WM8993_HPOUT1_AUTO_PU                   0x0100  /* HPOUT1_AUTO_PU */
1825 #define WM8993_HPOUT1_AUTO_PU_MASK              0x0100  /* HPOUT1_AUTO_PU */
1826 #define WM8993_HPOUT1_AUTO_PU_SHIFT                  8  /* HPOUT1_AUTO_PU */
1827 #define WM8993_HPOUT1_AUTO_PU_WIDTH                  1  /* HPOUT1_AUTO_PU */
1828 #define WM8993_HPOUT1L_RMV_SHORT                0x0080  /* HPOUT1L_RMV_SHORT */
1829 #define WM8993_HPOUT1L_RMV_SHORT_MASK           0x0080  /* HPOUT1L_RMV_SHORT */
1830 #define WM8993_HPOUT1L_RMV_SHORT_SHIFT               7  /* HPOUT1L_RMV_SHORT */
1831 #define WM8993_HPOUT1L_RMV_SHORT_WIDTH               1  /* HPOUT1L_RMV_SHORT */
1832 #define WM8993_HPOUT1L_OUTP                     0x0040  /* HPOUT1L_OUTP */
1833 #define WM8993_HPOUT1L_OUTP_MASK                0x0040  /* HPOUT1L_OUTP */
1834 #define WM8993_HPOUT1L_OUTP_SHIFT                    6  /* HPOUT1L_OUTP */
1835 #define WM8993_HPOUT1L_OUTP_WIDTH                    1  /* HPOUT1L_OUTP */
1836 #define WM8993_HPOUT1L_DLY                      0x0020  /* HPOUT1L_DLY */
1837 #define WM8993_HPOUT1L_DLY_MASK                 0x0020  /* HPOUT1L_DLY */
1838 #define WM8993_HPOUT1L_DLY_SHIFT                     5  /* HPOUT1L_DLY */
1839 #define WM8993_HPOUT1L_DLY_WIDTH                     1  /* HPOUT1L_DLY */
1840 #define WM8993_HPOUT1R_RMV_SHORT                0x0008  /* HPOUT1R_RMV_SHORT */
1841 #define WM8993_HPOUT1R_RMV_SHORT_MASK           0x0008  /* HPOUT1R_RMV_SHORT */
1842 #define WM8993_HPOUT1R_RMV_SHORT_SHIFT               3  /* HPOUT1R_RMV_SHORT */
1843 #define WM8993_HPOUT1R_RMV_SHORT_WIDTH               1  /* HPOUT1R_RMV_SHORT */
1844 #define WM8993_HPOUT1R_OUTP                     0x0004  /* HPOUT1R_OUTP */
1845 #define WM8993_HPOUT1R_OUTP_MASK                0x0004  /* HPOUT1R_OUTP */
1846 #define WM8993_HPOUT1R_OUTP_SHIFT                    2  /* HPOUT1R_OUTP */
1847 #define WM8993_HPOUT1R_OUTP_WIDTH                    1  /* HPOUT1R_OUTP */
1848 #define WM8993_HPOUT1R_DLY                      0x0002  /* HPOUT1R_DLY */
1849 #define WM8993_HPOUT1R_DLY_MASK                 0x0002  /* HPOUT1R_DLY */
1850 #define WM8993_HPOUT1R_DLY_SHIFT                     1  /* HPOUT1R_DLY */
1851 #define WM8993_HPOUT1R_DLY_WIDTH                     1  /* HPOUT1R_DLY */
1852 
1853 /*
1854  * R98 (0x62) - EQ1
1855  */
1856 #define WM8993_EQ_ENA                           0x0001  /* EQ_ENA */
1857 #define WM8993_EQ_ENA_MASK                      0x0001  /* EQ_ENA */
1858 #define WM8993_EQ_ENA_SHIFT                          0  /* EQ_ENA */
1859 #define WM8993_EQ_ENA_WIDTH                          1  /* EQ_ENA */
1860 
1861 /*
1862  * R99 (0x63) - EQ2
1863  */
1864 #define WM8993_EQ_B1_GAIN_MASK                  0x001F  /* EQ_B1_GAIN - [4:0] */
1865 #define WM8993_EQ_B1_GAIN_SHIFT                      0  /* EQ_B1_GAIN - [4:0] */
1866 #define WM8993_EQ_B1_GAIN_WIDTH                      5  /* EQ_B1_GAIN - [4:0] */
1867 
1868 /*
1869  * R100 (0x64) - EQ3
1870  */
1871 #define WM8993_EQ_B2_GAIN_MASK                  0x001F  /* EQ_B2_GAIN - [4:0] */
1872 #define WM8993_EQ_B2_GAIN_SHIFT                      0  /* EQ_B2_GAIN - [4:0] */
1873 #define WM8993_EQ_B2_GAIN_WIDTH                      5  /* EQ_B2_GAIN - [4:0] */
1874 
1875 /*
1876  * R101 (0x65) - EQ4
1877  */
1878 #define WM8993_EQ_B3_GAIN_MASK                  0x001F  /* EQ_B3_GAIN - [4:0] */
1879 #define WM8993_EQ_B3_GAIN_SHIFT                      0  /* EQ_B3_GAIN - [4:0] */
1880 #define WM8993_EQ_B3_GAIN_WIDTH                      5  /* EQ_B3_GAIN - [4:0] */
1881 
1882 /*
1883  * R102 (0x66) - EQ5
1884  */
1885 #define WM8993_EQ_B4_GAIN_MASK                  0x001F  /* EQ_B4_GAIN - [4:0] */
1886 #define WM8993_EQ_B4_GAIN_SHIFT                      0  /* EQ_B4_GAIN - [4:0] */
1887 #define WM8993_EQ_B4_GAIN_WIDTH                      5  /* EQ_B4_GAIN - [4:0] */
1888 
1889 /*
1890  * R103 (0x67) - EQ6
1891  */
1892 #define WM8993_EQ_B5_GAIN_MASK                  0x001F  /* EQ_B5_GAIN - [4:0] */
1893 #define WM8993_EQ_B5_GAIN_SHIFT                      0  /* EQ_B5_GAIN - [4:0] */
1894 #define WM8993_EQ_B5_GAIN_WIDTH                      5  /* EQ_B5_GAIN - [4:0] */
1895 
1896 /*
1897  * R104 (0x68) - EQ7
1898  */
1899 #define WM8993_EQ_B1_A_MASK                     0xFFFF  /* EQ_B1_A - [15:0] */
1900 #define WM8993_EQ_B1_A_SHIFT                         0  /* EQ_B1_A - [15:0] */
1901 #define WM8993_EQ_B1_A_WIDTH                        16  /* EQ_B1_A - [15:0] */
1902 
1903 /*
1904  * R105 (0x69) - EQ8
1905  */
1906 #define WM8993_EQ_B1_B_MASK                     0xFFFF  /* EQ_B1_B - [15:0] */
1907 #define WM8993_EQ_B1_B_SHIFT                         0  /* EQ_B1_B - [15:0] */
1908 #define WM8993_EQ_B1_B_WIDTH                        16  /* EQ_B1_B - [15:0] */
1909 
1910 /*
1911  * R106 (0x6A) - EQ9
1912  */
1913 #define WM8993_EQ_B1_PG_MASK                    0xFFFF  /* EQ_B1_PG - [15:0] */
1914 #define WM8993_EQ_B1_PG_SHIFT                        0  /* EQ_B1_PG - [15:0] */
1915 #define WM8993_EQ_B1_PG_WIDTH                       16  /* EQ_B1_PG - [15:0] */
1916 
1917 /*
1918  * R107 (0x6B) - EQ10
1919  */
1920 #define WM8993_EQ_B2_A_MASK                     0xFFFF  /* EQ_B2_A - [15:0] */
1921 #define WM8993_EQ_B2_A_SHIFT                         0  /* EQ_B2_A - [15:0] */
1922 #define WM8993_EQ_B2_A_WIDTH                        16  /* EQ_B2_A - [15:0] */
1923 
1924 /*
1925  * R108 (0x6C) - EQ11
1926  */
1927 #define WM8993_EQ_B2_B_MASK                     0xFFFF  /* EQ_B2_B - [15:0] */
1928 #define WM8993_EQ_B2_B_SHIFT                         0  /* EQ_B2_B - [15:0] */
1929 #define WM8993_EQ_B2_B_WIDTH                        16  /* EQ_B2_B - [15:0] */
1930 
1931 /*
1932  * R109 (0x6D) - EQ12
1933  */
1934 #define WM8993_EQ_B2_C_MASK                     0xFFFF  /* EQ_B2_C - [15:0] */
1935 #define WM8993_EQ_B2_C_SHIFT                         0  /* EQ_B2_C - [15:0] */
1936 #define WM8993_EQ_B2_C_WIDTH                        16  /* EQ_B2_C - [15:0] */
1937 
1938 /*
1939  * R110 (0x6E) - EQ13
1940  */
1941 #define WM8993_EQ_B2_PG_MASK                    0xFFFF  /* EQ_B2_PG - [15:0] */
1942 #define WM8993_EQ_B2_PG_SHIFT                        0  /* EQ_B2_PG - [15:0] */
1943 #define WM8993_EQ_B2_PG_WIDTH                       16  /* EQ_B2_PG - [15:0] */
1944 
1945 /*
1946  * R111 (0x6F) - EQ14
1947  */
1948 #define WM8993_EQ_B3_A_MASK                     0xFFFF  /* EQ_B3_A - [15:0] */
1949 #define WM8993_EQ_B3_A_SHIFT                         0  /* EQ_B3_A - [15:0] */
1950 #define WM8993_EQ_B3_A_WIDTH                        16  /* EQ_B3_A - [15:0] */
1951 
1952 /*
1953  * R112 (0x70) - EQ15
1954  */
1955 #define WM8993_EQ_B3_B_MASK                     0xFFFF  /* EQ_B3_B - [15:0] */
1956 #define WM8993_EQ_B3_B_SHIFT                         0  /* EQ_B3_B - [15:0] */
1957 #define WM8993_EQ_B3_B_WIDTH                        16  /* EQ_B3_B - [15:0] */
1958 
1959 /*
1960  * R113 (0x71) - EQ16
1961  */
1962 #define WM8993_EQ_B3_C_MASK                     0xFFFF  /* EQ_B3_C - [15:0] */
1963 #define WM8993_EQ_B3_C_SHIFT                         0  /* EQ_B3_C - [15:0] */
1964 #define WM8993_EQ_B3_C_WIDTH                        16  /* EQ_B3_C - [15:0] */
1965 
1966 /*
1967  * R114 (0x72) - EQ17
1968  */
1969 #define WM8993_EQ_B3_PG_MASK                    0xFFFF  /* EQ_B3_PG - [15:0] */
1970 #define WM8993_EQ_B3_PG_SHIFT                        0  /* EQ_B3_PG - [15:0] */
1971 #define WM8993_EQ_B3_PG_WIDTH                       16  /* EQ_B3_PG - [15:0] */
1972 
1973 /*
1974  * R115 (0x73) - EQ18
1975  */
1976 #define WM8993_EQ_B4_A_MASK                     0xFFFF  /* EQ_B4_A - [15:0] */
1977 #define WM8993_EQ_B4_A_SHIFT                         0  /* EQ_B4_A - [15:0] */
1978 #define WM8993_EQ_B4_A_WIDTH                        16  /* EQ_B4_A - [15:0] */
1979 
1980 /*
1981  * R116 (0x74) - EQ19
1982  */
1983 #define WM8993_EQ_B4_B_MASK                     0xFFFF  /* EQ_B4_B - [15:0] */
1984 #define WM8993_EQ_B4_B_SHIFT                         0  /* EQ_B4_B - [15:0] */
1985 #define WM8993_EQ_B4_B_WIDTH                        16  /* EQ_B4_B - [15:0] */
1986 
1987 /*
1988  * R117 (0x75) - EQ20
1989  */
1990 #define WM8993_EQ_B4_C_MASK                     0xFFFF  /* EQ_B4_C - [15:0] */
1991 #define WM8993_EQ_B4_C_SHIFT                         0  /* EQ_B4_C - [15:0] */
1992 #define WM8993_EQ_B4_C_WIDTH                        16  /* EQ_B4_C - [15:0] */
1993 
1994 /*
1995  * R118 (0x76) - EQ21
1996  */
1997 #define WM8993_EQ_B4_PG_MASK                    0xFFFF  /* EQ_B4_PG - [15:0] */
1998 #define WM8993_EQ_B4_PG_SHIFT                        0  /* EQ_B4_PG - [15:0] */
1999 #define WM8993_EQ_B4_PG_WIDTH                       16  /* EQ_B4_PG - [15:0] */
2000 
2001 /*
2002  * R119 (0x77) - EQ22
2003  */
2004 #define WM8993_EQ_B5_A_MASK                     0xFFFF  /* EQ_B5_A - [15:0] */
2005 #define WM8993_EQ_B5_A_SHIFT                         0  /* EQ_B5_A - [15:0] */
2006 #define WM8993_EQ_B5_A_WIDTH                        16  /* EQ_B5_A - [15:0] */
2007 
2008 /*
2009  * R120 (0x78) - EQ23
2010  */
2011 #define WM8993_EQ_B5_B_MASK                     0xFFFF  /* EQ_B5_B - [15:0] */
2012 #define WM8993_EQ_B5_B_SHIFT                         0  /* EQ_B5_B - [15:0] */
2013 #define WM8993_EQ_B5_B_WIDTH                        16  /* EQ_B5_B - [15:0] */
2014 
2015 /*
2016  * R121 (0x79) - EQ24
2017  */
2018 #define WM8993_EQ_B5_PG_MASK                    0xFFFF  /* EQ_B5_PG - [15:0] */
2019 #define WM8993_EQ_B5_PG_SHIFT                        0  /* EQ_B5_PG - [15:0] */
2020 #define WM8993_EQ_B5_PG_WIDTH                       16  /* EQ_B5_PG - [15:0] */
2021 
2022 /*
2023  * R122 (0x7A) - Digital Pulls
2024  */
2025 #define WM8993_MCLK_PU                          0x0080  /* MCLK_PU */
2026 #define WM8993_MCLK_PU_MASK                     0x0080  /* MCLK_PU */
2027 #define WM8993_MCLK_PU_SHIFT                         7  /* MCLK_PU */
2028 #define WM8993_MCLK_PU_WIDTH                         1  /* MCLK_PU */
2029 #define WM8993_MCLK_PD                          0x0040  /* MCLK_PD */
2030 #define WM8993_MCLK_PD_MASK                     0x0040  /* MCLK_PD */
2031 #define WM8993_MCLK_PD_SHIFT                         6  /* MCLK_PD */
2032 #define WM8993_MCLK_PD_WIDTH                         1  /* MCLK_PD */
2033 #define WM8993_DACDAT_PU                        0x0020  /* DACDAT_PU */
2034 #define WM8993_DACDAT_PU_MASK                   0x0020  /* DACDAT_PU */
2035 #define WM8993_DACDAT_PU_SHIFT                       5  /* DACDAT_PU */
2036 #define WM8993_DACDAT_PU_WIDTH                       1  /* DACDAT_PU */
2037 #define WM8993_DACDAT_PD                        0x0010  /* DACDAT_PD */
2038 #define WM8993_DACDAT_PD_MASK                   0x0010  /* DACDAT_PD */
2039 #define WM8993_DACDAT_PD_SHIFT                       4  /* DACDAT_PD */
2040 #define WM8993_DACDAT_PD_WIDTH                       1  /* DACDAT_PD */
2041 #define WM8993_LRCLK_PU                         0x0008  /* LRCLK_PU */
2042 #define WM8993_LRCLK_PU_MASK                    0x0008  /* LRCLK_PU */
2043 #define WM8993_LRCLK_PU_SHIFT                        3  /* LRCLK_PU */
2044 #define WM8993_LRCLK_PU_WIDTH                        1  /* LRCLK_PU */
2045 #define WM8993_LRCLK_PD                         0x0004  /* LRCLK_PD */
2046 #define WM8993_LRCLK_PD_MASK                    0x0004  /* LRCLK_PD */
2047 #define WM8993_LRCLK_PD_SHIFT                        2  /* LRCLK_PD */
2048 #define WM8993_LRCLK_PD_WIDTH                        1  /* LRCLK_PD */
2049 #define WM8993_BCLK_PU                          0x0002  /* BCLK_PU */
2050 #define WM8993_BCLK_PU_MASK                     0x0002  /* BCLK_PU */
2051 #define WM8993_BCLK_PU_SHIFT                         1  /* BCLK_PU */
2052 #define WM8993_BCLK_PU_WIDTH                         1  /* BCLK_PU */
2053 #define WM8993_BCLK_PD                          0x0001  /* BCLK_PD */
2054 #define WM8993_BCLK_PD_MASK                     0x0001  /* BCLK_PD */
2055 #define WM8993_BCLK_PD_SHIFT                         0  /* BCLK_PD */
2056 #define WM8993_BCLK_PD_WIDTH                         1  /* BCLK_PD */
2057 
2058 /*
2059  * R123 (0x7B) - DRC Control 1
2060  */
2061 #define WM8993_DRC_ENA                          0x8000  /* DRC_ENA */
2062 #define WM8993_DRC_ENA_MASK                     0x8000  /* DRC_ENA */
2063 #define WM8993_DRC_ENA_SHIFT                        15  /* DRC_ENA */
2064 #define WM8993_DRC_ENA_WIDTH                         1  /* DRC_ENA */
2065 #define WM8993_DRC_DAC_PATH                     0x4000  /* DRC_DAC_PATH */
2066 #define WM8993_DRC_DAC_PATH_MASK                0x4000  /* DRC_DAC_PATH */
2067 #define WM8993_DRC_DAC_PATH_SHIFT                   14  /* DRC_DAC_PATH */
2068 #define WM8993_DRC_DAC_PATH_WIDTH                    1  /* DRC_DAC_PATH */
2069 #define WM8993_DRC_SMOOTH_ENA                   0x0800  /* DRC_SMOOTH_ENA */
2070 #define WM8993_DRC_SMOOTH_ENA_MASK              0x0800  /* DRC_SMOOTH_ENA */
2071 #define WM8993_DRC_SMOOTH_ENA_SHIFT                 11  /* DRC_SMOOTH_ENA */
2072 #define WM8993_DRC_SMOOTH_ENA_WIDTH                  1  /* DRC_SMOOTH_ENA */
2073 #define WM8993_DRC_QR_ENA                       0x0400  /* DRC_QR_ENA */
2074 #define WM8993_DRC_QR_ENA_MASK                  0x0400  /* DRC_QR_ENA */
2075 #define WM8993_DRC_QR_ENA_SHIFT                     10  /* DRC_QR_ENA */
2076 #define WM8993_DRC_QR_ENA_WIDTH                      1  /* DRC_QR_ENA */
2077 #define WM8993_DRC_ANTICLIP_ENA                 0x0200  /* DRC_ANTICLIP_ENA */
2078 #define WM8993_DRC_ANTICLIP_ENA_MASK            0x0200  /* DRC_ANTICLIP_ENA */
2079 #define WM8993_DRC_ANTICLIP_ENA_SHIFT                9  /* DRC_ANTICLIP_ENA */
2080 #define WM8993_DRC_ANTICLIP_ENA_WIDTH                1  /* DRC_ANTICLIP_ENA */
2081 #define WM8993_DRC_HYST_ENA                     0x0100  /* DRC_HYST_ENA */
2082 #define WM8993_DRC_HYST_ENA_MASK                0x0100  /* DRC_HYST_ENA */
2083 #define WM8993_DRC_HYST_ENA_SHIFT                    8  /* DRC_HYST_ENA */
2084 #define WM8993_DRC_HYST_ENA_WIDTH                    1  /* DRC_HYST_ENA */
2085 #define WM8993_DRC_THRESH_HYST_MASK             0x0030  /* DRC_THRESH_HYST - [5:4] */
2086 #define WM8993_DRC_THRESH_HYST_SHIFT                 4  /* DRC_THRESH_HYST - [5:4] */
2087 #define WM8993_DRC_THRESH_HYST_WIDTH                 2  /* DRC_THRESH_HYST - [5:4] */
2088 #define WM8993_DRC_MINGAIN_MASK                 0x000C  /* DRC_MINGAIN - [3:2] */
2089 #define WM8993_DRC_MINGAIN_SHIFT                     2  /* DRC_MINGAIN - [3:2] */
2090 #define WM8993_DRC_MINGAIN_WIDTH                     2  /* DRC_MINGAIN - [3:2] */
2091 #define WM8993_DRC_MAXGAIN_MASK                 0x0003  /* DRC_MAXGAIN - [1:0] */
2092 #define WM8993_DRC_MAXGAIN_SHIFT                     0  /* DRC_MAXGAIN - [1:0] */
2093 #define WM8993_DRC_MAXGAIN_WIDTH                     2  /* DRC_MAXGAIN - [1:0] */
2094 
2095 /*
2096  * R124 (0x7C) - DRC Control 2
2097  */
2098 #define WM8993_DRC_ATTACK_RATE_MASK             0xF000  /* DRC_ATTACK_RATE - [15:12] */
2099 #define WM8993_DRC_ATTACK_RATE_SHIFT                12  /* DRC_ATTACK_RATE - [15:12] */
2100 #define WM8993_DRC_ATTACK_RATE_WIDTH                 4  /* DRC_ATTACK_RATE - [15:12] */
2101 #define WM8993_DRC_DECAY_RATE_MASK              0x0F00  /* DRC_DECAY_RATE - [11:8] */
2102 #define WM8993_DRC_DECAY_RATE_SHIFT                  8  /* DRC_DECAY_RATE - [11:8] */
2103 #define WM8993_DRC_DECAY_RATE_WIDTH                  4  /* DRC_DECAY_RATE - [11:8] */
2104 #define WM8993_DRC_THRESH_COMP_MASK             0x00FC  /* DRC_THRESH_COMP - [7:2] */
2105 #define WM8993_DRC_THRESH_COMP_SHIFT                 2  /* DRC_THRESH_COMP - [7:2] */
2106 #define WM8993_DRC_THRESH_COMP_WIDTH                 6  /* DRC_THRESH_COMP - [7:2] */
2107 
2108 /*
2109  * R125 (0x7D) - DRC Control 3
2110  */
2111 #define WM8993_DRC_AMP_COMP_MASK                0xF800  /* DRC_AMP_COMP - [15:11] */
2112 #define WM8993_DRC_AMP_COMP_SHIFT                   11  /* DRC_AMP_COMP - [15:11] */
2113 #define WM8993_DRC_AMP_COMP_WIDTH                    5  /* DRC_AMP_COMP - [15:11] */
2114 #define WM8993_DRC_R0_SLOPE_COMP_MASK           0x0700  /* DRC_R0_SLOPE_COMP - [10:8] */
2115 #define WM8993_DRC_R0_SLOPE_COMP_SHIFT               8  /* DRC_R0_SLOPE_COMP - [10:8] */
2116 #define WM8993_DRC_R0_SLOPE_COMP_WIDTH               3  /* DRC_R0_SLOPE_COMP - [10:8] */
2117 #define WM8993_DRC_FF_DELAY                     0x0080  /* DRC_FF_DELAY */
2118 #define WM8993_DRC_FF_DELAY_MASK                0x0080  /* DRC_FF_DELAY */
2119 #define WM8993_DRC_FF_DELAY_SHIFT                    7  /* DRC_FF_DELAY */
2120 #define WM8993_DRC_FF_DELAY_WIDTH                    1  /* DRC_FF_DELAY */
2121 #define WM8993_DRC_THRESH_QR_MASK               0x000C  /* DRC_THRESH_QR - [3:2] */
2122 #define WM8993_DRC_THRESH_QR_SHIFT                   2  /* DRC_THRESH_QR - [3:2] */
2123 #define WM8993_DRC_THRESH_QR_WIDTH                   2  /* DRC_THRESH_QR - [3:2] */
2124 #define WM8993_DRC_RATE_QR_MASK                 0x0003  /* DRC_RATE_QR - [1:0] */
2125 #define WM8993_DRC_RATE_QR_SHIFT                     0  /* DRC_RATE_QR - [1:0] */
2126 #define WM8993_DRC_RATE_QR_WIDTH                     2  /* DRC_RATE_QR - [1:0] */
2127 
2128 /*
2129  * R126 (0x7E) - DRC Control 4
2130  */
2131 #define WM8993_DRC_R1_SLOPE_COMP_MASK           0xE000  /* DRC_R1_SLOPE_COMP - [15:13] */
2132 #define WM8993_DRC_R1_SLOPE_COMP_SHIFT              13  /* DRC_R1_SLOPE_COMP - [15:13] */
2133 #define WM8993_DRC_R1_SLOPE_COMP_WIDTH               3  /* DRC_R1_SLOPE_COMP - [15:13] */
2134 #define WM8993_DRC_STARTUP_GAIN_MASK            0x1F00  /* DRC_STARTUP_GAIN - [12:8] */
2135 #define WM8993_DRC_STARTUP_GAIN_SHIFT                8  /* DRC_STARTUP_GAIN - [12:8] */
2136 #define WM8993_DRC_STARTUP_GAIN_WIDTH                5  /* DRC_STARTUP_GAIN - [12:8] */
2137 
2138 #endif
2139