Go to the documentation of this file.
16 #define WM8985_SOFTWARE_RESET 0x00
17 #define WM8985_POWER_MANAGEMENT_1 0x01
18 #define WM8985_POWER_MANAGEMENT_2 0x02
19 #define WM8985_POWER_MANAGEMENT_3 0x03
20 #define WM8985_AUDIO_INTERFACE 0x04
21 #define WM8985_COMPANDING_CONTROL 0x05
22 #define WM8985_CLOCK_GEN_CONTROL 0x06
23 #define WM8985_ADDITIONAL_CONTROL 0x07
24 #define WM8985_GPIO_CONTROL 0x08
25 #define WM8985_JACK_DETECT_CONTROL_1 0x09
26 #define WM8985_DAC_CONTROL 0x0A
27 #define WM8985_LEFT_DAC_DIGITAL_VOL 0x0B
28 #define WM8985_RIGHT_DAC_DIGITAL_VOL 0x0C
29 #define WM8985_JACK_DETECT_CONTROL_2 0x0D
30 #define WM8985_ADC_CONTROL 0x0E
31 #define WM8985_LEFT_ADC_DIGITAL_VOL 0x0F
32 #define WM8985_RIGHT_ADC_DIGITAL_VOL 0x10
33 #define WM8985_EQ1_LOW_SHELF 0x12
34 #define WM8985_EQ2_PEAK_1 0x13
35 #define WM8985_EQ3_PEAK_2 0x14
36 #define WM8985_EQ4_PEAK_3 0x15
37 #define WM8985_EQ5_HIGH_SHELF 0x16
38 #define WM8985_DAC_LIMITER_1 0x18
39 #define WM8985_DAC_LIMITER_2 0x19
40 #define WM8985_NOTCH_FILTER_1 0x1B
41 #define WM8985_NOTCH_FILTER_2 0x1C
42 #define WM8985_NOTCH_FILTER_3 0x1D
43 #define WM8985_NOTCH_FILTER_4 0x1E
44 #define WM8985_ALC_CONTROL_1 0x20
45 #define WM8985_ALC_CONTROL_2 0x21
46 #define WM8985_ALC_CONTROL_3 0x22
47 #define WM8985_NOISE_GATE 0x23
48 #define WM8985_PLL_N 0x24
49 #define WM8985_PLL_K_1 0x25
50 #define WM8985_PLL_K_2 0x26
51 #define WM8985_PLL_K_3 0x27
52 #define WM8985_3D_CONTROL 0x29
53 #define WM8985_OUT4_TO_ADC 0x2A
54 #define WM8985_BEEP_CONTROL 0x2B
55 #define WM8985_INPUT_CTRL 0x2C
56 #define WM8985_LEFT_INP_PGA_GAIN_CTRL 0x2D
57 #define WM8985_RIGHT_INP_PGA_GAIN_CTRL 0x2E
58 #define WM8985_LEFT_ADC_BOOST_CTRL 0x2F
59 #define WM8985_RIGHT_ADC_BOOST_CTRL 0x30
60 #define WM8985_OUTPUT_CTRL0 0x31
61 #define WM8985_LEFT_MIXER_CTRL 0x32
62 #define WM8985_RIGHT_MIXER_CTRL 0x33
63 #define WM8985_LOUT1_HP_VOLUME_CTRL 0x34
64 #define WM8985_ROUT1_HP_VOLUME_CTRL 0x35
65 #define WM8985_LOUT2_SPK_VOLUME_CTRL 0x36
66 #define WM8985_ROUT2_SPK_VOLUME_CTRL 0x37
67 #define WM8985_OUT3_MIXER_CTRL 0x38
68 #define WM8985_OUT4_MONO_MIX_CTRL 0x39
69 #define WM8985_OUTPUT_CTRL1 0x3C
70 #define WM8985_BIAS_CTRL 0x3D
72 #define WM8985_REGISTER_COUNT 59
73 #define WM8985_MAX_REGISTER 0x3F
82 #define WM8985_SOFTWARE_RESET_MASK 0x01FF
83 #define WM8985_SOFTWARE_RESET_SHIFT 0
84 #define WM8985_SOFTWARE_RESET_WIDTH 9
89 #define WM8985_OUT4MIXEN 0x0080
90 #define WM8985_OUT4MIXEN_MASK 0x0080
91 #define WM8985_OUT4MIXEN_SHIFT 7
92 #define WM8985_OUT4MIXEN_WIDTH 1
93 #define WM8985_OUT3MIXEN 0x0040
94 #define WM8985_OUT3MIXEN_MASK 0x0040
95 #define WM8985_OUT3MIXEN_SHIFT 6
96 #define WM8985_OUT3MIXEN_WIDTH 1
97 #define WM8985_PLLEN 0x0020
98 #define WM8985_PLLEN_MASK 0x0020
99 #define WM8985_PLLEN_SHIFT 5
100 #define WM8985_PLLEN_WIDTH 1
101 #define WM8985_MICBEN 0x0010
102 #define WM8985_MICBEN_MASK 0x0010
103 #define WM8985_MICBEN_SHIFT 4
104 #define WM8985_MICBEN_WIDTH 1
105 #define WM8985_BIASEN 0x0008
106 #define WM8985_BIASEN_MASK 0x0008
107 #define WM8985_BIASEN_SHIFT 3
108 #define WM8985_BIASEN_WIDTH 1
109 #define WM8985_BUFIOEN 0x0004
110 #define WM8985_BUFIOEN_MASK 0x0004
111 #define WM8985_BUFIOEN_SHIFT 2
112 #define WM8985_BUFIOEN_WIDTH 1
113 #define WM8985_VMIDSEL 0x0003
114 #define WM8985_VMIDSEL_MASK 0x0003
115 #define WM8985_VMIDSEL_SHIFT 0
116 #define WM8985_VMIDSEL_WIDTH 2
121 #define WM8985_ROUT1EN 0x0100
122 #define WM8985_ROUT1EN_MASK 0x0100
123 #define WM8985_ROUT1EN_SHIFT 8
124 #define WM8985_ROUT1EN_WIDTH 1
125 #define WM8985_LOUT1EN 0x0080
126 #define WM8985_LOUT1EN_MASK 0x0080
127 #define WM8985_LOUT1EN_SHIFT 7
128 #define WM8985_LOUT1EN_WIDTH 1
129 #define WM8985_SLEEP 0x0040
130 #define WM8985_SLEEP_MASK 0x0040
131 #define WM8985_SLEEP_SHIFT 6
132 #define WM8985_SLEEP_WIDTH 1
133 #define WM8985_BOOSTENR 0x0020
134 #define WM8985_BOOSTENR_MASK 0x0020
135 #define WM8985_BOOSTENR_SHIFT 5
136 #define WM8985_BOOSTENR_WIDTH 1
137 #define WM8985_BOOSTENL 0x0010
138 #define WM8985_BOOSTENL_MASK 0x0010
139 #define WM8985_BOOSTENL_SHIFT 4
140 #define WM8985_BOOSTENL_WIDTH 1
141 #define WM8985_INPGAENR 0x0008
142 #define WM8985_INPGAENR_MASK 0x0008
143 #define WM8985_INPGAENR_SHIFT 3
144 #define WM8985_INPGAENR_WIDTH 1
145 #define WM8985_INPPGAENL 0x0004
146 #define WM8985_INPPGAENL_MASK 0x0004
147 #define WM8985_INPPGAENL_SHIFT 2
148 #define WM8985_INPPGAENL_WIDTH 1
149 #define WM8985_ADCENR 0x0002
150 #define WM8985_ADCENR_MASK 0x0002
151 #define WM8985_ADCENR_SHIFT 1
152 #define WM8985_ADCENR_WIDTH 1
153 #define WM8985_ADCENL 0x0001
154 #define WM8985_ADCENL_MASK 0x0001
155 #define WM8985_ADCENL_SHIFT 0
156 #define WM8985_ADCENL_WIDTH 1
161 #define WM8985_OUT4EN 0x0100
162 #define WM8985_OUT4EN_MASK 0x0100
163 #define WM8985_OUT4EN_SHIFT 8
164 #define WM8985_OUT4EN_WIDTH 1
165 #define WM8985_OUT3EN 0x0080
166 #define WM8985_OUT3EN_MASK 0x0080
167 #define WM8985_OUT3EN_SHIFT 7
168 #define WM8985_OUT3EN_WIDTH 1
169 #define WM8985_ROUT2EN 0x0040
170 #define WM8985_ROUT2EN_MASK 0x0040
171 #define WM8985_ROUT2EN_SHIFT 6
172 #define WM8985_ROUT2EN_WIDTH 1
173 #define WM8985_LOUT2EN 0x0020
174 #define WM8985_LOUT2EN_MASK 0x0020
175 #define WM8985_LOUT2EN_SHIFT 5
176 #define WM8985_LOUT2EN_WIDTH 1
177 #define WM8985_RMIXEN 0x0008
178 #define WM8985_RMIXEN_MASK 0x0008
179 #define WM8985_RMIXEN_SHIFT 3
180 #define WM8985_RMIXEN_WIDTH 1
181 #define WM8985_LMIXEN 0x0004
182 #define WM8985_LMIXEN_MASK 0x0004
183 #define WM8985_LMIXEN_SHIFT 2
184 #define WM8985_LMIXEN_WIDTH 1
185 #define WM8985_DACENR 0x0002
186 #define WM8985_DACENR_MASK 0x0002
187 #define WM8985_DACENR_SHIFT 1
188 #define WM8985_DACENR_WIDTH 1
189 #define WM8985_DACENL 0x0001
190 #define WM8985_DACENL_MASK 0x0001
191 #define WM8985_DACENL_SHIFT 0
192 #define WM8985_DACENL_WIDTH 1
197 #define WM8985_BCP 0x0100
198 #define WM8985_BCP_MASK 0x0100
199 #define WM8985_BCP_SHIFT 8
200 #define WM8985_BCP_WIDTH 1
201 #define WM8985_LRP 0x0080
202 #define WM8985_LRP_MASK 0x0080
203 #define WM8985_LRP_SHIFT 7
204 #define WM8985_LRP_WIDTH 1
205 #define WM8985_WL_MASK 0x0060
206 #define WM8985_WL_SHIFT 5
207 #define WM8985_WL_WIDTH 2
208 #define WM8985_FMT_MASK 0x0018
209 #define WM8985_FMT_SHIFT 3
210 #define WM8985_FMT_WIDTH 2
211 #define WM8985_DLRSWAP 0x0004
212 #define WM8985_DLRSWAP_MASK 0x0004
213 #define WM8985_DLRSWAP_SHIFT 2
214 #define WM8985_DLRSWAP_WIDTH 1
215 #define WM8985_ALRSWAP 0x0002
216 #define WM8985_ALRSWAP_MASK 0x0002
217 #define WM8985_ALRSWAP_SHIFT 1
218 #define WM8985_ALRSWAP_WIDTH 1
219 #define WM8985_MONO 0x0001
220 #define WM8985_MONO_MASK 0x0001
221 #define WM8985_MONO_SHIFT 0
222 #define WM8985_MONO_WIDTH 1
227 #define WM8985_WL8 0x0020
228 #define WM8985_WL8_MASK 0x0020
229 #define WM8985_WL8_SHIFT 5
230 #define WM8985_WL8_WIDTH 1
231 #define WM8985_DAC_COMP_MASK 0x0018
232 #define WM8985_DAC_COMP_SHIFT 3
233 #define WM8985_DAC_COMP_WIDTH 2
234 #define WM8985_ADC_COMP_MASK 0x0006
235 #define WM8985_ADC_COMP_SHIFT 1
236 #define WM8985_ADC_COMP_WIDTH 2
237 #define WM8985_LOOPBACK 0x0001
238 #define WM8985_LOOPBACK_MASK 0x0001
239 #define WM8985_LOOPBACK_SHIFT 0
240 #define WM8985_LOOPBACK_WIDTH 1
245 #define WM8985_CLKSEL 0x0100
246 #define WM8985_CLKSEL_MASK 0x0100
247 #define WM8985_CLKSEL_SHIFT 8
248 #define WM8985_CLKSEL_WIDTH 1
249 #define WM8985_MCLKDIV_MASK 0x00E0
250 #define WM8985_MCLKDIV_SHIFT 5
251 #define WM8985_MCLKDIV_WIDTH 3
252 #define WM8985_BCLKDIV_MASK 0x001C
253 #define WM8985_BCLKDIV_SHIFT 2
254 #define WM8985_BCLKDIV_WIDTH 3
255 #define WM8985_MS 0x0001
256 #define WM8985_MS_MASK 0x0001
257 #define WM8985_MS_SHIFT 0
258 #define WM8985_MS_WIDTH 1
263 #define WM8985_M128ENB 0x0100
264 #define WM8985_M128ENB_MASK 0x0100
265 #define WM8985_M128ENB_SHIFT 8
266 #define WM8985_M128ENB_WIDTH 1
267 #define WM8985_DCLKDIV_MASK 0x00F0
268 #define WM8985_DCLKDIV_SHIFT 4
269 #define WM8985_DCLKDIV_WIDTH 4
270 #define WM8985_SR_MASK 0x000E
271 #define WM8985_SR_SHIFT 1
272 #define WM8985_SR_WIDTH 3
273 #define WM8985_SLOWCLKEN 0x0001
274 #define WM8985_SLOWCLKEN_MASK 0x0001
275 #define WM8985_SLOWCLKEN_SHIFT 0
276 #define WM8985_SLOWCLKEN_WIDTH 1
281 #define WM8985_GPIO1GP 0x0100
282 #define WM8985_GPIO1GP_MASK 0x0100
283 #define WM8985_GPIO1GP_SHIFT 8
284 #define WM8985_GPIO1GP_WIDTH 1
285 #define WM8985_GPIO1GPU 0x0080
286 #define WM8985_GPIO1GPU_MASK 0x0080
287 #define WM8985_GPIO1GPU_SHIFT 7
288 #define WM8985_GPIO1GPU_WIDTH 1
289 #define WM8985_GPIO1GPD 0x0040
290 #define WM8985_GPIO1GPD_MASK 0x0040
291 #define WM8985_GPIO1GPD_SHIFT 6
292 #define WM8985_GPIO1GPD_WIDTH 1
293 #define WM8985_GPIO1POL 0x0008
294 #define WM8985_GPIO1POL_MASK 0x0008
295 #define WM8985_GPIO1POL_SHIFT 3
296 #define WM8985_GPIO1POL_WIDTH 1
297 #define WM8985_GPIO1SEL_MASK 0x0007
298 #define WM8985_GPIO1SEL_SHIFT 0
299 #define WM8985_GPIO1SEL_WIDTH 3
304 #define WM8985_JD_EN 0x0040
305 #define WM8985_JD_EN_MASK 0x0040
306 #define WM8985_JD_EN_SHIFT 6
307 #define WM8985_JD_EN_WIDTH 1
308 #define WM8985_JD_SEL_MASK 0x0030
309 #define WM8985_JD_SEL_SHIFT 4
310 #define WM8985_JD_SEL_WIDTH 2
315 #define WM8985_SOFTMUTE 0x0040
316 #define WM8985_SOFTMUTE_MASK 0x0040
317 #define WM8985_SOFTMUTE_SHIFT 6
318 #define WM8985_SOFTMUTE_WIDTH 1
319 #define WM8985_DACOSR128 0x0008
320 #define WM8985_DACOSR128_MASK 0x0008
321 #define WM8985_DACOSR128_SHIFT 3
322 #define WM8985_DACOSR128_WIDTH 1
323 #define WM8985_AMUTE 0x0004
324 #define WM8985_AMUTE_MASK 0x0004
325 #define WM8985_AMUTE_SHIFT 2
326 #define WM8985_AMUTE_WIDTH 1
327 #define WM8985_DACPOLR 0x0002
328 #define WM8985_DACPOLR_MASK 0x0002
329 #define WM8985_DACPOLR_SHIFT 1
330 #define WM8985_DACPOLR_WIDTH 1
331 #define WM8985_DACPOLL 0x0001
332 #define WM8985_DACPOLL_MASK 0x0001
333 #define WM8985_DACPOLL_SHIFT 0
334 #define WM8985_DACPOLL_WIDTH 1
339 #define WM8985_DACVU 0x0100
340 #define WM8985_DACVU_MASK 0x0100
341 #define WM8985_DACVU_SHIFT 8
342 #define WM8985_DACVU_WIDTH 1
343 #define WM8985_DACVOLL_MASK 0x00FF
344 #define WM8985_DACVOLL_SHIFT 0
345 #define WM8985_DACVOLL_WIDTH 8
350 #define WM8985_DACVU 0x0100
351 #define WM8985_DACVU_MASK 0x0100
352 #define WM8985_DACVU_SHIFT 8
353 #define WM8985_DACVU_WIDTH 1
354 #define WM8985_DACVOLR_MASK 0x00FF
355 #define WM8985_DACVOLR_SHIFT 0
356 #define WM8985_DACVOLR_WIDTH 8
361 #define WM8985_JD_EN1_MASK 0x00F0
362 #define WM8985_JD_EN1_SHIFT 4
363 #define WM8985_JD_EN1_WIDTH 4
364 #define WM8985_JD_EN0_MASK 0x000F
365 #define WM8985_JD_EN0_SHIFT 0
366 #define WM8985_JD_EN0_WIDTH 4
371 #define WM8985_HPFEN 0x0100
372 #define WM8985_HPFEN_MASK 0x0100
373 #define WM8985_HPFEN_SHIFT 8
374 #define WM8985_HPFEN_WIDTH 1
375 #define WM8985_HPFAPP 0x0080
376 #define WM8985_HPFAPP_MASK 0x0080
377 #define WM8985_HPFAPP_SHIFT 7
378 #define WM8985_HPFAPP_WIDTH 1
379 #define WM8985_HPFCUT_MASK 0x0070
380 #define WM8985_HPFCUT_SHIFT 4
381 #define WM8985_HPFCUT_WIDTH 3
382 #define WM8985_ADCOSR128 0x0008
383 #define WM8985_ADCOSR128_MASK 0x0008
384 #define WM8985_ADCOSR128_SHIFT 3
385 #define WM8985_ADCOSR128_WIDTH 1
386 #define WM8985_ADCRPOL 0x0002
387 #define WM8985_ADCRPOL_MASK 0x0002
388 #define WM8985_ADCRPOL_SHIFT 1
389 #define WM8985_ADCRPOL_WIDTH 1
390 #define WM8985_ADCLPOL 0x0001
391 #define WM8985_ADCLPOL_MASK 0x0001
392 #define WM8985_ADCLPOL_SHIFT 0
393 #define WM8985_ADCLPOL_WIDTH 1
398 #define WM8985_ADCVU 0x0100
399 #define WM8985_ADCVU_MASK 0x0100
400 #define WM8985_ADCVU_SHIFT 8
401 #define WM8985_ADCVU_WIDTH 1
402 #define WM8985_ADCVOLL_MASK 0x00FF
403 #define WM8985_ADCVOLL_SHIFT 0
404 #define WM8985_ADCVOLL_WIDTH 8
409 #define WM8985_ADCVU 0x0100
410 #define WM8985_ADCVU_MASK 0x0100
411 #define WM8985_ADCVU_SHIFT 8
412 #define WM8985_ADCVU_WIDTH 1
413 #define WM8985_ADCVOLR_MASK 0x00FF
414 #define WM8985_ADCVOLR_SHIFT 0
415 #define WM8985_ADCVOLR_WIDTH 8
420 #define WM8985_EQ3DMODE 0x0100
421 #define WM8985_EQ3DMODE_MASK 0x0100
422 #define WM8985_EQ3DMODE_SHIFT 8
423 #define WM8985_EQ3DMODE_WIDTH 1
424 #define WM8985_EQ1C_MASK 0x0060
425 #define WM8985_EQ1C_SHIFT 5
426 #define WM8985_EQ1C_WIDTH 2
427 #define WM8985_EQ1G_MASK 0x001F
428 #define WM8985_EQ1G_SHIFT 0
429 #define WM8985_EQ1G_WIDTH 5
434 #define WM8985_EQ2BW 0x0100
435 #define WM8985_EQ2BW_MASK 0x0100
436 #define WM8985_EQ2BW_SHIFT 8
437 #define WM8985_EQ2BW_WIDTH 1
438 #define WM8985_EQ2C_MASK 0x0060
439 #define WM8985_EQ2C_SHIFT 5
440 #define WM8985_EQ2C_WIDTH 2
441 #define WM8985_EQ2G_MASK 0x001F
442 #define WM8985_EQ2G_SHIFT 0
443 #define WM8985_EQ2G_WIDTH 5
448 #define WM8985_EQ3BW 0x0100
449 #define WM8985_EQ3BW_MASK 0x0100
450 #define WM8985_EQ3BW_SHIFT 8
451 #define WM8985_EQ3BW_WIDTH 1
452 #define WM8985_EQ3C_MASK 0x0060
453 #define WM8985_EQ3C_SHIFT 5
454 #define WM8985_EQ3C_WIDTH 2
455 #define WM8985_EQ3G_MASK 0x001F
456 #define WM8985_EQ3G_SHIFT 0
457 #define WM8985_EQ3G_WIDTH 5
462 #define WM8985_EQ4BW 0x0100
463 #define WM8985_EQ4BW_MASK 0x0100
464 #define WM8985_EQ4BW_SHIFT 8
465 #define WM8985_EQ4BW_WIDTH 1
466 #define WM8985_EQ4C_MASK 0x0060
467 #define WM8985_EQ4C_SHIFT 5
468 #define WM8985_EQ4C_WIDTH 2
469 #define WM8985_EQ4G_MASK 0x001F
470 #define WM8985_EQ4G_SHIFT 0
471 #define WM8985_EQ4G_WIDTH 5
476 #define WM8985_EQ5C_MASK 0x0060
477 #define WM8985_EQ5C_SHIFT 5
478 #define WM8985_EQ5C_WIDTH 2
479 #define WM8985_EQ5G_MASK 0x001F
480 #define WM8985_EQ5G_SHIFT 0
481 #define WM8985_EQ5G_WIDTH 5
486 #define WM8985_LIMEN 0x0100
487 #define WM8985_LIMEN_MASK 0x0100
488 #define WM8985_LIMEN_SHIFT 8
489 #define WM8985_LIMEN_WIDTH 1
490 #define WM8985_LIMDCY_MASK 0x00F0
491 #define WM8985_LIMDCY_SHIFT 4
492 #define WM8985_LIMDCY_WIDTH 4
493 #define WM8985_LIMATK_MASK 0x000F
494 #define WM8985_LIMATK_SHIFT 0
495 #define WM8985_LIMATK_WIDTH 4
500 #define WM8985_LIMLVL_MASK 0x0070
501 #define WM8985_LIMLVL_SHIFT 4
502 #define WM8985_LIMLVL_WIDTH 3
503 #define WM8985_LIMBOOST_MASK 0x000F
504 #define WM8985_LIMBOOST_SHIFT 0
505 #define WM8985_LIMBOOST_WIDTH 4
510 #define WM8985_NFU 0x0100
511 #define WM8985_NFU_MASK 0x0100
512 #define WM8985_NFU_SHIFT 8
513 #define WM8985_NFU_WIDTH 1
514 #define WM8985_NFEN 0x0080
515 #define WM8985_NFEN_MASK 0x0080
516 #define WM8985_NFEN_SHIFT 7
517 #define WM8985_NFEN_WIDTH 1
518 #define WM8985_NFA0_13_7_MASK 0x007F
519 #define WM8985_NFA0_13_7_SHIFT 0
520 #define WM8985_NFA0_13_7_WIDTH 7
525 #define WM8985_NFU 0x0100
526 #define WM8985_NFU_MASK 0x0100
527 #define WM8985_NFU_SHIFT 8
528 #define WM8985_NFU_WIDTH 1
529 #define WM8985_NFA0_6_0_MASK 0x007F
530 #define WM8985_NFA0_6_0_SHIFT 0
531 #define WM8985_NFA0_6_0_WIDTH 7
536 #define WM8985_NFU 0x0100
537 #define WM8985_NFU_MASK 0x0100
538 #define WM8985_NFU_SHIFT 8
539 #define WM8985_NFU_WIDTH 1
540 #define WM8985_NFA1_13_7_MASK 0x007F
541 #define WM8985_NFA1_13_7_SHIFT 0
542 #define WM8985_NFA1_13_7_WIDTH 7
547 #define WM8985_NFU 0x0100
548 #define WM8985_NFU_MASK 0x0100
549 #define WM8985_NFU_SHIFT 8
550 #define WM8985_NFU_WIDTH 1
551 #define WM8985_NFA1_6_0_MASK 0x007F
552 #define WM8985_NFA1_6_0_SHIFT 0
553 #define WM8985_NFA1_6_0_WIDTH 7
558 #define WM8985_ALCSEL_MASK 0x0180
559 #define WM8985_ALCSEL_SHIFT 7
560 #define WM8985_ALCSEL_WIDTH 2
561 #define WM8985_ALCMAX_MASK 0x0038
562 #define WM8985_ALCMAX_SHIFT 3
563 #define WM8985_ALCMAX_WIDTH 3
564 #define WM8985_ALCMIN_MASK 0x0007
565 #define WM8985_ALCMIN_SHIFT 0
566 #define WM8985_ALCMIN_WIDTH 3
571 #define WM8985_ALCHLD_MASK 0x00F0
572 #define WM8985_ALCHLD_SHIFT 4
573 #define WM8985_ALCHLD_WIDTH 4
574 #define WM8985_ALCLVL_MASK 0x000F
575 #define WM8985_ALCLVL_SHIFT 0
576 #define WM8985_ALCLVL_WIDTH 4
581 #define WM8985_ALCMODE 0x0100
582 #define WM8985_ALCMODE_MASK 0x0100
583 #define WM8985_ALCMODE_SHIFT 8
584 #define WM8985_ALCMODE_WIDTH 1
585 #define WM8985_ALCDCY_MASK 0x00F0
586 #define WM8985_ALCDCY_SHIFT 4
587 #define WM8985_ALCDCY_WIDTH 4
588 #define WM8985_ALCATK_MASK 0x000F
589 #define WM8985_ALCATK_SHIFT 0
590 #define WM8985_ALCATK_WIDTH 4
595 #define WM8985_NGEN 0x0008
596 #define WM8985_NGEN_MASK 0x0008
597 #define WM8985_NGEN_SHIFT 3
598 #define WM8985_NGEN_WIDTH 1
599 #define WM8985_NGTH_MASK 0x0007
600 #define WM8985_NGTH_SHIFT 0
601 #define WM8985_NGTH_WIDTH 3
606 #define WM8985_PLL_PRESCALE 0x0010
607 #define WM8985_PLL_PRESCALE_MASK 0x0010
608 #define WM8985_PLL_PRESCALE_SHIFT 4
609 #define WM8985_PLL_PRESCALE_WIDTH 1
610 #define WM8985_PLLN_MASK 0x000F
611 #define WM8985_PLLN_SHIFT 0
612 #define WM8985_PLLN_WIDTH 4
617 #define WM8985_PLLK_23_18_MASK 0x003F
618 #define WM8985_PLLK_23_18_SHIFT 0
619 #define WM8985_PLLK_23_18_WIDTH 6
624 #define WM8985_PLLK_17_9_MASK 0x01FF
625 #define WM8985_PLLK_17_9_SHIFT 0
626 #define WM8985_PLLK_17_9_WIDTH 9
631 #define WM8985_PLLK_8_0_MASK 0x01FF
632 #define WM8985_PLLK_8_0_SHIFT 0
633 #define WM8985_PLLK_8_0_WIDTH 9
638 #define WM8985_DEPTH3D_MASK 0x000F
639 #define WM8985_DEPTH3D_SHIFT 0
640 #define WM8985_DEPTH3D_WIDTH 4
645 #define WM8985_OUT4_2ADCVOL_MASK 0x01C0
646 #define WM8985_OUT4_2ADCVOL_SHIFT 6
647 #define WM8985_OUT4_2ADCVOL_WIDTH 3
648 #define WM8985_OUT4_2LNR 0x0020
649 #define WM8985_OUT4_2LNR_MASK 0x0020
650 #define WM8985_OUT4_2LNR_SHIFT 5
651 #define WM8985_OUT4_2LNR_WIDTH 1
652 #define WM8985_POBCTRL 0x0004
653 #define WM8985_POBCTRL_MASK 0x0004
654 #define WM8985_POBCTRL_SHIFT 2
655 #define WM8985_POBCTRL_WIDTH 1
656 #define WM8985_DELEN 0x0002
657 #define WM8985_DELEN_MASK 0x0002
658 #define WM8985_DELEN_SHIFT 1
659 #define WM8985_DELEN_WIDTH 1
660 #define WM8985_OUT1DEL 0x0001
661 #define WM8985_OUT1DEL_MASK 0x0001
662 #define WM8985_OUT1DEL_SHIFT 0
663 #define WM8985_OUT1DEL_WIDTH 1
668 #define WM8985_BYPL2RMIX 0x0100
669 #define WM8985_BYPL2RMIX_MASK 0x0100
670 #define WM8985_BYPL2RMIX_SHIFT 8
671 #define WM8985_BYPL2RMIX_WIDTH 1
672 #define WM8985_BYPR2LMIX 0x0080
673 #define WM8985_BYPR2LMIX_MASK 0x0080
674 #define WM8985_BYPR2LMIX_SHIFT 7
675 #define WM8985_BYPR2LMIX_WIDTH 1
676 #define WM8985_MUTERPGA2INV 0x0020
677 #define WM8985_MUTERPGA2INV_MASK 0x0020
678 #define WM8985_MUTERPGA2INV_SHIFT 5
679 #define WM8985_MUTERPGA2INV_WIDTH 1
680 #define WM8985_INVROUT2 0x0010
681 #define WM8985_INVROUT2_MASK 0x0010
682 #define WM8985_INVROUT2_SHIFT 4
683 #define WM8985_INVROUT2_WIDTH 1
684 #define WM8985_BEEPVOL_MASK 0x000E
685 #define WM8985_BEEPVOL_SHIFT 1
686 #define WM8985_BEEPVOL_WIDTH 3
687 #define WM8985_BEEPEN 0x0001
688 #define WM8985_BEEPEN_MASK 0x0001
689 #define WM8985_BEEPEN_SHIFT 0
690 #define WM8985_BEEPEN_WIDTH 1
695 #define WM8985_MBVSEL 0x0100
696 #define WM8985_MBVSEL_MASK 0x0100
697 #define WM8985_MBVSEL_SHIFT 8
698 #define WM8985_MBVSEL_WIDTH 1
699 #define WM8985_R2_2INPPGA 0x0040
700 #define WM8985_R2_2INPPGA_MASK 0x0040
701 #define WM8985_R2_2INPPGA_SHIFT 6
702 #define WM8985_R2_2INPPGA_WIDTH 1
703 #define WM8985_RIN2INPPGA 0x0020
704 #define WM8985_RIN2INPPGA_MASK 0x0020
705 #define WM8985_RIN2INPPGA_SHIFT 5
706 #define WM8985_RIN2INPPGA_WIDTH 1
707 #define WM8985_RIP2INPPGA 0x0010
708 #define WM8985_RIP2INPPGA_MASK 0x0010
709 #define WM8985_RIP2INPPGA_SHIFT 4
710 #define WM8985_RIP2INPPGA_WIDTH 1
711 #define WM8985_L2_2INPPGA 0x0004
712 #define WM8985_L2_2INPPGA_MASK 0x0004
713 #define WM8985_L2_2INPPGA_SHIFT 2
714 #define WM8985_L2_2INPPGA_WIDTH 1
715 #define WM8985_LIN2INPPGA 0x0002
716 #define WM8985_LIN2INPPGA_MASK 0x0002
717 #define WM8985_LIN2INPPGA_SHIFT 1
718 #define WM8985_LIN2INPPGA_WIDTH 1
719 #define WM8985_LIP2INPPGA 0x0001
720 #define WM8985_LIP2INPPGA_MASK 0x0001
721 #define WM8985_LIP2INPPGA_SHIFT 0
722 #define WM8985_LIP2INPPGA_WIDTH 1
727 #define WM8985_INPGAVU 0x0100
728 #define WM8985_INPGAVU_MASK 0x0100
729 #define WM8985_INPGAVU_SHIFT 8
730 #define WM8985_INPGAVU_WIDTH 1
731 #define WM8985_INPPGAZCL 0x0080
732 #define WM8985_INPPGAZCL_MASK 0x0080
733 #define WM8985_INPPGAZCL_SHIFT 7
734 #define WM8985_INPPGAZCL_WIDTH 1
735 #define WM8985_INPPGAMUTEL 0x0040
736 #define WM8985_INPPGAMUTEL_MASK 0x0040
737 #define WM8985_INPPGAMUTEL_SHIFT 6
738 #define WM8985_INPPGAMUTEL_WIDTH 1
739 #define WM8985_INPPGAVOLL_MASK 0x003F
740 #define WM8985_INPPGAVOLL_SHIFT 0
741 #define WM8985_INPPGAVOLL_WIDTH 6
746 #define WM8985_INPGAVU 0x0100
747 #define WM8985_INPGAVU_MASK 0x0100
748 #define WM8985_INPGAVU_SHIFT 8
749 #define WM8985_INPGAVU_WIDTH 1
750 #define WM8985_INPPGAZCR 0x0080
751 #define WM8985_INPPGAZCR_MASK 0x0080
752 #define WM8985_INPPGAZCR_SHIFT 7
753 #define WM8985_INPPGAZCR_WIDTH 1
754 #define WM8985_INPPGAMUTER 0x0040
755 #define WM8985_INPPGAMUTER_MASK 0x0040
756 #define WM8985_INPPGAMUTER_SHIFT 6
757 #define WM8985_INPPGAMUTER_WIDTH 1
758 #define WM8985_INPPGAVOLR_MASK 0x003F
759 #define WM8985_INPPGAVOLR_SHIFT 0
760 #define WM8985_INPPGAVOLR_WIDTH 6
765 #define WM8985_PGABOOSTL 0x0100
766 #define WM8985_PGABOOSTL_MASK 0x0100
767 #define WM8985_PGABOOSTL_SHIFT 8
768 #define WM8985_PGABOOSTL_WIDTH 1
769 #define WM8985_L2_2BOOSTVOL_MASK 0x0070
770 #define WM8985_L2_2BOOSTVOL_SHIFT 4
771 #define WM8985_L2_2BOOSTVOL_WIDTH 3
772 #define WM8985_AUXL2BOOSTVOL_MASK 0x0007
773 #define WM8985_AUXL2BOOSTVOL_SHIFT 0
774 #define WM8985_AUXL2BOOSTVOL_WIDTH 3
779 #define WM8985_PGABOOSTR 0x0100
780 #define WM8985_PGABOOSTR_MASK 0x0100
781 #define WM8985_PGABOOSTR_SHIFT 8
782 #define WM8985_PGABOOSTR_WIDTH 1
783 #define WM8985_R2_2BOOSTVOL_MASK 0x0070
784 #define WM8985_R2_2BOOSTVOL_SHIFT 4
785 #define WM8985_R2_2BOOSTVOL_WIDTH 3
786 #define WM8985_AUXR2BOOSTVOL_MASK 0x0007
787 #define WM8985_AUXR2BOOSTVOL_SHIFT 0
788 #define WM8985_AUXR2BOOSTVOL_WIDTH 3
793 #define WM8985_DACL2RMIX 0x0040
794 #define WM8985_DACL2RMIX_MASK 0x0040
795 #define WM8985_DACL2RMIX_SHIFT 6
796 #define WM8985_DACL2RMIX_WIDTH 1
797 #define WM8985_DACR2LMIX 0x0020
798 #define WM8985_DACR2LMIX_MASK 0x0020
799 #define WM8985_DACR2LMIX_SHIFT 5
800 #define WM8985_DACR2LMIX_WIDTH 1
801 #define WM8985_OUT4BOOST 0x0010
802 #define WM8985_OUT4BOOST_MASK 0x0010
803 #define WM8985_OUT4BOOST_SHIFT 4
804 #define WM8985_OUT4BOOST_WIDTH 1
805 #define WM8985_OUT3BOOST 0x0008
806 #define WM8985_OUT3BOOST_MASK 0x0008
807 #define WM8985_OUT3BOOST_SHIFT 3
808 #define WM8985_OUT3BOOST_WIDTH 1
809 #define WM8985_TSOPCTRL 0x0004
810 #define WM8985_TSOPCTRL_MASK 0x0004
811 #define WM8985_TSOPCTRL_SHIFT 2
812 #define WM8985_TSOPCTRL_WIDTH 1
813 #define WM8985_TSDEN 0x0002
814 #define WM8985_TSDEN_MASK 0x0002
815 #define WM8985_TSDEN_SHIFT 1
816 #define WM8985_TSDEN_WIDTH 1
817 #define WM8985_VROI 0x0001
818 #define WM8985_VROI_MASK 0x0001
819 #define WM8985_VROI_SHIFT 0
820 #define WM8985_VROI_WIDTH 1
825 #define WM8985_AUXLMIXVOL_MASK 0x01C0
826 #define WM8985_AUXLMIXVOL_SHIFT 6
827 #define WM8985_AUXLMIXVOL_WIDTH 3
828 #define WM8985_AUXL2LMIX 0x0020
829 #define WM8985_AUXL2LMIX_MASK 0x0020
830 #define WM8985_AUXL2LMIX_SHIFT 5
831 #define WM8985_AUXL2LMIX_WIDTH 1
832 #define WM8985_BYPLMIXVOL_MASK 0x001C
833 #define WM8985_BYPLMIXVOL_SHIFT 2
834 #define WM8985_BYPLMIXVOL_WIDTH 3
835 #define WM8985_BYPL2LMIX 0x0002
836 #define WM8985_BYPL2LMIX_MASK 0x0002
837 #define WM8985_BYPL2LMIX_SHIFT 1
838 #define WM8985_BYPL2LMIX_WIDTH 1
839 #define WM8985_DACL2LMIX 0x0001
840 #define WM8985_DACL2LMIX_MASK 0x0001
841 #define WM8985_DACL2LMIX_SHIFT 0
842 #define WM8985_DACL2LMIX_WIDTH 1
847 #define WM8985_AUXRMIXVOL_MASK 0x01C0
848 #define WM8985_AUXRMIXVOL_SHIFT 6
849 #define WM8985_AUXRMIXVOL_WIDTH 3
850 #define WM8985_AUXR2RMIX 0x0020
851 #define WM8985_AUXR2RMIX_MASK 0x0020
852 #define WM8985_AUXR2RMIX_SHIFT 5
853 #define WM8985_AUXR2RMIX_WIDTH 1
854 #define WM8985_BYPRMIXVOL_MASK 0x001C
855 #define WM8985_BYPRMIXVOL_SHIFT 2
856 #define WM8985_BYPRMIXVOL_WIDTH 3
857 #define WM8985_BYPR2RMIX 0x0002
858 #define WM8985_BYPR2RMIX_MASK 0x0002
859 #define WM8985_BYPR2RMIX_SHIFT 1
860 #define WM8985_BYPR2RMIX_WIDTH 1
861 #define WM8985_DACR2RMIX 0x0001
862 #define WM8985_DACR2RMIX_MASK 0x0001
863 #define WM8985_DACR2RMIX_SHIFT 0
864 #define WM8985_DACR2RMIX_WIDTH 1
869 #define WM8985_OUT1VU 0x0100
870 #define WM8985_OUT1VU_MASK 0x0100
871 #define WM8985_OUT1VU_SHIFT 8
872 #define WM8985_OUT1VU_WIDTH 1
873 #define WM8985_LOUT1ZC 0x0080
874 #define WM8985_LOUT1ZC_MASK 0x0080
875 #define WM8985_LOUT1ZC_SHIFT 7
876 #define WM8985_LOUT1ZC_WIDTH 1
877 #define WM8985_LOUT1MUTE 0x0040
878 #define WM8985_LOUT1MUTE_MASK 0x0040
879 #define WM8985_LOUT1MUTE_SHIFT 6
880 #define WM8985_LOUT1MUTE_WIDTH 1
881 #define WM8985_LOUT1VOL_MASK 0x003F
882 #define WM8985_LOUT1VOL_SHIFT 0
883 #define WM8985_LOUT1VOL_WIDTH 6
888 #define WM8985_OUT1VU 0x0100
889 #define WM8985_OUT1VU_MASK 0x0100
890 #define WM8985_OUT1VU_SHIFT 8
891 #define WM8985_OUT1VU_WIDTH 1
892 #define WM8985_ROUT1ZC 0x0080
893 #define WM8985_ROUT1ZC_MASK 0x0080
894 #define WM8985_ROUT1ZC_SHIFT 7
895 #define WM8985_ROUT1ZC_WIDTH 1
896 #define WM8985_ROUT1MUTE 0x0040
897 #define WM8985_ROUT1MUTE_MASK 0x0040
898 #define WM8985_ROUT1MUTE_SHIFT 6
899 #define WM8985_ROUT1MUTE_WIDTH 1
900 #define WM8985_ROUT1VOL_MASK 0x003F
901 #define WM8985_ROUT1VOL_SHIFT 0
902 #define WM8985_ROUT1VOL_WIDTH 6
907 #define WM8985_OUT2VU 0x0100
908 #define WM8985_OUT2VU_MASK 0x0100
909 #define WM8985_OUT2VU_SHIFT 8
910 #define WM8985_OUT2VU_WIDTH 1
911 #define WM8985_LOUT2ZC 0x0080
912 #define WM8985_LOUT2ZC_MASK 0x0080
913 #define WM8985_LOUT2ZC_SHIFT 7
914 #define WM8985_LOUT2ZC_WIDTH 1
915 #define WM8985_LOUT2MUTE 0x0040
916 #define WM8985_LOUT2MUTE_MASK 0x0040
917 #define WM8985_LOUT2MUTE_SHIFT 6
918 #define WM8985_LOUT2MUTE_WIDTH 1
919 #define WM8985_LOUT2VOL_MASK 0x003F
920 #define WM8985_LOUT2VOL_SHIFT 0
921 #define WM8985_LOUT2VOL_WIDTH 6
926 #define WM8985_OUT2VU 0x0100
927 #define WM8985_OUT2VU_MASK 0x0100
928 #define WM8985_OUT2VU_SHIFT 8
929 #define WM8985_OUT2VU_WIDTH 1
930 #define WM8985_ROUT2ZC 0x0080
931 #define WM8985_ROUT2ZC_MASK 0x0080
932 #define WM8985_ROUT2ZC_SHIFT 7
933 #define WM8985_ROUT2ZC_WIDTH 1
934 #define WM8985_ROUT2MUTE 0x0040
935 #define WM8985_ROUT2MUTE_MASK 0x0040
936 #define WM8985_ROUT2MUTE_SHIFT 6
937 #define WM8985_ROUT2MUTE_WIDTH 1
938 #define WM8985_ROUT2VOL_MASK 0x003F
939 #define WM8985_ROUT2VOL_SHIFT 0
940 #define WM8985_ROUT2VOL_WIDTH 6
945 #define WM8985_OUT3MUTE 0x0040
946 #define WM8985_OUT3MUTE_MASK 0x0040
947 #define WM8985_OUT3MUTE_SHIFT 6
948 #define WM8985_OUT3MUTE_WIDTH 1
949 #define WM8985_OUT4_2OUT3 0x0008
950 #define WM8985_OUT4_2OUT3_MASK 0x0008
951 #define WM8985_OUT4_2OUT3_SHIFT 3
952 #define WM8985_OUT4_2OUT3_WIDTH 1
953 #define WM8985_BYPL2OUT3 0x0004
954 #define WM8985_BYPL2OUT3_MASK 0x0004
955 #define WM8985_BYPL2OUT3_SHIFT 2
956 #define WM8985_BYPL2OUT3_WIDTH 1
957 #define WM8985_LMIX2OUT3 0x0002
958 #define WM8985_LMIX2OUT3_MASK 0x0002
959 #define WM8985_LMIX2OUT3_SHIFT 1
960 #define WM8985_LMIX2OUT3_WIDTH 1
961 #define WM8985_LDAC2OUT3 0x0001
962 #define WM8985_LDAC2OUT3_MASK 0x0001
963 #define WM8985_LDAC2OUT3_SHIFT 0
964 #define WM8985_LDAC2OUT3_WIDTH 1
969 #define WM8985_OUT3_2OUT4 0x0080
970 #define WM8985_OUT3_2OUT4_MASK 0x0080
971 #define WM8985_OUT3_2OUT4_SHIFT 7
972 #define WM8985_OUT3_2OUT4_WIDTH 1
973 #define WM8985_OUT4MUTE 0x0040
974 #define WM8985_OUT4MUTE_MASK 0x0040
975 #define WM8985_OUT4MUTE_SHIFT 6
976 #define WM8985_OUT4MUTE_WIDTH 1
977 #define WM8985_OUT4ATTN 0x0020
978 #define WM8985_OUT4ATTN_MASK 0x0020
979 #define WM8985_OUT4ATTN_SHIFT 5
980 #define WM8985_OUT4ATTN_WIDTH 1
981 #define WM8985_LMIX2OUT4 0x0010
982 #define WM8985_LMIX2OUT4_MASK 0x0010
983 #define WM8985_LMIX2OUT4_SHIFT 4
984 #define WM8985_LMIX2OUT4_WIDTH 1
985 #define WM8985_LDAC2OUT4 0x0008
986 #define WM8985_LDAC2OUT4_MASK 0x0008
987 #define WM8985_LDAC2OUT4_SHIFT 3
988 #define WM8985_LDAC2OUT4_WIDTH 1
989 #define WM8985_BYPR2OUT4 0x0004
990 #define WM8985_BYPR2OUT4_MASK 0x0004
991 #define WM8985_BYPR2OUT4_SHIFT 2
992 #define WM8985_BYPR2OUT4_WIDTH 1
993 #define WM8985_RMIX2OUT4 0x0002
994 #define WM8985_RMIX2OUT4_MASK 0x0002
995 #define WM8985_RMIX2OUT4_SHIFT 1
996 #define WM8985_RMIX2OUT4_WIDTH 1
997 #define WM8985_RDAC2OUT4 0x0001
998 #define WM8985_RDAC2OUT4_MASK 0x0001
999 #define WM8985_RDAC2OUT4_SHIFT 0
1000 #define WM8985_RDAC2OUT4_WIDTH 1
1005 #define WM8985_VIDBUFFTST_MASK 0x01E0
1006 #define WM8985_VIDBUFFTST_SHIFT 5
1007 #define WM8985_VIDBUFFTST_WIDTH 4
1008 #define WM8985_HPTOG 0x0008
1009 #define WM8985_HPTOG_MASK 0x0008
1010 #define WM8985_HPTOG_SHIFT 3
1011 #define WM8985_HPTOG_WIDTH 1
1016 #define WM8985_BIASCUT 0x0100
1017 #define WM8985_BIASCUT_MASK 0x0100
1018 #define WM8985_BIASCUT_SHIFT 8
1019 #define WM8985_BIASCUT_WIDTH 1
1020 #define WM8985_HALFIPBIAS 0x0080
1021 #define WM8985_HALFIPBIAS_MASK 0x0080
1022 #define WM8985_HALFIPBIAS_SHIFT 7
1023 #define WM8985_HALFIPBIAS_WIDTH 1
1024 #define WM8985_VBBIASTST_MASK 0x0060
1025 #define WM8985_VBBIASTST_SHIFT 5
1026 #define WM8985_VBBIASTST_WIDTH 2
1027 #define WM8985_BUFBIAS_MASK 0x0018
1028 #define WM8985_BUFBIAS_SHIFT 3
1029 #define WM8985_BUFBIAS_WIDTH 2
1030 #define WM8985_ADCBIAS_MASK 0x0006
1031 #define WM8985_ADCBIAS_SHIFT 1
1032 #define WM8985_ADCBIAS_WIDTH 2
1033 #define WM8985_HALFOPBIAS 0x0001
1034 #define WM8985_HALFOPBIAS_MASK 0x0001
1035 #define WM8985_HALFOPBIAS_SHIFT 0
1036 #define WM8985_HALFOPBIAS_WIDTH 1
1043 #define WM8985_PLL 0