Go to the documentation of this file.
19 #define WM8983_SOFTWARE_RESET 0x00
20 #define WM8983_POWER_MANAGEMENT_1 0x01
21 #define WM8983_POWER_MANAGEMENT_2 0x02
22 #define WM8983_POWER_MANAGEMENT_3 0x03
23 #define WM8983_AUDIO_INTERFACE 0x04
24 #define WM8983_COMPANDING_CONTROL 0x05
25 #define WM8983_CLOCK_GEN_CONTROL 0x06
26 #define WM8983_ADDITIONAL_CONTROL 0x07
27 #define WM8983_GPIO_CONTROL 0x08
28 #define WM8983_JACK_DETECT_CONTROL_1 0x09
29 #define WM8983_DAC_CONTROL 0x0A
30 #define WM8983_LEFT_DAC_DIGITAL_VOL 0x0B
31 #define WM8983_RIGHT_DAC_DIGITAL_VOL 0x0C
32 #define WM8983_JACK_DETECT_CONTROL_2 0x0D
33 #define WM8983_ADC_CONTROL 0x0E
34 #define WM8983_LEFT_ADC_DIGITAL_VOL 0x0F
35 #define WM8983_RIGHT_ADC_DIGITAL_VOL 0x10
36 #define WM8983_EQ1_LOW_SHELF 0x12
37 #define WM8983_EQ2_PEAK_1 0x13
38 #define WM8983_EQ3_PEAK_2 0x14
39 #define WM8983_EQ4_PEAK_3 0x15
40 #define WM8983_EQ5_HIGH_SHELF 0x16
41 #define WM8983_DAC_LIMITER_1 0x18
42 #define WM8983_DAC_LIMITER_2 0x19
43 #define WM8983_NOTCH_FILTER_1 0x1B
44 #define WM8983_NOTCH_FILTER_2 0x1C
45 #define WM8983_NOTCH_FILTER_3 0x1D
46 #define WM8983_NOTCH_FILTER_4 0x1E
47 #define WM8983_ALC_CONTROL_1 0x20
48 #define WM8983_ALC_CONTROL_2 0x21
49 #define WM8983_ALC_CONTROL_3 0x22
50 #define WM8983_NOISE_GATE 0x23
51 #define WM8983_PLL_N 0x24
52 #define WM8983_PLL_K_1 0x25
53 #define WM8983_PLL_K_2 0x26
54 #define WM8983_PLL_K_3 0x27
55 #define WM8983_3D_CONTROL 0x29
56 #define WM8983_OUT4_TO_ADC 0x2A
57 #define WM8983_BEEP_CONTROL 0x2B
58 #define WM8983_INPUT_CTRL 0x2C
59 #define WM8983_LEFT_INP_PGA_GAIN_CTRL 0x2D
60 #define WM8983_RIGHT_INP_PGA_GAIN_CTRL 0x2E
61 #define WM8983_LEFT_ADC_BOOST_CTRL 0x2F
62 #define WM8983_RIGHT_ADC_BOOST_CTRL 0x30
63 #define WM8983_OUTPUT_CTRL 0x31
64 #define WM8983_LEFT_MIXER_CTRL 0x32
65 #define WM8983_RIGHT_MIXER_CTRL 0x33
66 #define WM8983_LOUT1_HP_VOLUME_CTRL 0x34
67 #define WM8983_ROUT1_HP_VOLUME_CTRL 0x35
68 #define WM8983_LOUT2_SPK_VOLUME_CTRL 0x36
69 #define WM8983_ROUT2_SPK_VOLUME_CTRL 0x37
70 #define WM8983_OUT3_MIXER_CTRL 0x38
71 #define WM8983_OUT4_MONO_MIX_CTRL 0x39
72 #define WM8983_BIAS_CTRL 0x3D
74 #define WM8983_REGISTER_COUNT 59
75 #define WM8983_MAX_REGISTER 0x3F
84 #define WM8983_SOFTWARE_RESET_MASK 0x01FF
85 #define WM8983_SOFTWARE_RESET_SHIFT 0
86 #define WM8983_SOFTWARE_RESET_WIDTH 9
91 #define WM8983_BUFDCOPEN 0x0100
92 #define WM8983_BUFDCOPEN_MASK 0x0100
93 #define WM8983_BUFDCOPEN_SHIFT 8
94 #define WM8983_BUFDCOPEN_WIDTH 1
95 #define WM8983_OUT4MIXEN 0x0080
96 #define WM8983_OUT4MIXEN_MASK 0x0080
97 #define WM8983_OUT4MIXEN_SHIFT 7
98 #define WM8983_OUT4MIXEN_WIDTH 1
99 #define WM8983_OUT3MIXEN 0x0040
100 #define WM8983_OUT3MIXEN_MASK 0x0040
101 #define WM8983_OUT3MIXEN_SHIFT 6
102 #define WM8983_OUT3MIXEN_WIDTH 1
103 #define WM8983_PLLEN 0x0020
104 #define WM8983_PLLEN_MASK 0x0020
105 #define WM8983_PLLEN_SHIFT 5
106 #define WM8983_PLLEN_WIDTH 1
107 #define WM8983_MICBEN 0x0010
108 #define WM8983_MICBEN_MASK 0x0010
109 #define WM8983_MICBEN_SHIFT 4
110 #define WM8983_MICBEN_WIDTH 1
111 #define WM8983_BIASEN 0x0008
112 #define WM8983_BIASEN_MASK 0x0008
113 #define WM8983_BIASEN_SHIFT 3
114 #define WM8983_BIASEN_WIDTH 1
115 #define WM8983_BUFIOEN 0x0004
116 #define WM8983_BUFIOEN_MASK 0x0004
117 #define WM8983_BUFIOEN_SHIFT 2
118 #define WM8983_BUFIOEN_WIDTH 1
119 #define WM8983_VMIDSEL_MASK 0x0003
120 #define WM8983_VMIDSEL_SHIFT 0
121 #define WM8983_VMIDSEL_WIDTH 2
126 #define WM8983_ROUT1EN 0x0100
127 #define WM8983_ROUT1EN_MASK 0x0100
128 #define WM8983_ROUT1EN_SHIFT 8
129 #define WM8983_ROUT1EN_WIDTH 1
130 #define WM8983_LOUT1EN 0x0080
131 #define WM8983_LOUT1EN_MASK 0x0080
132 #define WM8983_LOUT1EN_SHIFT 7
133 #define WM8983_LOUT1EN_WIDTH 1
134 #define WM8983_SLEEP 0x0040
135 #define WM8983_SLEEP_MASK 0x0040
136 #define WM8983_SLEEP_SHIFT 6
137 #define WM8983_SLEEP_WIDTH 1
138 #define WM8983_BOOSTENR 0x0020
139 #define WM8983_BOOSTENR_MASK 0x0020
140 #define WM8983_BOOSTENR_SHIFT 5
141 #define WM8983_BOOSTENR_WIDTH 1
142 #define WM8983_BOOSTENL 0x0010
143 #define WM8983_BOOSTENL_MASK 0x0010
144 #define WM8983_BOOSTENL_SHIFT 4
145 #define WM8983_BOOSTENL_WIDTH 1
146 #define WM8983_INPGAENR 0x0008
147 #define WM8983_INPGAENR_MASK 0x0008
148 #define WM8983_INPGAENR_SHIFT 3
149 #define WM8983_INPGAENR_WIDTH 1
150 #define WM8983_INPPGAENL 0x0004
151 #define WM8983_INPPGAENL_MASK 0x0004
152 #define WM8983_INPPGAENL_SHIFT 2
153 #define WM8983_INPPGAENL_WIDTH 1
154 #define WM8983_ADCENR 0x0002
155 #define WM8983_ADCENR_MASK 0x0002
156 #define WM8983_ADCENR_SHIFT 1
157 #define WM8983_ADCENR_WIDTH 1
158 #define WM8983_ADCENL 0x0001
159 #define WM8983_ADCENL_MASK 0x0001
160 #define WM8983_ADCENL_SHIFT 0
161 #define WM8983_ADCENL_WIDTH 1
166 #define WM8983_OUT4EN 0x0100
167 #define WM8983_OUT4EN_MASK 0x0100
168 #define WM8983_OUT4EN_SHIFT 8
169 #define WM8983_OUT4EN_WIDTH 1
170 #define WM8983_OUT3EN 0x0080
171 #define WM8983_OUT3EN_MASK 0x0080
172 #define WM8983_OUT3EN_SHIFT 7
173 #define WM8983_OUT3EN_WIDTH 1
174 #define WM8983_LOUT2EN 0x0040
175 #define WM8983_LOUT2EN_MASK 0x0040
176 #define WM8983_LOUT2EN_SHIFT 6
177 #define WM8983_LOUT2EN_WIDTH 1
178 #define WM8983_ROUT2EN 0x0020
179 #define WM8983_ROUT2EN_MASK 0x0020
180 #define WM8983_ROUT2EN_SHIFT 5
181 #define WM8983_ROUT2EN_WIDTH 1
182 #define WM8983_RMIXEN 0x0008
183 #define WM8983_RMIXEN_MASK 0x0008
184 #define WM8983_RMIXEN_SHIFT 3
185 #define WM8983_RMIXEN_WIDTH 1
186 #define WM8983_LMIXEN 0x0004
187 #define WM8983_LMIXEN_MASK 0x0004
188 #define WM8983_LMIXEN_SHIFT 2
189 #define WM8983_LMIXEN_WIDTH 1
190 #define WM8983_DACENR 0x0002
191 #define WM8983_DACENR_MASK 0x0002
192 #define WM8983_DACENR_SHIFT 1
193 #define WM8983_DACENR_WIDTH 1
194 #define WM8983_DACENL 0x0001
195 #define WM8983_DACENL_MASK 0x0001
196 #define WM8983_DACENL_SHIFT 0
197 #define WM8983_DACENL_WIDTH 1
202 #define WM8983_BCP 0x0100
203 #define WM8983_BCP_MASK 0x0100
204 #define WM8983_BCP_SHIFT 8
205 #define WM8983_BCP_WIDTH 1
206 #define WM8983_LRCP 0x0080
207 #define WM8983_LRCP_MASK 0x0080
208 #define WM8983_LRCP_SHIFT 7
209 #define WM8983_LRCP_WIDTH 1
210 #define WM8983_WL_MASK 0x0060
211 #define WM8983_WL_SHIFT 5
212 #define WM8983_WL_WIDTH 2
213 #define WM8983_FMT_MASK 0x0018
214 #define WM8983_FMT_SHIFT 3
215 #define WM8983_FMT_WIDTH 2
216 #define WM8983_DLRSWAP 0x0004
217 #define WM8983_DLRSWAP_MASK 0x0004
218 #define WM8983_DLRSWAP_SHIFT 2
219 #define WM8983_DLRSWAP_WIDTH 1
220 #define WM8983_ALRSWAP 0x0002
221 #define WM8983_ALRSWAP_MASK 0x0002
222 #define WM8983_ALRSWAP_SHIFT 1
223 #define WM8983_ALRSWAP_WIDTH 1
224 #define WM8983_MONO 0x0001
225 #define WM8983_MONO_MASK 0x0001
226 #define WM8983_MONO_SHIFT 0
227 #define WM8983_MONO_WIDTH 1
232 #define WM8983_WL8 0x0020
233 #define WM8983_WL8_MASK 0x0020
234 #define WM8983_WL8_SHIFT 5
235 #define WM8983_WL8_WIDTH 1
236 #define WM8983_DAC_COMP_MASK 0x0018
237 #define WM8983_DAC_COMP_SHIFT 3
238 #define WM8983_DAC_COMP_WIDTH 2
239 #define WM8983_ADC_COMP_MASK 0x0006
240 #define WM8983_ADC_COMP_SHIFT 1
241 #define WM8983_ADC_COMP_WIDTH 2
242 #define WM8983_LOOPBACK 0x0001
243 #define WM8983_LOOPBACK_MASK 0x0001
244 #define WM8983_LOOPBACK_SHIFT 0
245 #define WM8983_LOOPBACK_WIDTH 1
250 #define WM8983_CLKSEL 0x0100
251 #define WM8983_CLKSEL_MASK 0x0100
252 #define WM8983_CLKSEL_SHIFT 8
253 #define WM8983_CLKSEL_WIDTH 1
254 #define WM8983_MCLKDIV_MASK 0x00E0
255 #define WM8983_MCLKDIV_SHIFT 5
256 #define WM8983_MCLKDIV_WIDTH 3
257 #define WM8983_BCLKDIV_MASK 0x001C
258 #define WM8983_BCLKDIV_SHIFT 2
259 #define WM8983_BCLKDIV_WIDTH 3
260 #define WM8983_MS 0x0001
261 #define WM8983_MS_MASK 0x0001
262 #define WM8983_MS_SHIFT 0
263 #define WM8983_MS_WIDTH 1
268 #define WM8983_SR_MASK 0x000E
269 #define WM8983_SR_SHIFT 1
270 #define WM8983_SR_WIDTH 3
271 #define WM8983_SLOWCLKEN 0x0001
272 #define WM8983_SLOWCLKEN_MASK 0x0001
273 #define WM8983_SLOWCLKEN_SHIFT 0
274 #define WM8983_SLOWCLKEN_WIDTH 1
279 #define WM8983_OPCLKDIV_MASK 0x0030
280 #define WM8983_OPCLKDIV_SHIFT 4
281 #define WM8983_OPCLKDIV_WIDTH 2
282 #define WM8983_GPIO1POL 0x0008
283 #define WM8983_GPIO1POL_MASK 0x0008
284 #define WM8983_GPIO1POL_SHIFT 3
285 #define WM8983_GPIO1POL_WIDTH 1
286 #define WM8983_GPIO1SEL_MASK 0x0007
287 #define WM8983_GPIO1SEL_SHIFT 0
288 #define WM8983_GPIO1SEL_WIDTH 3
293 #define WM8983_JD_VMID1 0x0100
294 #define WM8983_JD_VMID1_MASK 0x0100
295 #define WM8983_JD_VMID1_SHIFT 8
296 #define WM8983_JD_VMID1_WIDTH 1
297 #define WM8983_JD_VMID0 0x0080
298 #define WM8983_JD_VMID0_MASK 0x0080
299 #define WM8983_JD_VMID0_SHIFT 7
300 #define WM8983_JD_VMID0_WIDTH 1
301 #define WM8983_JD_EN 0x0040
302 #define WM8983_JD_EN_MASK 0x0040
303 #define WM8983_JD_EN_SHIFT 6
304 #define WM8983_JD_EN_WIDTH 1
305 #define WM8983_JD_SEL_MASK 0x0030
306 #define WM8983_JD_SEL_SHIFT 4
307 #define WM8983_JD_SEL_WIDTH 2
312 #define WM8983_SOFTMUTE 0x0040
313 #define WM8983_SOFTMUTE_MASK 0x0040
314 #define WM8983_SOFTMUTE_SHIFT 6
315 #define WM8983_SOFTMUTE_WIDTH 1
316 #define WM8983_DACOSR128 0x0008
317 #define WM8983_DACOSR128_MASK 0x0008
318 #define WM8983_DACOSR128_SHIFT 3
319 #define WM8983_DACOSR128_WIDTH 1
320 #define WM8983_AMUTE 0x0004
321 #define WM8983_AMUTE_MASK 0x0004
322 #define WM8983_AMUTE_SHIFT 2
323 #define WM8983_AMUTE_WIDTH 1
324 #define WM8983_DACRPOL 0x0002
325 #define WM8983_DACRPOL_MASK 0x0002
326 #define WM8983_DACRPOL_SHIFT 1
327 #define WM8983_DACRPOL_WIDTH 1
328 #define WM8983_DACLPOL 0x0001
329 #define WM8983_DACLPOL_MASK 0x0001
330 #define WM8983_DACLPOL_SHIFT 0
331 #define WM8983_DACLPOL_WIDTH 1
336 #define WM8983_DACVU 0x0100
337 #define WM8983_DACVU_MASK 0x0100
338 #define WM8983_DACVU_SHIFT 8
339 #define WM8983_DACVU_WIDTH 1
340 #define WM8983_DACLVOL_MASK 0x00FF
341 #define WM8983_DACLVOL_SHIFT 0
342 #define WM8983_DACLVOL_WIDTH 8
347 #define WM8983_DACVU 0x0100
348 #define WM8983_DACVU_MASK 0x0100
349 #define WM8983_DACVU_SHIFT 8
350 #define WM8983_DACVU_WIDTH 1
351 #define WM8983_DACRVOL_MASK 0x00FF
352 #define WM8983_DACRVOL_SHIFT 0
353 #define WM8983_DACRVOL_WIDTH 8
358 #define WM8983_JD_EN1_MASK 0x00F0
359 #define WM8983_JD_EN1_SHIFT 4
360 #define WM8983_JD_EN1_WIDTH 4
361 #define WM8983_JD_EN0_MASK 0x000F
362 #define WM8983_JD_EN0_SHIFT 0
363 #define WM8983_JD_EN0_WIDTH 4
368 #define WM8983_HPFEN 0x0100
369 #define WM8983_HPFEN_MASK 0x0100
370 #define WM8983_HPFEN_SHIFT 8
371 #define WM8983_HPFEN_WIDTH 1
372 #define WM8983_HPFAPP 0x0080
373 #define WM8983_HPFAPP_MASK 0x0080
374 #define WM8983_HPFAPP_SHIFT 7
375 #define WM8983_HPFAPP_WIDTH 1
376 #define WM8983_HPFCUT_MASK 0x0070
377 #define WM8983_HPFCUT_SHIFT 4
378 #define WM8983_HPFCUT_WIDTH 3
379 #define WM8983_ADCOSR128 0x0008
380 #define WM8983_ADCOSR128_MASK 0x0008
381 #define WM8983_ADCOSR128_SHIFT 3
382 #define WM8983_ADCOSR128_WIDTH 1
383 #define WM8983_ADCRPOL 0x0002
384 #define WM8983_ADCRPOL_MASK 0x0002
385 #define WM8983_ADCRPOL_SHIFT 1
386 #define WM8983_ADCRPOL_WIDTH 1
387 #define WM8983_ADCLPOL 0x0001
388 #define WM8983_ADCLPOL_MASK 0x0001
389 #define WM8983_ADCLPOL_SHIFT 0
390 #define WM8983_ADCLPOL_WIDTH 1
395 #define WM8983_ADCVU 0x0100
396 #define WM8983_ADCVU_MASK 0x0100
397 #define WM8983_ADCVU_SHIFT 8
398 #define WM8983_ADCVU_WIDTH 1
399 #define WM8983_ADCLVOL_MASK 0x00FF
400 #define WM8983_ADCLVOL_SHIFT 0
401 #define WM8983_ADCLVOL_WIDTH 8
406 #define WM8983_ADCVU 0x0100
407 #define WM8983_ADCVU_MASK 0x0100
408 #define WM8983_ADCVU_SHIFT 8
409 #define WM8983_ADCVU_WIDTH 1
410 #define WM8983_ADCRVOL_MASK 0x00FF
411 #define WM8983_ADCRVOL_SHIFT 0
412 #define WM8983_ADCRVOL_WIDTH 8
417 #define WM8983_EQ3DMODE 0x0100
418 #define WM8983_EQ3DMODE_MASK 0x0100
419 #define WM8983_EQ3DMODE_SHIFT 8
420 #define WM8983_EQ3DMODE_WIDTH 1
421 #define WM8983_EQ1C_MASK 0x0060
422 #define WM8983_EQ1C_SHIFT 5
423 #define WM8983_EQ1C_WIDTH 2
424 #define WM8983_EQ1G_MASK 0x001F
425 #define WM8983_EQ1G_SHIFT 0
426 #define WM8983_EQ1G_WIDTH 5
431 #define WM8983_EQ2BW 0x0100
432 #define WM8983_EQ2BW_MASK 0x0100
433 #define WM8983_EQ2BW_SHIFT 8
434 #define WM8983_EQ2BW_WIDTH 1
435 #define WM8983_EQ2C_MASK 0x0060
436 #define WM8983_EQ2C_SHIFT 5
437 #define WM8983_EQ2C_WIDTH 2
438 #define WM8983_EQ2G_MASK 0x001F
439 #define WM8983_EQ2G_SHIFT 0
440 #define WM8983_EQ2G_WIDTH 5
445 #define WM8983_EQ3BW 0x0100
446 #define WM8983_EQ3BW_MASK 0x0100
447 #define WM8983_EQ3BW_SHIFT 8
448 #define WM8983_EQ3BW_WIDTH 1
449 #define WM8983_EQ3C_MASK 0x0060
450 #define WM8983_EQ3C_SHIFT 5
451 #define WM8983_EQ3C_WIDTH 2
452 #define WM8983_EQ3G_MASK 0x001F
453 #define WM8983_EQ3G_SHIFT 0
454 #define WM8983_EQ3G_WIDTH 5
459 #define WM8983_EQ4BW 0x0100
460 #define WM8983_EQ4BW_MASK 0x0100
461 #define WM8983_EQ4BW_SHIFT 8
462 #define WM8983_EQ4BW_WIDTH 1
463 #define WM8983_EQ4C_MASK 0x0060
464 #define WM8983_EQ4C_SHIFT 5
465 #define WM8983_EQ4C_WIDTH 2
466 #define WM8983_EQ4G_MASK 0x001F
467 #define WM8983_EQ4G_SHIFT 0
468 #define WM8983_EQ4G_WIDTH 5
473 #define WM8983_EQ5C_MASK 0x0060
474 #define WM8983_EQ5C_SHIFT 5
475 #define WM8983_EQ5C_WIDTH 2
476 #define WM8983_EQ5G_MASK 0x001F
477 #define WM8983_EQ5G_SHIFT 0
478 #define WM8983_EQ5G_WIDTH 5
483 #define WM8983_LIMEN 0x0100
484 #define WM8983_LIMEN_MASK 0x0100
485 #define WM8983_LIMEN_SHIFT 8
486 #define WM8983_LIMEN_WIDTH 1
487 #define WM8983_LIMDCY_MASK 0x00F0
488 #define WM8983_LIMDCY_SHIFT 4
489 #define WM8983_LIMDCY_WIDTH 4
490 #define WM8983_LIMATK_MASK 0x000F
491 #define WM8983_LIMATK_SHIFT 0
492 #define WM8983_LIMATK_WIDTH 4
497 #define WM8983_LIMLVL_MASK 0x0070
498 #define WM8983_LIMLVL_SHIFT 4
499 #define WM8983_LIMLVL_WIDTH 3
500 #define WM8983_LIMBOOST_MASK 0x000F
501 #define WM8983_LIMBOOST_SHIFT 0
502 #define WM8983_LIMBOOST_WIDTH 4
507 #define WM8983_NFU 0x0100
508 #define WM8983_NFU_MASK 0x0100
509 #define WM8983_NFU_SHIFT 8
510 #define WM8983_NFU_WIDTH 1
511 #define WM8983_NFEN 0x0080
512 #define WM8983_NFEN_MASK 0x0080
513 #define WM8983_NFEN_SHIFT 7
514 #define WM8983_NFEN_WIDTH 1
515 #define WM8983_NFA0_13_7_MASK 0x007F
516 #define WM8983_NFA0_13_7_SHIFT 0
517 #define WM8983_NFA0_13_7_WIDTH 7
522 #define WM8983_NFU 0x0100
523 #define WM8983_NFU_MASK 0x0100
524 #define WM8983_NFU_SHIFT 8
525 #define WM8983_NFU_WIDTH 1
526 #define WM8983_NFA0_6_0_MASK 0x007F
527 #define WM8983_NFA0_6_0_SHIFT 0
528 #define WM8983_NFA0_6_0_WIDTH 7
533 #define WM8983_NFU 0x0100
534 #define WM8983_NFU_MASK 0x0100
535 #define WM8983_NFU_SHIFT 8
536 #define WM8983_NFU_WIDTH 1
537 #define WM8983_NFA1_13_7_MASK 0x007F
538 #define WM8983_NFA1_13_7_SHIFT 0
539 #define WM8983_NFA1_13_7_WIDTH 7
544 #define WM8983_NFU 0x0100
545 #define WM8983_NFU_MASK 0x0100
546 #define WM8983_NFU_SHIFT 8
547 #define WM8983_NFU_WIDTH 1
548 #define WM8983_NFA1_6_0_MASK 0x007F
549 #define WM8983_NFA1_6_0_SHIFT 0
550 #define WM8983_NFA1_6_0_WIDTH 7
555 #define WM8983_ALCSEL_MASK 0x0180
556 #define WM8983_ALCSEL_SHIFT 7
557 #define WM8983_ALCSEL_WIDTH 2
558 #define WM8983_ALCMAX_MASK 0x0038
559 #define WM8983_ALCMAX_SHIFT 3
560 #define WM8983_ALCMAX_WIDTH 3
561 #define WM8983_ALCMIN_MASK 0x0007
562 #define WM8983_ALCMIN_SHIFT 0
563 #define WM8983_ALCMIN_WIDTH 3
568 #define WM8983_ALCHLD_MASK 0x00F0
569 #define WM8983_ALCHLD_SHIFT 4
570 #define WM8983_ALCHLD_WIDTH 4
571 #define WM8983_ALCLVL_MASK 0x000F
572 #define WM8983_ALCLVL_SHIFT 0
573 #define WM8983_ALCLVL_WIDTH 4
578 #define WM8983_ALCMODE 0x0100
579 #define WM8983_ALCMODE_MASK 0x0100
580 #define WM8983_ALCMODE_SHIFT 8
581 #define WM8983_ALCMODE_WIDTH 1
582 #define WM8983_ALCDCY_MASK 0x00F0
583 #define WM8983_ALCDCY_SHIFT 4
584 #define WM8983_ALCDCY_WIDTH 4
585 #define WM8983_ALCATK_MASK 0x000F
586 #define WM8983_ALCATK_SHIFT 0
587 #define WM8983_ALCATK_WIDTH 4
592 #define WM8983_NGEN 0x0008
593 #define WM8983_NGEN_MASK 0x0008
594 #define WM8983_NGEN_SHIFT 3
595 #define WM8983_NGEN_WIDTH 1
596 #define WM8983_NGTH_MASK 0x0007
597 #define WM8983_NGTH_SHIFT 0
598 #define WM8983_NGTH_WIDTH 3
603 #define WM8983_PLL_PRESCALE 0x0010
604 #define WM8983_PLL_PRESCALE_MASK 0x0010
605 #define WM8983_PLL_PRESCALE_SHIFT 4
606 #define WM8983_PLL_PRESCALE_WIDTH 1
607 #define WM8983_PLLN_MASK 0x000F
608 #define WM8983_PLLN_SHIFT 0
609 #define WM8983_PLLN_WIDTH 4
614 #define WM8983_PLLK_23_18_MASK 0x003F
615 #define WM8983_PLLK_23_18_SHIFT 0
616 #define WM8983_PLLK_23_18_WIDTH 6
621 #define WM8983_PLLK_17_9_MASK 0x01FF
622 #define WM8983_PLLK_17_9_SHIFT 0
623 #define WM8983_PLLK_17_9_WIDTH 9
628 #define WM8983_PLLK_8_0_MASK 0x01FF
629 #define WM8983_PLLK_8_0_SHIFT 0
630 #define WM8983_PLLK_8_0_WIDTH 9
635 #define WM8983_DEPTH3D_MASK 0x000F
636 #define WM8983_DEPTH3D_SHIFT 0
637 #define WM8983_DEPTH3D_WIDTH 4
642 #define WM8983_OUT4_2ADCVOL_MASK 0x01C0
643 #define WM8983_OUT4_2ADCVOL_SHIFT 6
644 #define WM8983_OUT4_2ADCVOL_WIDTH 3
645 #define WM8983_OUT4_2LNR 0x0020
646 #define WM8983_OUT4_2LNR_MASK 0x0020
647 #define WM8983_OUT4_2LNR_SHIFT 5
648 #define WM8983_OUT4_2LNR_WIDTH 1
649 #define WM8983_POBCTRL 0x0004
650 #define WM8983_POBCTRL_MASK 0x0004
651 #define WM8983_POBCTRL_SHIFT 2
652 #define WM8983_POBCTRL_WIDTH 1
653 #define WM8983_DELEN 0x0002
654 #define WM8983_DELEN_MASK 0x0002
655 #define WM8983_DELEN_SHIFT 1
656 #define WM8983_DELEN_WIDTH 1
657 #define WM8983_OUT1DEL 0x0001
658 #define WM8983_OUT1DEL_MASK 0x0001
659 #define WM8983_OUT1DEL_SHIFT 0
660 #define WM8983_OUT1DEL_WIDTH 1
665 #define WM8983_BYPL2RMIX 0x0100
666 #define WM8983_BYPL2RMIX_MASK 0x0100
667 #define WM8983_BYPL2RMIX_SHIFT 8
668 #define WM8983_BYPL2RMIX_WIDTH 1
669 #define WM8983_BYPR2LMIX 0x0080
670 #define WM8983_BYPR2LMIX_MASK 0x0080
671 #define WM8983_BYPR2LMIX_SHIFT 7
672 #define WM8983_BYPR2LMIX_WIDTH 1
673 #define WM8983_MUTERPGA2INV 0x0020
674 #define WM8983_MUTERPGA2INV_MASK 0x0020
675 #define WM8983_MUTERPGA2INV_SHIFT 5
676 #define WM8983_MUTERPGA2INV_WIDTH 1
677 #define WM8983_INVROUT2 0x0010
678 #define WM8983_INVROUT2_MASK 0x0010
679 #define WM8983_INVROUT2_SHIFT 4
680 #define WM8983_INVROUT2_WIDTH 1
681 #define WM8983_BEEPVOL_MASK 0x000E
682 #define WM8983_BEEPVOL_SHIFT 1
683 #define WM8983_BEEPVOL_WIDTH 3
684 #define WM8983_BEEPEN 0x0001
685 #define WM8983_BEEPEN_MASK 0x0001
686 #define WM8983_BEEPEN_SHIFT 0
687 #define WM8983_BEEPEN_WIDTH 1
692 #define WM8983_MBVSEL 0x0100
693 #define WM8983_MBVSEL_MASK 0x0100
694 #define WM8983_MBVSEL_SHIFT 8
695 #define WM8983_MBVSEL_WIDTH 1
696 #define WM8983_R2_2INPPGA 0x0040
697 #define WM8983_R2_2INPPGA_MASK 0x0040
698 #define WM8983_R2_2INPPGA_SHIFT 6
699 #define WM8983_R2_2INPPGA_WIDTH 1
700 #define WM8983_RIN2INPPGA 0x0020
701 #define WM8983_RIN2INPPGA_MASK 0x0020
702 #define WM8983_RIN2INPPGA_SHIFT 5
703 #define WM8983_RIN2INPPGA_WIDTH 1
704 #define WM8983_RIP2INPPGA 0x0010
705 #define WM8983_RIP2INPPGA_MASK 0x0010
706 #define WM8983_RIP2INPPGA_SHIFT 4
707 #define WM8983_RIP2INPPGA_WIDTH 1
708 #define WM8983_L2_2INPPGA 0x0004
709 #define WM8983_L2_2INPPGA_MASK 0x0004
710 #define WM8983_L2_2INPPGA_SHIFT 2
711 #define WM8983_L2_2INPPGA_WIDTH 1
712 #define WM8983_LIN2INPPGA 0x0002
713 #define WM8983_LIN2INPPGA_MASK 0x0002
714 #define WM8983_LIN2INPPGA_SHIFT 1
715 #define WM8983_LIN2INPPGA_WIDTH 1
716 #define WM8983_LIP2INPPGA 0x0001
717 #define WM8983_LIP2INPPGA_MASK 0x0001
718 #define WM8983_LIP2INPPGA_SHIFT 0
719 #define WM8983_LIP2INPPGA_WIDTH 1
724 #define WM8983_INPGAVU 0x0100
725 #define WM8983_INPGAVU_MASK 0x0100
726 #define WM8983_INPGAVU_SHIFT 8
727 #define WM8983_INPGAVU_WIDTH 1
728 #define WM8983_INPPGAZCL 0x0080
729 #define WM8983_INPPGAZCL_MASK 0x0080
730 #define WM8983_INPPGAZCL_SHIFT 7
731 #define WM8983_INPPGAZCL_WIDTH 1
732 #define WM8983_INPPGAMUTEL 0x0040
733 #define WM8983_INPPGAMUTEL_MASK 0x0040
734 #define WM8983_INPPGAMUTEL_SHIFT 6
735 #define WM8983_INPPGAMUTEL_WIDTH 1
736 #define WM8983_INPPGAVOLL_MASK 0x003F
737 #define WM8983_INPPGAVOLL_SHIFT 0
738 #define WM8983_INPPGAVOLL_WIDTH 6
743 #define WM8983_INPGAVU 0x0100
744 #define WM8983_INPGAVU_MASK 0x0100
745 #define WM8983_INPGAVU_SHIFT 8
746 #define WM8983_INPGAVU_WIDTH 1
747 #define WM8983_INPPGAZCR 0x0080
748 #define WM8983_INPPGAZCR_MASK 0x0080
749 #define WM8983_INPPGAZCR_SHIFT 7
750 #define WM8983_INPPGAZCR_WIDTH 1
751 #define WM8983_INPPGAMUTER 0x0040
752 #define WM8983_INPPGAMUTER_MASK 0x0040
753 #define WM8983_INPPGAMUTER_SHIFT 6
754 #define WM8983_INPPGAMUTER_WIDTH 1
755 #define WM8983_INPPGAVOLR_MASK 0x003F
756 #define WM8983_INPPGAVOLR_SHIFT 0
757 #define WM8983_INPPGAVOLR_WIDTH 6
762 #define WM8983_PGABOOSTL 0x0100
763 #define WM8983_PGABOOSTL_MASK 0x0100
764 #define WM8983_PGABOOSTL_SHIFT 8
765 #define WM8983_PGABOOSTL_WIDTH 1
766 #define WM8983_L2_2BOOSTVOL_MASK 0x0070
767 #define WM8983_L2_2BOOSTVOL_SHIFT 4
768 #define WM8983_L2_2BOOSTVOL_WIDTH 3
769 #define WM8983_AUXL2BOOSTVOL_MASK 0x0007
770 #define WM8983_AUXL2BOOSTVOL_SHIFT 0
771 #define WM8983_AUXL2BOOSTVOL_WIDTH 3
776 #define WM8983_PGABOOSTR 0x0100
777 #define WM8983_PGABOOSTR_MASK 0x0100
778 #define WM8983_PGABOOSTR_SHIFT 8
779 #define WM8983_PGABOOSTR_WIDTH 1
780 #define WM8983_R2_2BOOSTVOL_MASK 0x0070
781 #define WM8983_R2_2BOOSTVOL_SHIFT 4
782 #define WM8983_R2_2BOOSTVOL_WIDTH 3
783 #define WM8983_AUXR2BOOSTVOL_MASK 0x0007
784 #define WM8983_AUXR2BOOSTVOL_SHIFT 0
785 #define WM8983_AUXR2BOOSTVOL_WIDTH 3
790 #define WM8983_DACL2RMIX 0x0040
791 #define WM8983_DACL2RMIX_MASK 0x0040
792 #define WM8983_DACL2RMIX_SHIFT 6
793 #define WM8983_DACL2RMIX_WIDTH 1
794 #define WM8983_DACR2LMIX 0x0020
795 #define WM8983_DACR2LMIX_MASK 0x0020
796 #define WM8983_DACR2LMIX_SHIFT 5
797 #define WM8983_DACR2LMIX_WIDTH 1
798 #define WM8983_OUT4BOOST 0x0010
799 #define WM8983_OUT4BOOST_MASK 0x0010
800 #define WM8983_OUT4BOOST_SHIFT 4
801 #define WM8983_OUT4BOOST_WIDTH 1
802 #define WM8983_OUT3BOOST 0x0008
803 #define WM8983_OUT3BOOST_MASK 0x0008
804 #define WM8983_OUT3BOOST_SHIFT 3
805 #define WM8983_OUT3BOOST_WIDTH 1
806 #define WM8983_SPKBOOST 0x0004
807 #define WM8983_SPKBOOST_MASK 0x0004
808 #define WM8983_SPKBOOST_SHIFT 2
809 #define WM8983_SPKBOOST_WIDTH 1
810 #define WM8983_TSDEN 0x0002
811 #define WM8983_TSDEN_MASK 0x0002
812 #define WM8983_TSDEN_SHIFT 1
813 #define WM8983_TSDEN_WIDTH 1
814 #define WM8983_VROI 0x0001
815 #define WM8983_VROI_MASK 0x0001
816 #define WM8983_VROI_SHIFT 0
817 #define WM8983_VROI_WIDTH 1
822 #define WM8983_AUXLMIXVOL_MASK 0x01C0
823 #define WM8983_AUXLMIXVOL_SHIFT 6
824 #define WM8983_AUXLMIXVOL_WIDTH 3
825 #define WM8983_AUXL2LMIX 0x0020
826 #define WM8983_AUXL2LMIX_MASK 0x0020
827 #define WM8983_AUXL2LMIX_SHIFT 5
828 #define WM8983_AUXL2LMIX_WIDTH 1
829 #define WM8983_BYPLMIXVOL_MASK 0x001C
830 #define WM8983_BYPLMIXVOL_SHIFT 2
831 #define WM8983_BYPLMIXVOL_WIDTH 3
832 #define WM8983_BYPL2LMIX 0x0002
833 #define WM8983_BYPL2LMIX_MASK 0x0002
834 #define WM8983_BYPL2LMIX_SHIFT 1
835 #define WM8983_BYPL2LMIX_WIDTH 1
836 #define WM8983_DACL2LMIX 0x0001
837 #define WM8983_DACL2LMIX_MASK 0x0001
838 #define WM8983_DACL2LMIX_SHIFT 0
839 #define WM8983_DACL2LMIX_WIDTH 1
844 #define WM8983_AUXRMIXVOL_MASK 0x01C0
845 #define WM8983_AUXRMIXVOL_SHIFT 6
846 #define WM8983_AUXRMIXVOL_WIDTH 3
847 #define WM8983_AUXR2RMIX 0x0020
848 #define WM8983_AUXR2RMIX_MASK 0x0020
849 #define WM8983_AUXR2RMIX_SHIFT 5
850 #define WM8983_AUXR2RMIX_WIDTH 1
851 #define WM8983_BYPRMIXVOL_MASK 0x001C
852 #define WM8983_BYPRMIXVOL_SHIFT 2
853 #define WM8983_BYPRMIXVOL_WIDTH 3
854 #define WM8983_BYPR2RMIX 0x0002
855 #define WM8983_BYPR2RMIX_MASK 0x0002
856 #define WM8983_BYPR2RMIX_SHIFT 1
857 #define WM8983_BYPR2RMIX_WIDTH 1
858 #define WM8983_DACR2RMIX 0x0001
859 #define WM8983_DACR2RMIX_MASK 0x0001
860 #define WM8983_DACR2RMIX_SHIFT 0
861 #define WM8983_DACR2RMIX_WIDTH 1
866 #define WM8983_OUT1VU 0x0100
867 #define WM8983_OUT1VU_MASK 0x0100
868 #define WM8983_OUT1VU_SHIFT 8
869 #define WM8983_OUT1VU_WIDTH 1
870 #define WM8983_LOUT1ZC 0x0080
871 #define WM8983_LOUT1ZC_MASK 0x0080
872 #define WM8983_LOUT1ZC_SHIFT 7
873 #define WM8983_LOUT1ZC_WIDTH 1
874 #define WM8983_LOUT1MUTE 0x0040
875 #define WM8983_LOUT1MUTE_MASK 0x0040
876 #define WM8983_LOUT1MUTE_SHIFT 6
877 #define WM8983_LOUT1MUTE_WIDTH 1
878 #define WM8983_LOUT1VOL_MASK 0x003F
879 #define WM8983_LOUT1VOL_SHIFT 0
880 #define WM8983_LOUT1VOL_WIDTH 6
885 #define WM8983_OUT1VU 0x0100
886 #define WM8983_OUT1VU_MASK 0x0100
887 #define WM8983_OUT1VU_SHIFT 8
888 #define WM8983_OUT1VU_WIDTH 1
889 #define WM8983_ROUT1ZC 0x0080
890 #define WM8983_ROUT1ZC_MASK 0x0080
891 #define WM8983_ROUT1ZC_SHIFT 7
892 #define WM8983_ROUT1ZC_WIDTH 1
893 #define WM8983_ROUT1MUTE 0x0040
894 #define WM8983_ROUT1MUTE_MASK 0x0040
895 #define WM8983_ROUT1MUTE_SHIFT 6
896 #define WM8983_ROUT1MUTE_WIDTH 1
897 #define WM8983_ROUT1VOL_MASK 0x003F
898 #define WM8983_ROUT1VOL_SHIFT 0
899 #define WM8983_ROUT1VOL_WIDTH 6
904 #define WM8983_OUT2VU 0x0100
905 #define WM8983_OUT2VU_MASK 0x0100
906 #define WM8983_OUT2VU_SHIFT 8
907 #define WM8983_OUT2VU_WIDTH 1
908 #define WM8983_LOUT2ZC 0x0080
909 #define WM8983_LOUT2ZC_MASK 0x0080
910 #define WM8983_LOUT2ZC_SHIFT 7
911 #define WM8983_LOUT2ZC_WIDTH 1
912 #define WM8983_LOUT2MUTE 0x0040
913 #define WM8983_LOUT2MUTE_MASK 0x0040
914 #define WM8983_LOUT2MUTE_SHIFT 6
915 #define WM8983_LOUT2MUTE_WIDTH 1
916 #define WM8983_LOUT2VOL_MASK 0x003F
917 #define WM8983_LOUT2VOL_SHIFT 0
918 #define WM8983_LOUT2VOL_WIDTH 6
923 #define WM8983_OUT2VU 0x0100
924 #define WM8983_OUT2VU_MASK 0x0100
925 #define WM8983_OUT2VU_SHIFT 8
926 #define WM8983_OUT2VU_WIDTH 1
927 #define WM8983_ROUT2ZC 0x0080
928 #define WM8983_ROUT2ZC_MASK 0x0080
929 #define WM8983_ROUT2ZC_SHIFT 7
930 #define WM8983_ROUT2ZC_WIDTH 1
931 #define WM8983_ROUT2MUTE 0x0040
932 #define WM8983_ROUT2MUTE_MASK 0x0040
933 #define WM8983_ROUT2MUTE_SHIFT 6
934 #define WM8983_ROUT2MUTE_WIDTH 1
935 #define WM8983_ROUT2VOL_MASK 0x003F
936 #define WM8983_ROUT2VOL_SHIFT 0
937 #define WM8983_ROUT2VOL_WIDTH 6
942 #define WM8983_OUT3MUTE 0x0040
943 #define WM8983_OUT3MUTE_MASK 0x0040
944 #define WM8983_OUT3MUTE_SHIFT 6
945 #define WM8983_OUT3MUTE_WIDTH 1
946 #define WM8983_OUT4_2OUT3 0x0008
947 #define WM8983_OUT4_2OUT3_MASK 0x0008
948 #define WM8983_OUT4_2OUT3_SHIFT 3
949 #define WM8983_OUT4_2OUT3_WIDTH 1
950 #define WM8983_BYPL2OUT3 0x0004
951 #define WM8983_BYPL2OUT3_MASK 0x0004
952 #define WM8983_BYPL2OUT3_SHIFT 2
953 #define WM8983_BYPL2OUT3_WIDTH 1
954 #define WM8983_LMIX2OUT3 0x0002
955 #define WM8983_LMIX2OUT3_MASK 0x0002
956 #define WM8983_LMIX2OUT3_SHIFT 1
957 #define WM8983_LMIX2OUT3_WIDTH 1
958 #define WM8983_LDAC2OUT3 0x0001
959 #define WM8983_LDAC2OUT3_MASK 0x0001
960 #define WM8983_LDAC2OUT3_SHIFT 0
961 #define WM8983_LDAC2OUT3_WIDTH 1
966 #define WM8983_OUT3_2OUT4 0x0080
967 #define WM8983_OUT3_2OUT4_MASK 0x0080
968 #define WM8983_OUT3_2OUT4_SHIFT 7
969 #define WM8983_OUT3_2OUT4_WIDTH 1
970 #define WM8983_OUT4MUTE 0x0040
971 #define WM8983_OUT4MUTE_MASK 0x0040
972 #define WM8983_OUT4MUTE_SHIFT 6
973 #define WM8983_OUT4MUTE_WIDTH 1
974 #define WM8983_OUT4ATTN 0x0020
975 #define WM8983_OUT4ATTN_MASK 0x0020
976 #define WM8983_OUT4ATTN_SHIFT 5
977 #define WM8983_OUT4ATTN_WIDTH 1
978 #define WM8983_LMIX2OUT4 0x0010
979 #define WM8983_LMIX2OUT4_MASK 0x0010
980 #define WM8983_LMIX2OUT4_SHIFT 4
981 #define WM8983_LMIX2OUT4_WIDTH 1
982 #define WM8983_LDAC2OUT4 0x0008
983 #define WM8983_LDAC2OUT4_MASK 0x0008
984 #define WM8983_LDAC2OUT4_SHIFT 3
985 #define WM8983_LDAC2OUT4_WIDTH 1
986 #define WM8983_BYPR2OUT4 0x0004
987 #define WM8983_BYPR2OUT4_MASK 0x0004
988 #define WM8983_BYPR2OUT4_SHIFT 2
989 #define WM8983_BYPR2OUT4_WIDTH 1
990 #define WM8983_RMIX2OUT4 0x0002
991 #define WM8983_RMIX2OUT4_MASK 0x0002
992 #define WM8983_RMIX2OUT4_SHIFT 1
993 #define WM8983_RMIX2OUT4_WIDTH 1
994 #define WM8983_RDAC2OUT4 0x0001
995 #define WM8983_RDAC2OUT4_MASK 0x0001
996 #define WM8983_RDAC2OUT4_SHIFT 0
997 #define WM8983_RDAC2OUT4_WIDTH 1
1002 #define WM8983_BIASCUT 0x0100
1003 #define WM8983_BIASCUT_MASK 0x0100
1004 #define WM8983_BIASCUT_SHIFT 8
1005 #define WM8983_BIASCUT_WIDTH 1
1006 #define WM8983_HALFIPBIAS 0x0080
1007 #define WM8983_HALFIPBIAS_MASK 0x0080
1008 #define WM8983_HALFIPBIAS_SHIFT 7
1009 #define WM8983_HALFIPBIAS_WIDTH 1
1010 #define WM8983_VBBIASTST_MASK 0x0060
1011 #define WM8983_VBBIASTST_SHIFT 5
1012 #define WM8983_VBBIASTST_WIDTH 2
1013 #define WM8983_BUFBIAS_MASK 0x0018
1014 #define WM8983_BUFBIAS_SHIFT 3
1015 #define WM8983_BUFBIAS_WIDTH 2
1016 #define WM8983_ADCBIAS_MASK 0x0006
1017 #define WM8983_ADCBIAS_SHIFT 1
1018 #define WM8983_ADCBIAS_WIDTH 2
1019 #define WM8983_HALFOPBIAS 0x0001
1020 #define WM8983_HALFOPBIAS_MASK 0x0001
1021 #define WM8983_HALFOPBIAS_SHIFT 0
1022 #define WM8983_HALFOPBIAS_WIDTH 1