Add "elfzip" target to make which creates a zip of all elf files, as mapzip does...
[maemo-rb.git] / firmware / export / cs42l55.h
blob86b54ef27226f36bdac1fd30485119620ab80dbb
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: wm8975.h 28159 2010-09-24 22:42:06Z Buschel $
10 * Copyright (C) 2010 by Michael Sparmann
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __CS42L55_H__
23 #define __CS42L55_H__
25 /* volume/balance/treble/bass interdependency */
26 #define VOLUME_MIN -580
27 #define VOLUME_MAX 120
29 #define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | BASS_CUTOFF_CAP \
30 | TREBLE_CUTOFF_CAP | PRESCALER_CAP)
32 extern int tenthdb2master(int db);
34 extern void audiohw_set_master_vol(int vol_l, int vol_r);
35 extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
36 extern void audiohw_enable_lineout(bool enable);
38 /* Register addresses and bits */
40 #define HIDDENCTL 0x00
41 #define HIDDENCTL_LOCK 0x00
42 #define HIDDENCTL_UNLOCK 0x99
44 #define CHIPVERSION 0x01
46 #define PWRCTL1 0x02
47 #define PWRCTL1_PDN_CODEC (1 << 0)
48 #define PWRCTL1_PDN_ADCA (1 << 1)
49 #define PWRCTL1_PDN_ADCB (1 << 2)
50 #define PWRCTL1_PDN_CHRG (1 << 3)
52 #define PWRCTL2 0x03
53 #define PWRCTL2_PDN_LINA_MASK (3 << 0)
54 #define PWRCTL2_PDN_LINA_HIGH (0 << 0)
55 #define PWRCTL2_PDN_LINA_LOW (1 << 0)
56 #define PWRCTL2_PDN_LINA_NEVER (2 << 0)
57 #define PWRCTL2_PDN_LINA_ALWAYS (3 << 0)
58 #define PWRCTL2_PDN_LINB_MASK (3 << 2)
59 #define PWRCTL2_PDN_LINB_HIGH (0 << 2)
60 #define PWRCTL2_PDN_LINB_LOW (1 << 2)
61 #define PWRCTL2_PDN_LINB_NEVER (2 << 2)
62 #define PWRCTL2_PDN_LINB_ALWAYS (3 << 2)
63 #define PWRCTL2_PDN_HPA_MASK (3 << 4)
64 #define PWRCTL2_PDN_HPA_HIGH (0 << 4)
65 #define PWRCTL2_PDN_HPA_LOW (1 << 4)
66 #define PWRCTL2_PDN_HPA_NEVER (2 << 4)
67 #define PWRCTL2_PDN_HPA_ALWAYS (3 << 4)
68 #define PWRCTL2_PDN_HPB_MASK (3 << 6)
69 #define PWRCTL2_PDN_HPB_HIGH (0 << 6)
70 #define PWRCTL2_PDN_HPB_LOW (1 << 6)
71 #define PWRCTL2_PDN_HPB_NEVER (2 << 6)
72 #define PWRCTL2_PDN_HPB_ALWAYS (3 << 6)
74 #define CLKCTL1 0x04
75 #define CLKCTL1_MCLKDIS (1 << 0)
76 #define CLKCTL1_MCLKDIV2 (1 << 1)
77 #define CLKCTL1_SCLKMCLK_MASK (3 << 2)
78 #define CLKCTL1_SCLKMCLK_BURST (0 << 2)
79 #define CLKCTL1_SCLKMCLK_AFTER (2 << 2)
80 #define CLKCTL1_SCLKMCLK_BEFORE (3 << 2)
81 #define CLKCTL1_INV_SCLK (1 << 4)
82 #define CLKCTL1_MASTER (1 << 5)
84 #define CLKCTL2 0x05
85 #define CLKCTL2_MCLKLRCK_MASK (3 << 0)
86 #define CLKCTL2_MCLKLRCK_125 (1 << 0)
87 #define CLKCTL2_MCLKLRCK_136 (3 << 0)
88 #define CLKCTL2_32KGROUP (1 << 2)
89 #define CLKCTL2_SPEED_MASK (3 << 3)
90 #define CLKCTL2_SPEED_SINGLE (1 << 3)
91 #define CLKCTL2_SPEED_HALF (2 << 3)
92 #define CLKCTL2_SPEED_QUARTER (3 << 3)
93 #define CLKCTL2_8000HZ 0x1d
94 #define CLKCTL2_11025HZ 0x1b
95 #define CLKCTL2_12000HZ 0x19
96 #define CLKCTL2_16000HZ 0x15
97 #define CLKCTL2_22050HZ 0x13
98 #define CLKCTL2_24000HZ 0x11
99 #define CLKCTL2_32000HZ 0x0d
100 #define CLKCTL2_44100HZ 0x0b
101 #define CLKCTL2_48000HZ 0x09
103 #define CLSHCTL 0x06
104 #define CLSHCTL_ADPTPWR_MASK (3 << 4)
105 #define CLSHCTL_ADPTPWR_VOLUME (0 << 4)
106 #define CLSHCTL_ADPTPWR_HALF (1 << 4)
107 #define CLSHCTL_ADPTPWR_FULL (2 << 4)
108 #define CLSHCTL_ADPTPWR_SIGNAL (3 << 4)
110 #define MISCCTL 0x07
111 #define MISCCTL_FREEZE (1 << 0)
112 #define MISCCTL_DIGSFT (1 << 2)
113 #define MISCCTL_ANLGZC (1 << 3)
114 #define MISCCTL_UNDOC4 (1 << 4)
115 #define MISCCTL_DIGMUX (1 << 7)
117 #define ALHMUX 0x08
118 #define ALHMUX_HPAMUX_MASK (1 << 0)
119 #define ALHMUX_HPAMUX_DACA (0 << 0)
120 #define ALHMUX_HPAMUX_PGAA (1 << 0)
121 #define ALHMUX_HPBMUX_MASK (1 << 1)
122 #define ALHMUX_HPBMUX_DACB (0 << 1)
123 #define ALHMUX_HPBMUX_PGAB (1 << 1)
124 #define ALHMUX_LINEAMUX_MASK (1 << 2)
125 #define ALHMUX_LINEAMUX_DACA (0 << 2)
126 #define ALHMUX_LINEAMUX_PGAA (1 << 2)
127 #define ALHMUX_LINEBMUX_MASK (1 << 3)
128 #define ALHMUX_LINEBMUX_DACB (0 << 3)
129 #define ALHMUX_LINEBMUX_PGAB (1 << 3)
130 #define ALHMUX_ADCAMUX_MASK (3 << 4)
131 #define ALHMUX_ADCAMUX_PGAA (0 << 4)
132 #define ALHMUX_ADCAMUX_AIN1A (1 << 4)
133 #define ALHMUX_ADCAMUX_AIN2A (2 << 4)
134 #define ALHMUX_ADCBMUX_MASK (3 << 4)
135 #define ALHMUX_ADCBMUX_PGAB (0 << 6)
136 #define ALHMUX_ADCBMUX_AIN1B (1 << 6)
137 #define ALHMUX_ADCBMUX_AIN2B (2 << 6)
139 #define HPFCTL 0x09
140 #define HPFCTL_HPFA_CF_MASK (3 << 0)
141 #define HPFCTL_HPFA_CF_1_8 (0 << 0)
142 #define HPFCTL_HPFA_CF_119 (1 << 0)
143 #define HPFCTL_HPFA_CF_236 (2 << 0)
144 #define HPFCTL_HPFA_CF_464 (3 << 0)
145 #define HPFCTL_HPFB_CF_MASK (3 << 2)
146 #define HPFCTL_HPFB_CF_1_8 (0 << 2)
147 #define HPFCTL_HPFB_CF_119 (1 << 2)
148 #define HPFCTL_HPFB_CF_236 (2 << 2)
149 #define HPFCTL_HPFB_CF_464 (3 << 2)
150 #define HPFCTL_HPFRZA (1 << 4)
151 #define HPFCTL_HPFA (1 << 5)
152 #define HPFCTL_HPFRZB (1 << 6)
153 #define HPFCTL_HPFB (1 << 7)
155 #define ADCCTL 0x0a
156 #define ADCCTL_ADCAMUTE (1 << 0)
157 #define ADCCTL_ADCBMUTE (1 << 1)
158 #define ADCCTL_INV_ADCA (1 << 2)
159 #define ADCCTL_INV_ADCB (1 << 3)
160 #define ADCCTL_DIGSUM_MASK (3 << 4)
161 #define ADCCTL_DIGSUM_NORMAL (0 << 4)
162 #define ADCCTL_DIGSUM_HALFSUM (1 << 4)
163 #define ADCCTL_DIGSUM_HALFDIFF (2 << 4)
164 #define ADCCTL_DIGSUM_SWAPPED (3 << 4)
165 #define ADCCTL_PGA_VOLUME_GROUP (1 << 6)
166 #define ADCCTL_ADC_VOLUME_GROUP (1 << 7)
168 #define PGAACTL 0x0b
169 #define PGAACTL_VOLUME_MASK (0x3f << 0)
170 #define PGAACTL_VOLUME_SHIFT 0
171 #define PGAACTL_MUX_MASK (1 << 6)
172 #define PGAACTL_MUX_AIN1A (0 << 6)
173 #define PGAACTL_MUX_AIN2A (1 << 6)
174 #define PGAACTL_BOOST (1 << 7)
176 #define PGABCTL 0x0c
177 #define PGABCTL_VOLUME_MASK (0x3f << 0)
178 #define PGABCTL_VOLUME_SHIFT 0
179 #define PGABCTL_MUX_MASK (1 << 6)
180 #define PGABCTL_MUX_AIN1B (0 << 6)
181 #define PGABCTL_MUX_AIN2B (1 << 6)
182 #define PGABCTL_BOOST (1 << 7)
184 #define ADCAATT 0x0d
185 #define ADCAATT_VOLUME_MASK (0xff << 0)
186 #define ADCAATT_VOLUME_SHIFT 0
188 #define ADCBATT 0x0e
189 #define ADCBATT_VOLUME_MASK (0xff << 0)
190 #define ADCBATT_VOLUME_SHIFT 0
192 #define PLAYCTL 0x0f
193 #define PLAYCTL_MSTAMUTE (1 << 0)
194 #define PLAYCTL_MSTBMUTE (1 << 1)
195 #define PLAYCTL_INV_PCMA (1 << 2)
196 #define PLAYCTL_INV_PCMB (1 << 3)
197 #define PLAYCTL_PB_VOLUME_GROUP (1 << 4)
198 #define PLAYCTL_DEEMPH (1 << 6)
199 #define PLAYCTL_PDN_DSP (1 << 7)
201 #define AMIXACTL 0x10
202 #define AMIXACTL_AMIXAVOL_MASK (0x7f << 0)
203 #define AMIXACTL_AMIXAVOL_SHIFT 0
204 #define AMIXACTL_AMIXAMUTE (1 << 7)
206 #define AMIXBCTL 0x11
207 #define AMIXBCTL_AMIXBVOL_MASK (0x7f << 0)
208 #define AMIXBCTL_AMIXBVOL_SHIFT 0
209 #define AMIXBCTL_AMIXBMUTE (1 << 7)
211 #define PMIXACTL 0x12
212 #define PMIXACTL_PMIXAVOL_MASK (0x7f << 0)
213 #define PMIXACTL_PMIXAVOL_SHIFT 0
214 #define PMIXACTL_PMIXAMUTE (1 << 7)
216 #define PMIXBCTL 0x13
217 #define PMIXBCTL_PMIXBVOL_MASK (0x7f << 0)
218 #define PMIXBCTL_PMIXBVOL_SHIFT 0
219 #define PMIXBCTL_PMIXBMUTE (1 << 7)
221 #define BEEPFO 0x14
222 #define BEEPFO_ONTIME_MASK (0xf << 0)
223 #define BEEPFO_ONTIME_86 (0x0 << 0)
224 #define BEEPFO_ONTIME_430 (0x1 << 0)
225 #define BEEPFO_ONTIME_780 (0x2 << 0)
226 #define BEEPFO_ONTIME_1200 (0x3 << 0)
227 #define BEEPFO_ONTIME_1500 (0x4 << 0)
228 #define BEEPFO_ONTIME_1800 (0x5 << 0)
229 #define BEEPFO_ONTIME_2200 (0x6 << 0)
230 #define BEEPFO_ONTIME_2500 (0x7 << 0)
231 #define BEEPFO_ONTIME_2800 (0x8 << 0)
232 #define BEEPFO_ONTIME_3200 (0x9 << 0)
233 #define BEEPFO_ONTIME_3500 (0xa << 0)
234 #define BEEPFO_ONTIME_3800 (0xb << 0)
235 #define BEEPFO_ONTIME_4200 (0xc << 0)
236 #define BEEPFO_ONTIME_4500 (0xd << 0)
237 #define BEEPFO_ONTIME_4800 (0xe << 0)
238 #define BEEPFO_ONTIME_5200 (0xf << 0)
239 #define BEEPFO_FREQ_MASK (0xf << 4)
240 #define BEEPFO_FREQ_254_76 (0x0 << 4)
241 #define BEEPFO_FREQ_509_51 (0x1 << 4)
242 #define BEEPFO_FREQ_571_65 (0x2 << 4)
243 #define BEEPFO_FREQ_651_04 (0x3 << 4)
244 #define BEEPFO_FREQ_689_34 (0x4 << 4)
245 #define BEEPFO_FREQ_756_04 (0x5 << 4)
246 #define BEEPFO_FREQ_869_45 (0x6 << 4)
247 #define BEEPFO_FREQ_976_56 (0x7 << 4)
248 #define BEEPFO_FREQ_1019_02 (0x8 << 4)
249 #define BEEPFO_FREQ_1171_88 (0x9 << 4)
250 #define BEEPFO_FREQ_1302_08 (0xa << 4)
251 #define BEEPFO_FREQ_1378_67 (0xb << 4)
252 #define BEEPFO_FREQ_1562_50 (0xc << 4)
253 #define BEEPFO_FREQ_1674_11 (0xd << 4)
254 #define BEEPFO_FREQ_1953_13 (0xe << 4)
255 #define BEEPFO_FREQ_2130_68 (0xf << 4)
257 #define BEEPVO 0x15
258 #define BEEPVO_VOLUME_MASK (0x1f << 0)
259 #define BEEPVO_VOLUME_SHIFT 0
260 #define BEEPVO_OFFTIME_MASK (7 << 5)
261 #define BEEPVO_OFFTIME_1230 (0 << 5)
262 #define BEEPVO_OFFTIME_2580 (1 << 5)
263 #define BEEPVO_OFFTIME_3900 (2 << 5)
264 #define BEEPVO_OFFTIME_5200 (3 << 5)
265 #define BEEPVO_OFFTIME_6600 (4 << 5)
266 #define BEEPVO_OFFTIME_8050 (5 << 5)
267 #define BEEPVO_OFFTIME_9350 (6 << 5)
268 #define BEEPVO_OFFTIME_10800 (7 << 5)
270 #define BTCTL 0x16
271 #define BTCTL_TCEN (1 << 0)
272 #define BTCTL_BASSCF_MASK (3 << 1)
273 #define BTCTL_BASSCF_SHIFT 1
274 #define BTCTL_BASSCF_50 (0 << 1)
275 #define BTCTL_BASSCF_100 (1 << 1)
276 #define BTCTL_BASSCF_200 (2 << 1)
277 #define BTCTL_BASSCF_250 (3 << 1)
278 #define BTCTL_TREBCF_MASK (3 << 3)
279 #define BTCTL_TREBCF_SHIFT 3
280 #define BTCTL_TREBCF_5000 (0 << 3)
281 #define BTCTL_TREBCF_7000 (1 << 3)
282 #define BTCTL_TREBCF_10000 (2 << 3)
283 #define BTCTL_TREBCF_15000 (3 << 3)
284 #define BTCTL_BEEP_MASK (0 << 6)
285 #define BTCTL_BEEP_OFF (0 << 6)
286 #define BTCTL_BEEP_SINGLE (1 << 6)
287 #define BTCTL_BEEP_MULTIPLE (2 << 6)
288 #define BTCTL_BEEP_CONTINUOUS (3 << 6)
290 #define TONECTL 0x17
291 #define TONECTL_BASS_MASK (0xf << 0)
292 #define TONECTL_BASS_SHIFT 0
293 #define TONECTL_TREB_MASK (0xf << 4)
294 #define TONECTL_TREB_SHIFT 4
296 #define MSTAVOL 0x18
297 #define MSTAVOL_VOLUME_MASK (0xff << 0)
298 #define MSTAVOL_VOLUME_SHIFT 0
300 #define MSTBVOL 0x19
301 #define MSTBVOL_VOLUME_MASK (0xff << 0)
302 #define MSTBVOL_VOLUME_SHIFT 0
304 #define HPACTL 0x1a
305 #define HPACTL_HPAVOL_MASK (0x7f << 0)
306 #define HPACTL_HPAVOL_SHIFT 0
307 #define HPACTL_HPAMUTE (1 << 7)
309 #define HPBCTL 0x1b
310 #define HPBCTL_HPBVOL_MASK (0x7f << 0)
311 #define HPBCTL_HPBVOL_SHIFT 0
312 #define HPBCTL_HPBMUTE (1 << 7)
314 #define LINEACTL 0x1c
315 #define LINEACTL_LINEAVOL_MASK (0x7f << 0)
316 #define LINEACTL_LINEAVOL_SHIFT 0
317 #define LINEACTL_LINEAMUTE (1 << 7)
319 #define LINEBCTL 0x1d
320 #define LINEBCTL_LINEBVOL_MASK (0x7f << 0)
321 #define LINEBCTL_LINEBVOL_SHIFT 0
322 #define LINEBCTL_LINEBMUTE (1 << 7)
324 #define AINADV 0x1e
325 #define AINADV_VOLUME_MASK (0xff << 0)
326 #define AINADV_VOLUME_SHIFT 0
328 #define DINADV 0x1f
329 #define DINADV_VOLUME_MASK (0xff << 0)
330 #define DINADV_VOLUME_SHIFT 0
332 #define MIXCTL 0x20
333 #define MIXCTL_ADCASWP_MASK (3 << 0)
334 #define MIXCTL_ADCASWP_NORMAL (0 << 0)
335 #define MIXCTL_ADCASWP_HALFSUM (1 << 0)
336 #define MIXCTL_ADCASWP_HALFSUM2 (2 << 0)
337 #define MIXCTL_ADCASWP_SWAPPED (3 << 0)
338 #define MIXCTL_ADCBSWP_MASK (3 << 2)
339 #define MIXCTL_ADCBSWP_NORMAL (0 << 2)
340 #define MIXCTL_ADCBSWP_HALFSUM (1 << 2)
341 #define MIXCTL_ADCBSWP_HALFSUM2 (2 << 2)
342 #define MIXCTL_ADCBSWP_SWAPPED (3 << 2)
343 #define MIXCTL_PCMASWP_MASK (3 << 4)
344 #define MIXCTL_PCMASWP_NORMAL (0 << 4)
345 #define MIXCTL_PCMASWP_HALFSUM (1 << 4)
346 #define MIXCTL_PCMASWP_HALFSUM2 (2 << 4)
347 #define MIXCTL_PCMASWP_SWAPPED (3 << 4)
348 #define MIXCTL_PCMBSWP_MASK (3 << 6)
349 #define MIXCTL_PCMBSWP_NORMAL (0 << 6)
350 #define MIXCTL_PCMBSWP_HALFSUM (1 << 6)
351 #define MIXCTL_PCMBSWP_HALFSUM2 (2 << 6)
352 #define MIXCTL_PCMBSWP_SWAPPED (3 << 6)
354 #define LIMCTL1 0x21
355 #define LIMCTL1_CUSH_MASK (7 << 2)
356 #define LIMCTL1_CUSH_0 (0 << 2)
357 #define LIMCTL1_CUSH_3 (1 << 2)
358 #define LIMCTL1_CUSH_6 (2 << 2)
359 #define LIMCTL1_CUSH_9 (3 << 2)
360 #define LIMCTL1_CUSH_12 (4 << 2)
361 #define LIMCTL1_CUSH_18 (5 << 2)
362 #define LIMCTL1_CUSH_24 (6 << 2)
363 #define LIMCTL1_CUSH_30 (7 << 2)
364 #define LIMCTL1_LMAX_MASK (7 << 5)
365 #define LIMCTL1_LMAX_0 (0 << 5)
366 #define LIMCTL1_LMAX_3 (1 << 5)
367 #define LIMCTL1_LMAX_6 (2 << 5)
368 #define LIMCTL1_LMAX_9 (3 << 5)
369 #define LIMCTL1_LMAX_12 (4 << 5)
370 #define LIMCTL1_LMAX_18 (5 << 5)
371 #define LIMCTL1_LMAX_24 (6 << 5)
372 #define LIMCTL1_LMAX_30 (7 << 5)
374 #define LIMCTL2 0x22
375 #define LIMCTL2_LIMRRATE_MASK (0x3f << 0)
376 #define LIMCTL2_LIMRRATE_SHIFT 0
377 #define LIMCTL2_LIMIT_ALL (1 << 6)
378 #define LIMCTL2_LIMIT (1 << 7)
380 #define LIMCTL3 0x23
381 #define LIMCTL3_LIMARATE_MASK (0x3f << 0)
382 #define LIMCTL3_LIMARATE_SHIFT 0
384 #define ALCCTL1 0x24
385 #define ALCCTL1_ALCARATE_MASK (0x3f << 0)
386 #define ALCCTL1_ALCARATE_SHIFT 0
387 #define ALCCTL1_ALCA (1 << 6)
388 #define ALCCTL1_ALCB (1 << 7)
390 #define ALCCTL2 0x25
391 #define ALCCTL2_ALCRRATE_MASK (0x3f << 0)
392 #define ALCCTL2_ALCRRATE_SHIFT 0
394 #define ALCCTL3 0x26
395 #define ALCCTL3_ALCMIN_MASK (7 << 2)
396 #define ALCCTL3_ALCMIN_0 (0 << 2)
397 #define ALCCTL3_ALCMIN_3 (1 << 2)
398 #define ALCCTL3_ALCMIN_6 (2 << 2)
399 #define ALCCTL3_ALCMIN_9 (3 << 2)
400 #define ALCCTL3_ALCMIN_12 (4 << 2)
401 #define ALCCTL3_ALCMIN_18 (5 << 2)
402 #define ALCCTL3_ALCMIN_24 (6 << 2)
403 #define ALCCTL3_ALCMIN_30 (7 << 2)
404 #define ALCCTL3_ALCMAX_MASK (7 << 5)
405 #define ALCCTL3_ALCMAX_0 (0 << 5)
406 #define ALCCTL3_ALCMAX_3 (1 << 5)
407 #define ALCCTL3_ALCMAX_6 (2 << 5)
408 #define ALCCTL3_ALCMAX_9 (3 << 5)
409 #define ALCCTL3_ALCMAX_12 (4 << 5)
410 #define ALCCTL3_ALCMAX_18 (5 << 5)
411 #define ALCCTL3_ALCMAX_24 (6 << 5)
412 #define ALCCTL3_ALCMAX_30 (7 << 5)
414 #define NGCTL 0x27
415 #define NGCTL_NGDELEAY_MASK (3 << 0)
416 #define NGCTL_NGDELEAY_50 (0 << 0)
417 #define NGCTL_NGDELEAY_100 (1 << 0)
418 #define NGCTL_NGDELEAY_150 (2 << 0)
419 #define NGCTL_NGDELEAY_200 (3 << 0)
420 #define NGCTL_THRESH_MASK (7 << 2)
421 #define NGCTL_THRESH_SHIFT 2
422 #define NGCTL_NG_BOOST30 (1 << 5)
423 #define NGCTL_NG (1 << 6)
424 #define NGCTL_NGALL (1 << 7)
426 #define ALSZDIS 0x28
427 #define ALSZDIS_LIMSRDIS (1 << 3)
428 #define ALSZDIS_ALCAZCDIS (1 << 4)
429 #define ALSZDIS_ALCASRDIS (1 << 5)
430 #define ALSZDIS_ALCBZCDIS (1 << 6)
431 #define ALSZDIS_ALCBSRDIS (1 << 7)
433 #define STATUS 0x29
434 #define STATUS_ADCAOVFL (1 << 0)
435 #define STATUS_ADCBOVFL (1 << 1)
436 #define STATUS_MIXAOVFL (1 << 2)
437 #define STATUS_MIXBOVFL (1 << 3)
438 #define STATUS_DSPAOVFL (1 << 4)
439 #define STATUS_DSPBOVFL (1 << 5)
440 #define STATUS_SPCLKERR (1 << 6)
441 #define STATUS_HPDETECT (1 << 7)
443 #define CPCTL 0x2a
444 #define CPCTL_CHGFREQ_MASK (0xf << 0)
445 #define CPCTL_CHGFREQ_SHIFT 0
447 #define HIDDEN2E 0x2e
448 #define HIDDEN2E_DEFAULT 0x30
450 #define HIDDEN32 0x32
451 #define HIDDEN32_DEFAULT 0x07
453 #define HIDDEN33 0x33
454 #define HIDDEN33_DEFAULT 0xff
456 #define HIDDEN34 0x34
457 #define HIDDEN34_DEFAULT 0xf8
459 #define HIDDEN35 0x35
460 #define HIDDEN35_DEFAULT 0xdc
462 #define HIDDEN36 0x36
463 #define HIDDEN36_DEFAULT 0xfc
465 #define HIDDEN37 0x37
466 #define HIDDEN37_DEFAULT 0xac
468 #define HIDDEN3A 0x3a
469 #define HIDDEN3A_DEFAULT 0xf8
471 #define HIDDEN3C 0x3c
472 #define HIDDEN3C_DEFAULT 0xd3
474 #define HIDDEN3D 0x3d
475 #define HIDDEN3D_DEFAULT 0x23
477 #define HIDDEN3E 0x3e
478 #define HIDDEN3E_DEFAULT 0x81
480 #define HIDDEN3F 0x3f
481 #define HIDDEN3F_DEFAULT 0x46
484 #endif /* __CS42L55_H__ */