Go to the documentation of this file.
15 #ifndef __WM8990REGISTERDEFS_H__
16 #define __WM8990REGISTERDEFS_H__
21 #define WM8990_RESET 0x00
22 #define WM8990_POWER_MANAGEMENT_1 0x01
23 #define WM8990_POWER_MANAGEMENT_2 0x02
24 #define WM8990_POWER_MANAGEMENT_3 0x03
25 #define WM8990_AUDIO_INTERFACE_1 0x04
26 #define WM8990_AUDIO_INTERFACE_2 0x05
27 #define WM8990_CLOCKING_1 0x06
28 #define WM8990_CLOCKING_2 0x07
29 #define WM8990_AUDIO_INTERFACE_3 0x08
30 #define WM8990_AUDIO_INTERFACE_4 0x09
31 #define WM8990_DAC_CTRL 0x0A
32 #define WM8990_LEFT_DAC_DIGITAL_VOLUME 0x0B
33 #define WM8990_RIGHT_DAC_DIGITAL_VOLUME 0x0C
34 #define WM8990_DIGITAL_SIDE_TONE 0x0D
35 #define WM8990_ADC_CTRL 0x0E
36 #define WM8990_LEFT_ADC_DIGITAL_VOLUME 0x0F
37 #define WM8990_RIGHT_ADC_DIGITAL_VOLUME 0x10
38 #define WM8990_GPIO_CTRL_1 0x12
39 #define WM8990_GPIO1_GPIO2 0x13
40 #define WM8990_GPIO3_GPIO4 0x14
41 #define WM8990_GPIO5_GPIO6 0x15
42 #define WM8990_GPIOCTRL_2 0x16
43 #define WM8990_GPIO_POL 0x17
44 #define WM8990_LEFT_LINE_INPUT_1_2_VOLUME 0x18
45 #define WM8990_LEFT_LINE_INPUT_3_4_VOLUME 0x19
46 #define WM8990_RIGHT_LINE_INPUT_1_2_VOLUME 0x1A
47 #define WM8990_RIGHT_LINE_INPUT_3_4_VOLUME 0x1B
48 #define WM8990_LEFT_OUTPUT_VOLUME 0x1C
49 #define WM8990_RIGHT_OUTPUT_VOLUME 0x1D
50 #define WM8990_LINE_OUTPUTS_VOLUME 0x1E
51 #define WM8990_OUT3_4_VOLUME 0x1F
52 #define WM8990_LEFT_OPGA_VOLUME 0x20
53 #define WM8990_RIGHT_OPGA_VOLUME 0x21
54 #define WM8990_SPEAKER_VOLUME 0x22
55 #define WM8990_CLASSD1 0x23
56 #define WM8990_CLASSD3 0x25
57 #define WM8990_CLASSD4 0x26
58 #define WM8990_INPUT_MIXER1 0x27
59 #define WM8990_INPUT_MIXER2 0x28
60 #define WM8990_INPUT_MIXER3 0x29
61 #define WM8990_INPUT_MIXER4 0x2A
62 #define WM8990_INPUT_MIXER5 0x2B
63 #define WM8990_INPUT_MIXER6 0x2C
64 #define WM8990_OUTPUT_MIXER1 0x2D
65 #define WM8990_OUTPUT_MIXER2 0x2E
66 #define WM8990_OUTPUT_MIXER3 0x2F
67 #define WM8990_OUTPUT_MIXER4 0x30
68 #define WM8990_OUTPUT_MIXER5 0x31
69 #define WM8990_OUTPUT_MIXER6 0x32
70 #define WM8990_OUT3_4_MIXER 0x33
71 #define WM8990_LINE_MIXER1 0x34
72 #define WM8990_LINE_MIXER2 0x35
73 #define WM8990_SPEAKER_MIXER 0x36
74 #define WM8990_ADDITIONAL_CONTROL 0x37
75 #define WM8990_ANTIPOP1 0x38
76 #define WM8990_ANTIPOP2 0x39
77 #define WM8990_MICBIAS 0x3A
78 #define WM8990_PLL1 0x3C
79 #define WM8990_PLL2 0x3D
80 #define WM8990_PLL3 0x3E
81 #define WM8990_INTDRIVBITS 0x3F
83 #define WM8990_EXT_ACCESS_ENA 0x75
84 #define WM8990_EXT_CTL1 0x7a
93 #define WM8990_SW_RESET_CHIP_ID_MASK 0xFFFF
98 #define WM8990_SPK_ENA 0x1000
99 #define WM8990_SPK_ENA_BIT 12
100 #define WM8990_OUT3_ENA 0x0800
101 #define WM8990_OUT3_ENA_BIT 11
102 #define WM8990_OUT4_ENA 0x0400
103 #define WM8990_OUT4_ENA_BIT 10
104 #define WM8990_LOUT_ENA 0x0200
105 #define WM8990_LOUT_ENA_BIT 9
106 #define WM8990_ROUT_ENA 0x0100
107 #define WM8990_ROUT_ENA_BIT 8
108 #define WM8990_MICBIAS_ENA 0x0010
109 #define WM8990_MICBIAS_ENA_BIT 4
110 #define WM8990_VMID_MODE_MASK 0x0006
111 #define WM8990_VREF_ENA 0x0001
112 #define WM8990_VREF_ENA_BIT 0
117 #define WM8990_PLL_ENA 0x8000
118 #define WM8990_PLL_ENA_BIT 15
119 #define WM8990_TSHUT_ENA 0x4000
120 #define WM8990_TSHUT_ENA_BIT 14
121 #define WM8990_TSHUT_OPDIS 0x2000
122 #define WM8990_TSHUT_OPDIS_BIT 13
123 #define WM8990_OPCLK_ENA 0x0800
124 #define WM8990_OPCLK_ENA_BIT 11
125 #define WM8990_AINL_ENA 0x0200
126 #define WM8990_AINL_ENA_BIT 9
127 #define WM8990_AINR_ENA 0x0100
128 #define WM8990_AINR_ENA_BIT 8
129 #define WM8990_LIN34_ENA 0x0080
130 #define WM8990_LIN34_ENA_BIT 7
131 #define WM8990_LIN12_ENA 0x0040
132 #define WM8990_LIN12_ENA_BIT 6
133 #define WM8990_RIN34_ENA 0x0020
134 #define WM8990_RIN34_ENA_BIT 5
135 #define WM8990_RIN12_ENA 0x0010
136 #define WM8990_RIN12_ENA_BIT 4
137 #define WM8990_ADCL_ENA 0x0002
138 #define WM8990_ADCL_ENA_BIT 1
139 #define WM8990_ADCR_ENA 0x0001
140 #define WM8990_ADCR_ENA_BIT 0
145 #define WM8990_LON_ENA 0x2000
146 #define WM8990_LON_ENA_BIT 13
147 #define WM8990_LOP_ENA 0x1000
148 #define WM8990_LOP_ENA_BIT 12
149 #define WM8990_RON_ENA 0x0800
150 #define WM8990_RON_ENA_BIT 11
151 #define WM8990_ROP_ENA 0x0400
152 #define WM8990_ROP_ENA_BIT 10
153 #define WM8990_LOPGA_ENA 0x0080
154 #define WM8990_LOPGA_ENA_BIT 7
155 #define WM8990_ROPGA_ENA 0x0040
156 #define WM8990_ROPGA_ENA_BIT 6
157 #define WM8990_LOMIX_ENA 0x0020
158 #define WM8990_LOMIX_ENA_BIT 5
159 #define WM8990_ROMIX_ENA 0x0010
160 #define WM8990_ROMIX_ENA_BIT 4
161 #define WM8990_DACL_ENA 0x0002
162 #define WM8990_DACL_ENA_BIT 1
163 #define WM8990_DACR_ENA 0x0001
164 #define WM8990_DACR_ENA_BIT 0
169 #define WM8990_AIFADCL_SRC 0x8000
170 #define WM8990_AIFADCR_SRC 0x4000
171 #define WM8990_AIFADC_TDM 0x2000
172 #define WM8990_AIFADC_TDM_CHAN 0x1000
173 #define WM8990_AIF_BCLK_INV 0x0100
174 #define WM8990_AIF_LRCLK_INV 0x0080
175 #define WM8990_AIF_WL_MASK 0x0060
176 #define WM8990_AIF_WL_16BITS (0 << 5)
177 #define WM8990_AIF_WL_20BITS (1 << 5)
178 #define WM8990_AIF_WL_24BITS (2 << 5)
179 #define WM8990_AIF_WL_32BITS (3 << 5)
180 #define WM8990_AIF_FMT_MASK 0x0018
181 #define WM8990_AIF_TMF_RIGHTJ (0 << 3)
182 #define WM8990_AIF_TMF_LEFTJ (1 << 3)
183 #define WM8990_AIF_TMF_I2S (2 << 3)
184 #define WM8990_AIF_TMF_DSP (3 << 3)
189 #define WM8990_DACL_SRC 0x8000
190 #define WM8990_DACR_SRC 0x4000
191 #define WM8990_AIFDAC_TDM 0x2000
192 #define WM8990_AIFDAC_TDM_CHAN 0x1000
193 #define WM8990_DAC_BOOST_MASK 0x0C00
194 #define WM8990_DAC_COMP 0x0010
195 #define WM8990_DAC_COMPMODE 0x0008
196 #define WM8990_ADC_COMP 0x0004
197 #define WM8990_ADC_COMPMODE 0x0002
198 #define WM8990_LOOPBACK 0x0001
203 #define WM8990_TOCLK_RATE 0x8000
204 #define WM8990_TOCLK_ENA 0x4000
205 #define WM8990_OPCLKDIV_MASK 0x1E00
206 #define WM8990_DCLKDIV_MASK 0x01C0
207 #define WM8990_BCLK_DIV_MASK 0x001E
208 #define WM8990_BCLK_DIV_1 (0x0 << 1)
209 #define WM8990_BCLK_DIV_1_5 (0x1 << 1)
210 #define WM8990_BCLK_DIV_2 (0x2 << 1)
211 #define WM8990_BCLK_DIV_3 (0x3 << 1)
212 #define WM8990_BCLK_DIV_4 (0x4 << 1)
213 #define WM8990_BCLK_DIV_5_5 (0x5 << 1)
214 #define WM8990_BCLK_DIV_6 (0x6 << 1)
215 #define WM8990_BCLK_DIV_8 (0x7 << 1)
216 #define WM8990_BCLK_DIV_11 (0x8 << 1)
217 #define WM8990_BCLK_DIV_12 (0x9 << 1)
218 #define WM8990_BCLK_DIV_16 (0xA << 1)
219 #define WM8990_BCLK_DIV_22 (0xB << 1)
220 #define WM8990_BCLK_DIV_24 (0xC << 1)
221 #define WM8990_BCLK_DIV_32 (0xD << 1)
222 #define WM8990_BCLK_DIV_44 (0xE << 1)
223 #define WM8990_BCLK_DIV_48 (0xF << 1)
228 #define WM8990_MCLK_SRC 0x8000
229 #define WM8990_SYSCLK_SRC 0x4000
230 #define WM8990_CLK_FORCE 0x2000
231 #define WM8990_MCLK_DIV_MASK 0x1800
232 #define WM8990_MCLK_DIV_1 (0 << 11)
233 #define WM8990_MCLK_DIV_2 (2 << 11)
234 #define WM8990_MCLK_INV 0x0400
235 #define WM8990_ADC_CLKDIV_MASK 0x00E0
236 #define WM8990_ADC_CLKDIV_1 (0 << 5)
237 #define WM8990_ADC_CLKDIV_1_5 (1 << 5)
238 #define WM8990_ADC_CLKDIV_2 (2 << 5)
239 #define WM8990_ADC_CLKDIV_3 (3 << 5)
240 #define WM8990_ADC_CLKDIV_4 (4 << 5)
241 #define WM8990_ADC_CLKDIV_5_5 (5 << 5)
242 #define WM8990_ADC_CLKDIV_6 (6 << 5)
243 #define WM8990_DAC_CLKDIV_MASK 0x001C
244 #define WM8990_DAC_CLKDIV_1 (0 << 2)
245 #define WM8990_DAC_CLKDIV_1_5 (1 << 2)
246 #define WM8990_DAC_CLKDIV_2 (2 << 2)
247 #define WM8990_DAC_CLKDIV_3 (3 << 2)
248 #define WM8990_DAC_CLKDIV_4 (4 << 2)
249 #define WM8990_DAC_CLKDIV_5_5 (5 << 2)
250 #define WM8990_DAC_CLKDIV_6 (6 << 2)
255 #define WM8990_AIF_MSTR1 0x8000
256 #define WM8990_AIF_MSTR2 0x4000
257 #define WM8990_AIF_SEL 0x2000
258 #define WM8990_ADCLRC_DIR 0x0800
259 #define WM8990_ADCLRC_RATE_MASK 0x07FF
264 #define WM8990_ALRCGPIO1 0x8000
265 #define WM8990_ALRCBGPIO6 0x4000
266 #define WM8990_AIF_TRIS 0x2000
267 #define WM8990_DACLRC_DIR 0x0800
268 #define WM8990_DACLRC_RATE_MASK 0x07FF
273 #define WM8990_AIF_LRCLKRATE 0x0400
274 #define WM8990_DAC_MONO 0x0200
275 #define WM8990_DAC_SB_FILT 0x0100
276 #define WM8990_DAC_MUTERATE 0x0080
277 #define WM8990_DAC_MUTEMODE 0x0040
278 #define WM8990_DEEMP_MASK 0x0030
279 #define WM8990_DAC_MUTE 0x0004
280 #define WM8990_DACL_DATINV 0x0002
281 #define WM8990_DACR_DATINV 0x0001
286 #define WM8990_DAC_VU 0x0100
287 #define WM8990_DACL_VOL_MASK 0x00FF
288 #define WM8990_DACL_VOL_SHIFT 0
292 #define WM8990_DAC_VU 0x0100
293 #define WM8990_DACR_VOL_MASK 0x00FF
294 #define WM8990_DACR_VOL_SHIFT 0
298 #define WM8990_ADCL_DAC_SVOL_MASK 0x0F
299 #define WM8990_ADCL_DAC_SVOL_SHIFT 9
300 #define WM8990_ADCR_DAC_SVOL_MASK 0x0F
301 #define WM8990_ADCR_DAC_SVOL_SHIFT 5
302 #define WM8990_ADC_TO_DACL_MASK 0x03
303 #define WM8990_ADC_TO_DACL_SHIFT 2
304 #define WM8990_ADC_TO_DACR_MASK 0x03
305 #define WM8990_ADC_TO_DACR_SHIFT 0
310 #define WM8990_ADC_HPF_ENA 0x0100
311 #define WM8990_ADC_HPF_ENA_BIT 8
312 #define WM8990_ADC_HPF_CUT_MASK 0x03
313 #define WM8990_ADC_HPF_CUT_SHIFT 5
314 #define WM8990_ADCL_DATINV 0x0002
315 #define WM8990_ADCL_DATINV_BIT 1
316 #define WM8990_ADCR_DATINV 0x0001
317 #define WM8990_ADCR_DATINV_BIT 0
322 #define WM8990_ADC_VU 0x0100
323 #define WM8990_ADCL_VOL_MASK 0x00FF
324 #define WM8990_ADCL_VOL_SHIFT 0
329 #define WM8990_ADC_VU 0x0100
330 #define WM8990_ADCR_VOL_MASK 0x00FF
331 #define WM8990_ADCR_VOL_SHIFT 0
336 #define WM8990_IRQ 0x1000
337 #define WM8990_TEMPOK 0x0800
338 #define WM8990_MICSHRT 0x0400
339 #define WM8990_MICDET 0x0200
340 #define WM8990_PLL_LCK 0x0100
341 #define WM8990_GPI8_STATUS 0x0080
342 #define WM8990_GPI7_STATUS 0x0040
343 #define WM8990_GPIO6_STATUS 0x0020
344 #define WM8990_GPIO5_STATUS 0x0010
345 #define WM8990_GPIO4_STATUS 0x0008
346 #define WM8990_GPIO3_STATUS 0x0004
347 #define WM8990_GPIO2_STATUS 0x0002
348 #define WM8990_GPIO1_STATUS 0x0001
353 #define WM8990_GPIO2_DEB_ENA 0x8000
354 #define WM8990_GPIO2_IRQ_ENA 0x4000
355 #define WM8990_GPIO2_PU 0x2000
356 #define WM8990_GPIO2_PD 0x1000
357 #define WM8990_GPIO2_SEL_MASK 0x0F00
358 #define WM8990_GPIO1_DEB_ENA 0x0080
359 #define WM8990_GPIO1_IRQ_ENA 0x0040
360 #define WM8990_GPIO1_PU 0x0020
361 #define WM8990_GPIO1_PD 0x0010
362 #define WM8990_GPIO1_SEL_MASK 0x000F
367 #define WM8990_GPIO4_DEB_ENA 0x8000
368 #define WM8990_GPIO4_IRQ_ENA 0x4000
369 #define WM8990_GPIO4_PU 0x2000
370 #define WM8990_GPIO4_PD 0x1000
371 #define WM8990_GPIO4_SEL_MASK 0x0F00
372 #define WM8990_GPIO3_DEB_ENA 0x0080
373 #define WM8990_GPIO3_IRQ_ENA 0x0040
374 #define WM8990_GPIO3_PU 0x0020
375 #define WM8990_GPIO3_PD 0x0010
376 #define WM8990_GPIO3_SEL_MASK 0x000F
381 #define WM8990_GPIO6_DEB_ENA 0x8000
382 #define WM8990_GPIO6_IRQ_ENA 0x4000
383 #define WM8990_GPIO6_PU 0x2000
384 #define WM8990_GPIO6_PD 0x1000
385 #define WM8990_GPIO6_SEL_MASK 0x0F00
386 #define WM8990_GPIO5_DEB_ENA 0x0080
387 #define WM8990_GPIO5_IRQ_ENA 0x0040
388 #define WM8990_GPIO5_PU 0x0020
389 #define WM8990_GPIO5_PD 0x0010
390 #define WM8990_GPIO5_SEL_MASK 0x000F
395 #define WM8990_RD_3W_ENA 0x8000
396 #define WM8990_MODE_3W4W 0x4000
397 #define WM8990_TEMPOK_IRQ_ENA 0x0800
398 #define WM8990_MICSHRT_IRQ_ENA 0x0400
399 #define WM8990_MICDET_IRQ_ENA 0x0200
400 #define WM8990_PLL_LCK_IRQ_ENA 0x0100
401 #define WM8990_GPI8_DEB_ENA 0x0080
402 #define WM8990_GPI8_IRQ_ENA 0x0040
403 #define WM8990_GPI8_ENA 0x0010
404 #define WM8990_GPI7_DEB_ENA 0x0008
405 #define WM8990_GPI7_IRQ_ENA 0x0004
406 #define WM8990_GPI7_ENA 0x0001
411 #define WM8990_IRQ_INV 0x1000
412 #define WM8990_TEMPOK_POL 0x0800
413 #define WM8990_MICSHRT_POL 0x0400
414 #define WM8990_MICDET_POL 0x0200
415 #define WM8990_PLL_LCK_POL 0x0100
416 #define WM8990_GPI8_POL 0x0080
417 #define WM8990_GPI7_POL 0x0040
418 #define WM8990_GPIO6_POL 0x0020
419 #define WM8990_GPIO5_POL 0x0010
420 #define WM8990_GPIO4_POL 0x0008
421 #define WM8990_GPIO3_POL 0x0004
422 #define WM8990_GPIO2_POL 0x0002
423 #define WM8990_GPIO1_POL 0x0001
428 #define WM8990_IPVU 0x0100
429 #define WM8990_LI12MUTE 0x0080
430 #define WM8990_LI12MUTE_BIT 7
431 #define WM8990_LI12ZC 0x0040
432 #define WM8990_LI12ZC_BIT 6
433 #define WM8990_LIN12VOL_MASK 0x001F
434 #define WM8990_LIN12VOL_SHIFT 0
438 #define WM8990_IPVU 0x0100
439 #define WM8990_LI34MUTE 0x0080
440 #define WM8990_LI34MUTE_BIT 7
441 #define WM8990_LI34ZC 0x0040
442 #define WM8990_LI34ZC_BIT 6
443 #define WM8990_LIN34VOL_MASK 0x001F
444 #define WM8990_LIN34VOL_SHIFT 0
449 #define WM8990_IPVU 0x0100
450 #define WM8990_RI12MUTE 0x0080
451 #define WM8990_RI12MUTE_BIT 7
452 #define WM8990_RI12ZC 0x0040
453 #define WM8990_RI12ZC_BIT 6
454 #define WM8990_RIN12VOL_MASK 0x001F
455 #define WM8990_RIN12VOL_SHIFT 0
460 #define WM8990_IPVU 0x0100
461 #define WM8990_RI34MUTE 0x0080
462 #define WM8990_RI34MUTE_BIT 7
463 #define WM8990_RI34ZC 0x0040
464 #define WM8990_RI34ZC_BIT 6
465 #define WM8990_RIN34VOL_MASK 0x001F
466 #define WM8990_RIN34VOL_SHIFT 0
471 #define WM8990_OPVU 0x0100
472 #define WM8990_LOZC 0x0080
473 #define WM8990_LOZC_BIT 7
474 #define WM8990_LOUTVOL_MASK 0x007F
475 #define WM8990_LOUTVOL_SHIFT 0
479 #define WM8990_OPVU 0x0100
480 #define WM8990_ROZC 0x0080
481 #define WM8990_ROZC_BIT 7
482 #define WM8990_ROUTVOL_MASK 0x007F
483 #define WM8990_ROUTVOL_SHIFT 0
487 #define WM8990_LONMUTE 0x0040
488 #define WM8990_LONMUTE_BIT 6
489 #define WM8990_LOPMUTE 0x0020
490 #define WM8990_LOPMUTE_BIT 5
491 #define WM8990_LOATTN 0x0010
492 #define WM8990_LOATTN_BIT 4
493 #define WM8990_RONMUTE 0x0004
494 #define WM8990_RONMUTE_BIT 2
495 #define WM8990_ROPMUTE 0x0002
496 #define WM8990_ROPMUTE_BIT 1
497 #define WM8990_ROATTN 0x0001
498 #define WM8990_ROATTN_BIT 0
503 #define WM8990_OUT3MUTE 0x0020
504 #define WM8990_OUT3MUTE_BIT 5
505 #define WM8990_OUT3ATTN 0x0010
506 #define WM8990_OUT3ATTN_BIT 4
507 #define WM8990_OUT4MUTE 0x0002
508 #define WM8990_OUT4MUTE_BIT 1
509 #define WM8990_OUT4ATTN 0x0001
510 #define WM8990_OUT4ATTN_BIT 0
515 #define WM8990_OPVU 0x0100
516 #define WM8990_LOPGAZC 0x0080
517 #define WM8990_LOPGAZC_BIT 7
518 #define WM8990_LOPGAVOL_MASK 0x007F
519 #define WM8990_LOPGAVOL_SHIFT 0
524 #define WM8990_OPVU 0x0100
525 #define WM8990_ROPGAZC 0x0080
526 #define WM8990_ROPGAZC_BIT 7
527 #define WM8990_ROPGAVOL_MASK 0x007F
528 #define WM8990_ROPGAVOL_SHIFT 0
532 #define WM8990_SPKATTN_MASK 0x0003
533 #define WM8990_SPKATTN_SHIFT 0
538 #define WM8990_CDMODE 0x0100
539 #define WM8990_CDMODE_BIT 8
544 #define WM8990_DCGAIN_MASK 0x0007
545 #define WM8990_DCGAIN_SHIFT 3
546 #define WM8990_ACGAIN_MASK 0x0007
547 #define WM8990_ACGAIN_SHIFT 0
552 #define WM8990_SPKZC_MASK 0x0001
553 #define WM8990_SPKZC_SHIFT 7
554 #define WM8990_SPKVOL_MASK 0x007F
555 #define WM8990_SPKVOL_SHIFT 0
560 #define WM8990_AINLMODE_MASK 0x000C
561 #define WM8990_AINLMODE_SHIFT 2
562 #define WM8990_AINRMODE_MASK 0x0003
563 #define WM8990_AINRMODE_SHIFT 0
568 #define WM8990_LMP4 0x0080
569 #define WM8990_LMP4_BIT 7
570 #define WM8990_LMN3 0x0040
571 #define WM8990_LMN3_BIT 6
572 #define WM8990_LMP2 0x0020
573 #define WM8990_LMP2_BIT 5
574 #define WM8990_LMN1 0x0010
575 #define WM8990_LMN1_BIT 4
576 #define WM8990_RMP4 0x0008
577 #define WM8990_RMP4_BIT 3
578 #define WM8990_RMN3 0x0004
579 #define WM8990_RMN3_BIT 2
580 #define WM8990_RMP2 0x0002
581 #define WM8990_RMP2_BIT 1
582 #define WM8990_RMN1 0x0001
583 #define WM8990_RMN1_BIT 0
588 #define WM8990_L34MNB 0x0100
589 #define WM8990_L34MNB_BIT 8
590 #define WM8990_L34MNBST 0x0080
591 #define WM8990_L34MNBST_BIT 7
592 #define WM8990_L12MNB 0x0020
593 #define WM8990_L12MNB_BIT 5
594 #define WM8990_L12MNBST 0x0010
595 #define WM8990_L12MNBST_BIT 4
596 #define WM8990_LDBVOL_MASK 0x0007
597 #define WM8990_LDBVOL_SHIFT 0
602 #define WM8990_R34MNB 0x0100
603 #define WM8990_R34MNB_BIT 8
604 #define WM8990_R34MNBST 0x0080
605 #define WM8990_R34MNBST_BIT 7
606 #define WM8990_R12MNB 0x0020
607 #define WM8990_R12MNB_BIT 5
608 #define WM8990_R12MNBST 0x0010
609 #define WM8990_R12MNBST_BIT 4
610 #define WM8990_RDBVOL_MASK 0x0007
611 #define WM8990_RDBVOL_SHIFT 0
616 #define WM8990_LI2BVOL_MASK 0x07
617 #define WM8990_LI2BVOL_SHIFT 6
618 #define WM8990_LR4BVOL_MASK 0x07
619 #define WM8990_LR4BVOL_SHIFT 3
620 #define WM8990_LL4BVOL_MASK 0x07
621 #define WM8990_LL4BVOL_SHIFT 0
626 #define WM8990_RI2BVOL_MASK 0x07
627 #define WM8990_RI2BVOL_SHIFT 6
628 #define WM8990_RL4BVOL_MASK 0x07
629 #define WM8990_RL4BVOL_SHIFT 3
630 #define WM8990_RR4BVOL_MASK 0x07
631 #define WM8990_RR4BVOL_SHIFT 0
636 #define WM8990_LRBLO 0x0080
637 #define WM8990_LRBLO_BIT 7
638 #define WM8990_LLBLO 0x0040
639 #define WM8990_LLBLO_BIT 6
640 #define WM8990_LRI3LO 0x0020
641 #define WM8990_LRI3LO_BIT 5
642 #define WM8990_LLI3LO 0x0010
643 #define WM8990_LLI3LO_BIT 4
644 #define WM8990_LR12LO 0x0008
645 #define WM8990_LR12LO_BIT 3
646 #define WM8990_LL12LO 0x0004
647 #define WM8990_LL12LO_BIT 2
648 #define WM8990_LDLO 0x0001
649 #define WM8990_LDLO_BIT 0
654 #define WM8990_RLBRO 0x0080
655 #define WM8990_RLBRO_BIT 7
656 #define WM8990_RRBRO 0x0040
657 #define WM8990_RRBRO_BIT 6
658 #define WM8990_RLI3RO 0x0020
659 #define WM8990_RLI3RO_BIT 5
660 #define WM8990_RRI3RO 0x0010
661 #define WM8990_RRI3RO_BIT 4
662 #define WM8990_RL12RO 0x0008
663 #define WM8990_RL12RO_BIT 3
664 #define WM8990_RR12RO 0x0004
665 #define WM8990_RR12RO_BIT 2
666 #define WM8990_RDRO 0x0001
667 #define WM8990_RDRO_BIT 0
672 #define WM8990_LLI3LOVOL_MASK 0x07
673 #define WM8990_LLI3LOVOL_SHIFT 6
674 #define WM8990_LR12LOVOL_MASK 0x07
675 #define WM8990_LR12LOVOL_SHIFT 3
676 #define WM8990_LL12LOVOL_MASK 0x07
677 #define WM8990_LL12LOVOL_SHIFT 0
682 #define WM8990_RRI3ROVOL_MASK 0x07
683 #define WM8990_RRI3ROVOL_SHIFT 6
684 #define WM8990_RL12ROVOL_MASK 0x07
685 #define WM8990_RL12ROVOL_SHIFT 3
686 #define WM8990_RR12ROVOL_MASK 0x07
687 #define WM8990_RR12ROVOL_SHIFT 0
692 #define WM8990_LRI3LOVOL_MASK 0x07
693 #define WM8990_LRI3LOVOL_SHIFT 6
694 #define WM8990_LRBLOVOL_MASK 0x07
695 #define WM8990_LRBLOVOL_SHIFT 3
696 #define WM8990_LLBLOVOL_MASK 0x07
697 #define WM8990_LLBLOVOL_SHIFT 0
702 #define WM8990_RLI3ROVOL_MASK 0x07
703 #define WM8990_RLI3ROVOL_SHIFT 6
704 #define WM8990_RLBROVOL_MASK 0x07
705 #define WM8990_RLBROVOL_SHIFT 3
706 #define WM8990_RRBROVOL_MASK 0x07
707 #define WM8990_RRBROVOL_SHIFT 0
712 #define WM8990_VSEL_MASK 0x0180
713 #define WM8990_LI4O3 0x0020
714 #define WM8990_LI4O3_BIT 5
715 #define WM8990_LPGAO3 0x0010
716 #define WM8990_LPGAO3_BIT 4
717 #define WM8990_RI4O4 0x0002
718 #define WM8990_RI4O4_BIT 1
719 #define WM8990_RPGAO4 0x0001
720 #define WM8990_RPGAO4_BIT 0
724 #define WM8990_LLOPGALON 0x0040
725 #define WM8990_LLOPGALON_BIT 6
726 #define WM8990_LROPGALON 0x0020
727 #define WM8990_LROPGALON_BIT 5
728 #define WM8990_LOPLON 0x0010
729 #define WM8990_LOPLON_BIT 4
730 #define WM8990_LR12LOP 0x0004
731 #define WM8990_LR12LOP_BIT 2
732 #define WM8990_LL12LOP 0x0002
733 #define WM8990_LL12LOP_BIT 1
734 #define WM8990_LLOPGALOP 0x0001
735 #define WM8990_LLOPGALOP_BIT 0
739 #define WM8990_RROPGARON 0x0040
740 #define WM8990_RROPGARON_BIT 6
741 #define WM8990_RLOPGARON 0x0020
742 #define WM8990_RLOPGARON_BIT 5
743 #define WM8990_ROPRON 0x0010
744 #define WM8990_ROPRON_BIT 4
745 #define WM8990_RL12ROP 0x0004
746 #define WM8990_RL12ROP_BIT 2
747 #define WM8990_RR12ROP 0x0002
748 #define WM8990_RR12ROP_BIT 1
749 #define WM8990_RROPGAROP 0x0001
750 #define WM8990_RROPGAROP_BIT 0
755 #define WM8990_LB2SPK 0x0080
756 #define WM8990_LB2SPK_BIT 7
757 #define WM8990_RB2SPK 0x0040
758 #define WM8990_RB2SPK_BIT 6
759 #define WM8990_LI2SPK 0x0020
760 #define WM8990_LI2SPK_BIT 5
761 #define WM8990_RI2SPK 0x0010
762 #define WM8990_RI2SPK_BIT 4
763 #define WM8990_LOPGASPK 0x0008
764 #define WM8990_LOPGASPK_BIT 3
765 #define WM8990_ROPGASPK 0x0004
766 #define WM8990_ROPGASPK_BIT 2
767 #define WM8990_LDSPK 0x0002
768 #define WM8990_LDSPK_BIT 1
769 #define WM8990_RDSPK 0x0001
770 #define WM8990_RDSPK_BIT 0
775 #define WM8990_VROI 0x0001
780 #define WM8990_DIS_LLINE 0x0020
781 #define WM8990_DIS_RLINE 0x0010
782 #define WM8990_DIS_OUT3 0x0008
783 #define WM8990_DIS_OUT4 0x0004
784 #define WM8990_DIS_LOUT 0x0002
785 #define WM8990_DIS_ROUT 0x0001
790 #define WM8990_SOFTST 0x0040
791 #define WM8990_BUFIOEN 0x0008
792 #define WM8990_BUFDCOPEN 0x0004
793 #define WM8990_POBCTRL 0x0002
794 #define WM8990_VMIDTOG 0x0001
799 #define WM8990_MCDSCTH_MASK 0x00C0
800 #define WM8990_MCDTHR_MASK 0x0038
801 #define WM8990_MCD 0x0004
802 #define WM8990_MBSEL 0x0001
807 #define WM8990_SDM 0x0080
808 #define WM8990_PRESCALE 0x0040
809 #define WM8990_PLLN_MASK 0x000F
814 #define WM8990_PLLK1_MASK 0x00FF
819 #define WM8990_PLLK2_MASK 0x00FF
824 #define WM8990_INMIXL_PWR_BIT 0
825 #define WM8990_AINLMUX_PWR_BIT 1
826 #define WM8990_INMIXR_PWR_BIT 2
827 #define WM8990_AINRMUX_PWR_BIT 3
829 #define WM8990_MCLK_DIV 0
830 #define WM8990_DACCLK_DIV 1
831 #define WM8990_ADCCLK_DIV 2
832 #define WM8990_BCLK_DIV 3