ASoC: Convert WM8994 to use soc-cache.c cache functions
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 26 Nov 2010 17:23:41 +0000 (17:23 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 27 Nov 2010 10:32:14 +0000 (10:32 +0000)
In the process we convert the driver to read registers one at a time
when initialising the cache. This has the effect of working around
limitations in the sizes of I2C transactions which can be done by some
CPUs. Due to the sparseness of the register map the overhead from this
should be minimual unless I2C transactions are very expensive to start.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8994-tables.c
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.h

index 7b935387aeeff6055c6b8cfbdd0ab3eb47efef79..68e9b024dd48b98cbf8dc8300c8d84d5713fce1a 100644 (file)
@@ -1573,3 +1573,1575 @@ const struct wm8994_access_mask wm8994_access_masks[WM8994_CACHE_SIZE] = {
        { 0x03C3, 0x03C3 }, /* R1569  - Sidetone */
 };
 
+const __devinitdata u16 wm8994_reg_defaults[WM8994_CACHE_SIZE] = {
+       0x8994,     /* R0     - Software Reset */
+       0x0000,     /* R1     - Power Management (1) */
+       0x6000,     /* R2     - Power Management (2) */
+       0x0000,     /* R3     - Power Management (3) */
+       0x0000,     /* R4     - Power Management (4) */
+       0x0000,     /* R5     - Power Management (5) */
+       0x0000,     /* R6     - Power Management (6) */
+       0x0000,     /* R7 */
+       0x0000,     /* R8 */
+       0x0000,     /* R9 */
+       0x0000,     /* R10 */
+       0x0000,     /* R11 */
+       0x0000,     /* R12 */
+       0x0000,     /* R13 */
+       0x0000,     /* R14 */
+       0x0000,     /* R15 */
+       0x0000,     /* R16 */
+       0x0000,     /* R17 */
+       0x0000,     /* R18 */
+       0x0000,     /* R19 */
+       0x0000,     /* R20 */
+       0x0000,     /* R21    - Input Mixer (1) */
+       0x0000,     /* R22 */
+       0x0000,     /* R23 */
+       0x008B,     /* R24    - Left Line Input 1&2 Volume */
+       0x008B,     /* R25    - Left Line Input 3&4 Volume */
+       0x008B,     /* R26    - Right Line Input 1&2 Volume */
+       0x008B,     /* R27    - Right Line Input 3&4 Volume */
+       0x006D,     /* R28    - Left Output Volume */
+       0x006D,     /* R29    - Right Output Volume */
+       0x0066,     /* R30    - Line Outputs Volume */
+       0x0020,     /* R31    - HPOUT2 Volume */
+       0x0079,     /* R32    - Left OPGA Volume */
+       0x0079,     /* R33    - Right OPGA Volume */
+       0x0003,     /* R34    - SPKMIXL Attenuation */
+       0x0003,     /* R35    - SPKMIXR Attenuation */
+       0x0011,     /* R36    - SPKOUT Mixers */
+       0x0140,     /* R37    - ClassD */
+       0x0079,     /* R38    - Speaker Volume Left */
+       0x0079,     /* R39    - Speaker Volume Right */
+       0x0000,     /* R40    - Input Mixer (2) */
+       0x0000,     /* R41    - Input Mixer (3) */
+       0x0000,     /* R42    - Input Mixer (4) */
+       0x0000,     /* R43    - Input Mixer (5) */
+       0x0000,     /* R44    - Input Mixer (6) */
+       0x0000,     /* R45    - Output Mixer (1) */
+       0x0000,     /* R46    - Output Mixer (2) */
+       0x0000,     /* R47    - Output Mixer (3) */
+       0x0000,     /* R48    - Output Mixer (4) */
+       0x0000,     /* R49    - Output Mixer (5) */
+       0x0000,     /* R50    - Output Mixer (6) */
+       0x0000,     /* R51    - HPOUT2 Mixer */
+       0x0000,     /* R52    - Line Mixer (1) */
+       0x0000,     /* R53    - Line Mixer (2) */
+       0x0000,     /* R54    - Speaker Mixer */
+       0x0000,     /* R55    - Additional Control */
+       0x0000,     /* R56    - AntiPOP (1) */
+       0x0000,     /* R57    - AntiPOP (2) */
+       0x0000,     /* R58    - MICBIAS */
+       0x000D,     /* R59    - LDO 1 */
+       0x0003,     /* R60    - LDO 2 */
+       0x0000,     /* R61 */
+       0x0000,     /* R62 */
+       0x0000,     /* R63 */
+       0x0000,     /* R64 */
+       0x0000,     /* R65 */
+       0x0000,     /* R66 */
+       0x0000,     /* R67 */
+       0x0000,     /* R68 */
+       0x0000,     /* R69 */
+       0x0000,     /* R70 */
+       0x0000,     /* R71 */
+       0x0000,     /* R72 */
+       0x0000,     /* R73 */
+       0x0000,     /* R74 */
+       0x0000,     /* R75 */
+       0x1F25,     /* R76    - Charge Pump (1) */
+       0x0000,     /* R77 */
+       0x0000,     /* R78 */
+       0x0000,     /* R79 */
+       0x0000,     /* R80 */
+       0x0004,     /* R81    - Class W (1) */
+       0x0000,     /* R82 */
+       0x0000,     /* R83 */
+       0x0000,     /* R84    - DC Servo (1) */
+       0x054A,     /* R85    - DC Servo (2) */
+       0x0000,     /* R86 */
+       0x0000,     /* R87    - DC Servo (4) */
+       0x0000,     /* R88    - DC Servo Readback */
+       0x0000,     /* R89 */
+       0x0000,     /* R90 */
+       0x0000,     /* R91 */
+       0x0000,     /* R92 */
+       0x0000,     /* R93 */
+       0x0000,     /* R94 */
+       0x0000,     /* R95 */
+       0x0000,     /* R96    - Analogue HP (1) */
+       0x0000,     /* R97 */
+       0x0000,     /* R98 */
+       0x0000,     /* R99 */
+       0x0000,     /* R100 */
+       0x0000,     /* R101 */
+       0x0000,     /* R102 */
+       0x0000,     /* R103 */
+       0x0000,     /* R104 */
+       0x0000,     /* R105 */
+       0x0000,     /* R106 */
+       0x0000,     /* R107 */
+       0x0000,     /* R108 */
+       0x0000,     /* R109 */
+       0x0000,     /* R110 */
+       0x0000,     /* R111 */
+       0x0000,     /* R112 */
+       0x0000,     /* R113 */
+       0x0000,     /* R114 */
+       0x0000,     /* R115 */
+       0x0000,     /* R116 */
+       0x0000,     /* R117 */
+       0x0000,     /* R118 */
+       0x0000,     /* R119 */
+       0x0000,     /* R120 */
+       0x0000,     /* R121 */
+       0x0000,     /* R122 */
+       0x0000,     /* R123 */
+       0x0000,     /* R124 */
+       0x0000,     /* R125 */
+       0x0000,     /* R126 */
+       0x0000,     /* R127 */
+       0x0000,     /* R128 */
+       0x0000,     /* R129 */
+       0x0000,     /* R130 */
+       0x0000,     /* R131 */
+       0x0000,     /* R132 */
+       0x0000,     /* R133 */
+       0x0000,     /* R134 */
+       0x0000,     /* R135 */
+       0x0000,     /* R136 */
+       0x0000,     /* R137 */
+       0x0000,     /* R138 */
+       0x0000,     /* R139 */
+       0x0000,     /* R140 */
+       0x0000,     /* R141 */
+       0x0000,     /* R142 */
+       0x0000,     /* R143 */
+       0x0000,     /* R144 */
+       0x0000,     /* R145 */
+       0x0000,     /* R146 */
+       0x0000,     /* R147 */
+       0x0000,     /* R148 */
+       0x0000,     /* R149 */
+       0x0000,     /* R150 */
+       0x0000,     /* R151 */
+       0x0000,     /* R152 */
+       0x0000,     /* R153 */
+       0x0000,     /* R154 */
+       0x0000,     /* R155 */
+       0x0000,     /* R156 */
+       0x0000,     /* R157 */
+       0x0000,     /* R158 */
+       0x0000,     /* R159 */
+       0x0000,     /* R160 */
+       0x0000,     /* R161 */
+       0x0000,     /* R162 */
+       0x0000,     /* R163 */
+       0x0000,     /* R164 */
+       0x0000,     /* R165 */
+       0x0000,     /* R166 */
+       0x0000,     /* R167 */
+       0x0000,     /* R168 */
+       0x0000,     /* R169 */
+       0x0000,     /* R170 */
+       0x0000,     /* R171 */
+       0x0000,     /* R172 */
+       0x0000,     /* R173 */
+       0x0000,     /* R174 */
+       0x0000,     /* R175 */
+       0x0000,     /* R176 */
+       0x0000,     /* R177 */
+       0x0000,     /* R178 */
+       0x0000,     /* R179 */
+       0x0000,     /* R180 */
+       0x0000,     /* R181 */
+       0x0000,     /* R182 */
+       0x0000,     /* R183 */
+       0x0000,     /* R184 */
+       0x0000,     /* R185 */
+       0x0000,     /* R186 */
+       0x0000,     /* R187 */
+       0x0000,     /* R188 */
+       0x0000,     /* R189 */
+       0x0000,     /* R190 */
+       0x0000,     /* R191 */
+       0x0000,     /* R192 */
+       0x0000,     /* R193 */
+       0x0000,     /* R194 */
+       0x0000,     /* R195 */
+       0x0000,     /* R196 */
+       0x0000,     /* R197 */
+       0x0000,     /* R198 */
+       0x0000,     /* R199 */
+       0x0000,     /* R200 */
+       0x0000,     /* R201 */
+       0x0000,     /* R202 */
+       0x0000,     /* R203 */
+       0x0000,     /* R204 */
+       0x0000,     /* R205 */
+       0x0000,     /* R206 */
+       0x0000,     /* R207 */
+       0x0000,     /* R208 */
+       0x0000,     /* R209 */
+       0x0000,     /* R210 */
+       0x0000,     /* R211 */
+       0x0000,     /* R212 */
+       0x0000,     /* R213 */
+       0x0000,     /* R214 */
+       0x0000,     /* R215 */
+       0x0000,     /* R216 */
+       0x0000,     /* R217 */
+       0x0000,     /* R218 */
+       0x0000,     /* R219 */
+       0x0000,     /* R220 */
+       0x0000,     /* R221 */
+       0x0000,     /* R222 */
+       0x0000,     /* R223 */
+       0x0000,     /* R224 */
+       0x0000,     /* R225 */
+       0x0000,     /* R226 */
+       0x0000,     /* R227 */
+       0x0000,     /* R228 */
+       0x0000,     /* R229 */
+       0x0000,     /* R230 */
+       0x0000,     /* R231 */
+       0x0000,     /* R232 */
+       0x0000,     /* R233 */
+       0x0000,     /* R234 */
+       0x0000,     /* R235 */
+       0x0000,     /* R236 */
+       0x0000,     /* R237 */
+       0x0000,     /* R238 */
+       0x0000,     /* R239 */
+       0x0000,     /* R240 */
+       0x0000,     /* R241 */
+       0x0000,     /* R242 */
+       0x0000,     /* R243 */
+       0x0000,     /* R244 */
+       0x0000,     /* R245 */
+       0x0000,     /* R246 */
+       0x0000,     /* R247 */
+       0x0000,     /* R248 */
+       0x0000,     /* R249 */
+       0x0000,     /* R250 */
+       0x0000,     /* R251 */
+       0x0000,     /* R252 */
+       0x0000,     /* R253 */
+       0x0000,     /* R254 */
+       0x0000,     /* R255 */
+       0x0003,     /* R256   - Chip Revision */
+       0x8004,     /* R257   - Control Interface */
+       0x0000,     /* R258 */
+       0x0000,     /* R259 */
+       0x0000,     /* R260 */
+       0x0000,     /* R261 */
+       0x0000,     /* R262 */
+       0x0000,     /* R263 */
+       0x0000,     /* R264 */
+       0x0000,     /* R265 */
+       0x0000,     /* R266 */
+       0x0000,     /* R267 */
+       0x0000,     /* R268 */
+       0x0000,     /* R269 */
+       0x0000,     /* R270 */
+       0x0000,     /* R271 */
+       0x0000,     /* R272   - Write Sequencer Ctrl (1) */
+       0x0000,     /* R273   - Write Sequencer Ctrl (2) */
+       0x0000,     /* R274 */
+       0x0000,     /* R275 */
+       0x0000,     /* R276 */
+       0x0000,     /* R277 */
+       0x0000,     /* R278 */
+       0x0000,     /* R279 */
+       0x0000,     /* R280 */
+       0x0000,     /* R281 */
+       0x0000,     /* R282 */
+       0x0000,     /* R283 */
+       0x0000,     /* R284 */
+       0x0000,     /* R285 */
+       0x0000,     /* R286 */
+       0x0000,     /* R287 */
+       0x0000,     /* R288 */
+       0x0000,     /* R289 */
+       0x0000,     /* R290 */
+       0x0000,     /* R291 */
+       0x0000,     /* R292 */
+       0x0000,     /* R293 */
+       0x0000,     /* R294 */
+       0x0000,     /* R295 */
+       0x0000,     /* R296 */
+       0x0000,     /* R297 */
+       0x0000,     /* R298 */
+       0x0000,     /* R299 */
+       0x0000,     /* R300 */
+       0x0000,     /* R301 */
+       0x0000,     /* R302 */
+       0x0000,     /* R303 */
+       0x0000,     /* R304 */
+       0x0000,     /* R305 */
+       0x0000,     /* R306 */
+       0x0000,     /* R307 */
+       0x0000,     /* R308 */
+       0x0000,     /* R309 */
+       0x0000,     /* R310 */
+       0x0000,     /* R311 */
+       0x0000,     /* R312 */
+       0x0000,     /* R313 */
+       0x0000,     /* R314 */
+       0x0000,     /* R315 */
+       0x0000,     /* R316 */
+       0x0000,     /* R317 */
+       0x0000,     /* R318 */
+       0x0000,     /* R319 */
+       0x0000,     /* R320 */
+       0x0000,     /* R321 */
+       0x0000,     /* R322 */
+       0x0000,     /* R323 */
+       0x0000,     /* R324 */
+       0x0000,     /* R325 */
+       0x0000,     /* R326 */
+       0x0000,     /* R327 */
+       0x0000,     /* R328 */
+       0x0000,     /* R329 */
+       0x0000,     /* R330 */
+       0x0000,     /* R331 */
+       0x0000,     /* R332 */
+       0x0000,     /* R333 */
+       0x0000,     /* R334 */
+       0x0000,     /* R335 */
+       0x0000,     /* R336 */
+       0x0000,     /* R337 */
+       0x0000,     /* R338 */
+       0x0000,     /* R339 */
+       0x0000,     /* R340 */
+       0x0000,     /* R341 */
+       0x0000,     /* R342 */
+       0x0000,     /* R343 */
+       0x0000,     /* R344 */
+       0x0000,     /* R345 */
+       0x0000,     /* R346 */
+       0x0000,     /* R347 */
+       0x0000,     /* R348 */
+       0x0000,     /* R349 */
+       0x0000,     /* R350 */
+       0x0000,     /* R351 */
+       0x0000,     /* R352 */
+       0x0000,     /* R353 */
+       0x0000,     /* R354 */
+       0x0000,     /* R355 */
+       0x0000,     /* R356 */
+       0x0000,     /* R357 */
+       0x0000,     /* R358 */
+       0x0000,     /* R359 */
+       0x0000,     /* R360 */
+       0x0000,     /* R361 */
+       0x0000,     /* R362 */
+       0x0000,     /* R363 */
+       0x0000,     /* R364 */
+       0x0000,     /* R365 */
+       0x0000,     /* R366 */
+       0x0000,     /* R367 */
+       0x0000,     /* R368 */
+       0x0000,     /* R369 */
+       0x0000,     /* R370 */
+       0x0000,     /* R371 */
+       0x0000,     /* R372 */
+       0x0000,     /* R373 */
+       0x0000,     /* R374 */
+       0x0000,     /* R375 */
+       0x0000,     /* R376 */
+       0x0000,     /* R377 */
+       0x0000,     /* R378 */
+       0x0000,     /* R379 */
+       0x0000,     /* R380 */
+       0x0000,     /* R381 */
+       0x0000,     /* R382 */
+       0x0000,     /* R383 */
+       0x0000,     /* R384 */
+       0x0000,     /* R385 */
+       0x0000,     /* R386 */
+       0x0000,     /* R387 */
+       0x0000,     /* R388 */
+       0x0000,     /* R389 */
+       0x0000,     /* R390 */
+       0x0000,     /* R391 */
+       0x0000,     /* R392 */
+       0x0000,     /* R393 */
+       0x0000,     /* R394 */
+       0x0000,     /* R395 */
+       0x0000,     /* R396 */
+       0x0000,     /* R397 */
+       0x0000,     /* R398 */
+       0x0000,     /* R399 */
+       0x0000,     /* R400 */
+       0x0000,     /* R401 */
+       0x0000,     /* R402 */
+       0x0000,     /* R403 */
+       0x0000,     /* R404 */
+       0x0000,     /* R405 */
+       0x0000,     /* R406 */
+       0x0000,     /* R407 */
+       0x0000,     /* R408 */
+       0x0000,     /* R409 */
+       0x0000,     /* R410 */
+       0x0000,     /* R411 */
+       0x0000,     /* R412 */
+       0x0000,     /* R413 */
+       0x0000,     /* R414 */
+       0x0000,     /* R415 */
+       0x0000,     /* R416 */
+       0x0000,     /* R417 */
+       0x0000,     /* R418 */
+       0x0000,     /* R419 */
+       0x0000,     /* R420 */
+       0x0000,     /* R421 */
+       0x0000,     /* R422 */
+       0x0000,     /* R423 */
+       0x0000,     /* R424 */
+       0x0000,     /* R425 */
+       0x0000,     /* R426 */
+       0x0000,     /* R427 */
+       0x0000,     /* R428 */
+       0x0000,     /* R429 */
+       0x0000,     /* R430 */
+       0x0000,     /* R431 */
+       0x0000,     /* R432 */
+       0x0000,     /* R433 */
+       0x0000,     /* R434 */
+       0x0000,     /* R435 */
+       0x0000,     /* R436 */
+       0x0000,     /* R437 */
+       0x0000,     /* R438 */
+       0x0000,     /* R439 */
+       0x0000,     /* R440 */
+       0x0000,     /* R441 */
+       0x0000,     /* R442 */
+       0x0000,     /* R443 */
+       0x0000,     /* R444 */
+       0x0000,     /* R445 */
+       0x0000,     /* R446 */
+       0x0000,     /* R447 */
+       0x0000,     /* R448 */
+       0x0000,     /* R449 */
+       0x0000,     /* R450 */
+       0x0000,     /* R451 */
+       0x0000,     /* R452 */
+       0x0000,     /* R453 */
+       0x0000,     /* R454 */
+       0x0000,     /* R455 */
+       0x0000,     /* R456 */
+       0x0000,     /* R457 */
+       0x0000,     /* R458 */
+       0x0000,     /* R459 */
+       0x0000,     /* R460 */
+       0x0000,     /* R461 */
+       0x0000,     /* R462 */
+       0x0000,     /* R463 */
+       0x0000,     /* R464 */
+       0x0000,     /* R465 */
+       0x0000,     /* R466 */
+       0x0000,     /* R467 */
+       0x0000,     /* R468 */
+       0x0000,     /* R469 */
+       0x0000,     /* R470 */
+       0x0000,     /* R471 */
+       0x0000,     /* R472 */
+       0x0000,     /* R473 */
+       0x0000,     /* R474 */
+       0x0000,     /* R475 */
+       0x0000,     /* R476 */
+       0x0000,     /* R477 */
+       0x0000,     /* R478 */
+       0x0000,     /* R479 */
+       0x0000,     /* R480 */
+       0x0000,     /* R481 */
+       0x0000,     /* R482 */
+       0x0000,     /* R483 */
+       0x0000,     /* R484 */
+       0x0000,     /* R485 */
+       0x0000,     /* R486 */
+       0x0000,     /* R487 */
+       0x0000,     /* R488 */
+       0x0000,     /* R489 */
+       0x0000,     /* R490 */
+       0x0000,     /* R491 */
+       0x0000,     /* R492 */
+       0x0000,     /* R493 */
+       0x0000,     /* R494 */
+       0x0000,     /* R495 */
+       0x0000,     /* R496 */
+       0x0000,     /* R497 */
+       0x0000,     /* R498 */
+       0x0000,     /* R499 */
+       0x0000,     /* R500 */
+       0x0000,     /* R501 */
+       0x0000,     /* R502 */
+       0x0000,     /* R503 */
+       0x0000,     /* R504 */
+       0x0000,     /* R505 */
+       0x0000,     /* R506 */
+       0x0000,     /* R507 */
+       0x0000,     /* R508 */
+       0x0000,     /* R509 */
+       0x0000,     /* R510 */
+       0x0000,     /* R511 */
+       0x0000,     /* R512   - AIF1 Clocking (1) */
+       0x0000,     /* R513   - AIF1 Clocking (2) */
+       0x0000,     /* R514 */
+       0x0000,     /* R515 */
+       0x0000,     /* R516   - AIF2 Clocking (1) */
+       0x0000,     /* R517   - AIF2 Clocking (2) */
+       0x0000,     /* R518 */
+       0x0000,     /* R519 */
+       0x0000,     /* R520   - Clocking (1) */
+       0x0000,     /* R521   - Clocking (2) */
+       0x0000,     /* R522 */
+       0x0000,     /* R523 */
+       0x0000,     /* R524 */
+       0x0000,     /* R525 */
+       0x0000,     /* R526 */
+       0x0000,     /* R527 */
+       0x0083,     /* R528   - AIF1 Rate */
+       0x0083,     /* R529   - AIF2 Rate */
+       0x0000,     /* R530   - Rate Status */
+       0x0000,     /* R531 */
+       0x0000,     /* R532 */
+       0x0000,     /* R533 */
+       0x0000,     /* R534 */
+       0x0000,     /* R535 */
+       0x0000,     /* R536 */
+       0x0000,     /* R537 */
+       0x0000,     /* R538 */
+       0x0000,     /* R539 */
+       0x0000,     /* R540 */
+       0x0000,     /* R541 */
+       0x0000,     /* R542 */
+       0x0000,     /* R543 */
+       0x0000,     /* R544   - FLL1 Control (1) */
+       0x0000,     /* R545   - FLL1 Control (2) */
+       0x0000,     /* R546   - FLL1 Control (3) */
+       0x0000,     /* R547   - FLL1 Control (4) */
+       0x0C80,     /* R548   - FLL1 Control (5) */
+       0x0000,     /* R549 */
+       0x0000,     /* R550 */
+       0x0000,     /* R551 */
+       0x0000,     /* R552 */
+       0x0000,     /* R553 */
+       0x0000,     /* R554 */
+       0x0000,     /* R555 */
+       0x0000,     /* R556 */
+       0x0000,     /* R557 */
+       0x0000,     /* R558 */
+       0x0000,     /* R559 */
+       0x0000,     /* R560 */
+       0x0000,     /* R561 */
+       0x0000,     /* R562 */
+       0x0000,     /* R563 */
+       0x0000,     /* R564 */
+       0x0000,     /* R565 */
+       0x0000,     /* R566 */
+       0x0000,     /* R567 */
+       0x0000,     /* R568 */
+       0x0000,     /* R569 */
+       0x0000,     /* R570 */
+       0x0000,     /* R571 */
+       0x0000,     /* R572 */
+       0x0000,     /* R573 */
+       0x0000,     /* R574 */
+       0x0000,     /* R575 */
+       0x0000,     /* R576   - FLL2 Control (1) */
+       0x0000,     /* R577   - FLL2 Control (2) */
+       0x0000,     /* R578   - FLL2 Control (3) */
+       0x0000,     /* R579   - FLL2 Control (4) */
+       0x0C80,     /* R580   - FLL2 Control (5) */
+       0x0000,     /* R581 */
+       0x0000,     /* R582 */
+       0x0000,     /* R583 */
+       0x0000,     /* R584 */
+       0x0000,     /* R585 */
+       0x0000,     /* R586 */
+       0x0000,     /* R587 */
+       0x0000,     /* R588 */
+       0x0000,     /* R589 */
+       0x0000,     /* R590 */
+       0x0000,     /* R591 */
+       0x0000,     /* R592 */
+       0x0000,     /* R593 */
+       0x0000,     /* R594 */
+       0x0000,     /* R595 */
+       0x0000,     /* R596 */
+       0x0000,     /* R597 */
+       0x0000,     /* R598 */
+       0x0000,     /* R599 */
+       0x0000,     /* R600 */
+       0x0000,     /* R601 */
+       0x0000,     /* R602 */
+       0x0000,     /* R603 */
+       0x0000,     /* R604 */
+       0x0000,     /* R605 */
+       0x0000,     /* R606 */
+       0x0000,     /* R607 */
+       0x0000,     /* R608 */
+       0x0000,     /* R609 */
+       0x0000,     /* R610 */
+       0x0000,     /* R611 */
+       0x0000,     /* R612 */
+       0x0000,     /* R613 */
+       0x0000,     /* R614 */
+       0x0000,     /* R615 */
+       0x0000,     /* R616 */
+       0x0000,     /* R617 */
+       0x0000,     /* R618 */
+       0x0000,     /* R619 */
+       0x0000,     /* R620 */
+       0x0000,     /* R621 */
+       0x0000,     /* R622 */
+       0x0000,     /* R623 */
+       0x0000,     /* R624 */
+       0x0000,     /* R625 */
+       0x0000,     /* R626 */
+       0x0000,     /* R627 */
+       0x0000,     /* R628 */
+       0x0000,     /* R629 */
+       0x0000,     /* R630 */
+       0x0000,     /* R631 */
+       0x0000,     /* R632 */
+       0x0000,     /* R633 */
+       0x0000,     /* R634 */
+       0x0000,     /* R635 */
+       0x0000,     /* R636 */
+       0x0000,     /* R637 */
+       0x0000,     /* R638 */
+       0x0000,     /* R639 */
+       0x0000,     /* R640 */
+       0x0000,     /* R641 */
+       0x0000,     /* R642 */
+       0x0000,     /* R643 */
+       0x0000,     /* R644 */
+       0x0000,     /* R645 */
+       0x0000,     /* R646 */
+       0x0000,     /* R647 */
+       0x0000,     /* R648 */
+       0x0000,     /* R649 */
+       0x0000,     /* R650 */
+       0x0000,     /* R651 */
+       0x0000,     /* R652 */
+       0x0000,     /* R653 */
+       0x0000,     /* R654 */
+       0x0000,     /* R655 */
+       0x0000,     /* R656 */
+       0x0000,     /* R657 */
+       0x0000,     /* R658 */
+       0x0000,     /* R659 */
+       0x0000,     /* R660 */
+       0x0000,     /* R661 */
+       0x0000,     /* R662 */
+       0x0000,     /* R663 */
+       0x0000,     /* R664 */
+       0x0000,     /* R665 */
+       0x0000,     /* R666 */
+       0x0000,     /* R667 */
+       0x0000,     /* R668 */
+       0x0000,     /* R669 */
+       0x0000,     /* R670 */
+       0x0000,     /* R671 */
+       0x0000,     /* R672 */
+       0x0000,     /* R673 */
+       0x0000,     /* R674 */
+       0x0000,     /* R675 */
+       0x0000,     /* R676 */
+       0x0000,     /* R677 */
+       0x0000,     /* R678 */
+       0x0000,     /* R679 */
+       0x0000,     /* R680 */
+       0x0000,     /* R681 */
+       0x0000,     /* R682 */
+       0x0000,     /* R683 */
+       0x0000,     /* R684 */
+       0x0000,     /* R685 */
+       0x0000,     /* R686 */
+       0x0000,     /* R687 */
+       0x0000,     /* R688 */
+       0x0000,     /* R689 */
+       0x0000,     /* R690 */
+       0x0000,     /* R691 */
+       0x0000,     /* R692 */
+       0x0000,     /* R693 */
+       0x0000,     /* R694 */
+       0x0000,     /* R695 */
+       0x0000,     /* R696 */
+       0x0000,     /* R697 */
+       0x0000,     /* R698 */
+       0x0000,     /* R699 */
+       0x0000,     /* R700 */
+       0x0000,     /* R701 */
+       0x0000,     /* R702 */
+       0x0000,     /* R703 */
+       0x0000,     /* R704 */
+       0x0000,     /* R705 */
+       0x0000,     /* R706 */
+       0x0000,     /* R707 */
+       0x0000,     /* R708 */
+       0x0000,     /* R709 */
+       0x0000,     /* R710 */
+       0x0000,     /* R711 */
+       0x0000,     /* R712 */
+       0x0000,     /* R713 */
+       0x0000,     /* R714 */
+       0x0000,     /* R715 */
+       0x0000,     /* R716 */
+       0x0000,     /* R717 */
+       0x0000,     /* R718 */
+       0x0000,     /* R719 */
+       0x0000,     /* R720 */
+       0x0000,     /* R721 */
+       0x0000,     /* R722 */
+       0x0000,     /* R723 */
+       0x0000,     /* R724 */
+       0x0000,     /* R725 */
+       0x0000,     /* R726 */
+       0x0000,     /* R727 */
+       0x0000,     /* R728 */
+       0x0000,     /* R729 */
+       0x0000,     /* R730 */
+       0x0000,     /* R731 */
+       0x0000,     /* R732 */
+       0x0000,     /* R733 */
+       0x0000,     /* R734 */
+       0x0000,     /* R735 */
+       0x0000,     /* R736 */
+       0x0000,     /* R737 */
+       0x0000,     /* R738 */
+       0x0000,     /* R739 */
+       0x0000,     /* R740 */
+       0x0000,     /* R741 */
+       0x0000,     /* R742 */
+       0x0000,     /* R743 */
+       0x0000,     /* R744 */
+       0x0000,     /* R745 */
+       0x0000,     /* R746 */
+       0x0000,     /* R747 */
+       0x0000,     /* R748 */
+       0x0000,     /* R749 */
+       0x0000,     /* R750 */
+       0x0000,     /* R751 */
+       0x0000,     /* R752 */
+       0x0000,     /* R753 */
+       0x0000,     /* R754 */
+       0x0000,     /* R755 */
+       0x0000,     /* R756 */
+       0x0000,     /* R757 */
+       0x0000,     /* R758 */
+       0x0000,     /* R759 */
+       0x0000,     /* R760 */
+       0x0000,     /* R761 */
+       0x0000,     /* R762 */
+       0x0000,     /* R763 */
+       0x0000,     /* R764 */
+       0x0000,     /* R765 */
+       0x0000,     /* R766 */
+       0x0000,     /* R767 */
+       0x4050,     /* R768   - AIF1 Control (1) */
+       0x4000,     /* R769   - AIF1 Control (2) */
+       0x0000,     /* R770   - AIF1 Master/Slave */
+       0x0040,     /* R771   - AIF1 BCLK */
+       0x0040,     /* R772   - AIF1ADC LRCLK */
+       0x0040,     /* R773   - AIF1DAC LRCLK */
+       0x0004,     /* R774   - AIF1DAC Data */
+       0x0100,     /* R775   - AIF1ADC Data */
+       0x0000,     /* R776 */
+       0x0000,     /* R777 */
+       0x0000,     /* R778 */
+       0x0000,     /* R779 */
+       0x0000,     /* R780 */
+       0x0000,     /* R781 */
+       0x0000,     /* R782 */
+       0x0000,     /* R783 */
+       0x4050,     /* R784   - AIF2 Control (1) */
+       0x4000,     /* R785   - AIF2 Control (2) */
+       0x0000,     /* R786   - AIF2 Master/Slave */
+       0x0040,     /* R787   - AIF2 BCLK */
+       0x0040,     /* R788   - AIF2ADC LRCLK */
+       0x0040,     /* R789   - AIF2DAC LRCLK */
+       0x0000,     /* R790   - AIF2DAC Data */
+       0x0000,     /* R791   - AIF2ADC Data */
+       0x0000,     /* R792 */
+       0x0000,     /* R793 */
+       0x0000,     /* R794 */
+       0x0000,     /* R795 */
+       0x0000,     /* R796 */
+       0x0000,     /* R797 */
+       0x0000,     /* R798 */
+       0x0000,     /* R799 */
+       0x0000,     /* R800 */
+       0x0000,     /* R801 */
+       0x0000,     /* R802 */
+       0x0000,     /* R803 */
+       0x0000,     /* R804 */
+       0x0000,     /* R805 */
+       0x0000,     /* R806 */
+       0x0000,     /* R807 */
+       0x0000,     /* R808 */
+       0x0000,     /* R809 */
+       0x0000,     /* R810 */
+       0x0000,     /* R811 */
+       0x0000,     /* R812 */
+       0x0000,     /* R813 */
+       0x0000,     /* R814 */
+       0x0000,     /* R815 */
+       0x0000,     /* R816 */
+       0x0000,     /* R817 */
+       0x0000,     /* R818 */
+       0x0000,     /* R819 */
+       0x0000,     /* R820 */
+       0x0000,     /* R821 */
+       0x0000,     /* R822 */
+       0x0000,     /* R823 */
+       0x0000,     /* R824 */
+       0x0000,     /* R825 */
+       0x0000,     /* R826 */
+       0x0000,     /* R827 */
+       0x0000,     /* R828 */
+       0x0000,     /* R829 */
+       0x0000,     /* R830 */
+       0x0000,     /* R831 */
+       0x0000,     /* R832 */
+       0x0000,     /* R833 */
+       0x0000,     /* R834 */
+       0x0000,     /* R835 */
+       0x0000,     /* R836 */
+       0x0000,     /* R837 */
+       0x0000,     /* R838 */
+       0x0000,     /* R839 */
+       0x0000,     /* R840 */
+       0x0000,     /* R841 */
+       0x0000,     /* R842 */
+       0x0000,     /* R843 */
+       0x0000,     /* R844 */
+       0x0000,     /* R845 */
+       0x0000,     /* R846 */
+       0x0000,     /* R847 */
+       0x0000,     /* R848 */
+       0x0000,     /* R849 */
+       0x0000,     /* R850 */
+       0x0000,     /* R851 */
+       0x0000,     /* R852 */
+       0x0000,     /* R853 */
+       0x0000,     /* R854 */
+       0x0000,     /* R855 */
+       0x0000,     /* R856 */
+       0x0000,     /* R857 */
+       0x0000,     /* R858 */
+       0x0000,     /* R859 */
+       0x0000,     /* R860 */
+       0x0000,     /* R861 */
+       0x0000,     /* R862 */
+       0x0000,     /* R863 */
+       0x0000,     /* R864 */
+       0x0000,     /* R865 */
+       0x0000,     /* R866 */
+       0x0000,     /* R867 */
+       0x0000,     /* R868 */
+       0x0000,     /* R869 */
+       0x0000,     /* R870 */
+       0x0000,     /* R871 */
+       0x0000,     /* R872 */
+       0x0000,     /* R873 */
+       0x0000,     /* R874 */
+       0x0000,     /* R875 */
+       0x0000,     /* R876 */
+       0x0000,     /* R877 */
+       0x0000,     /* R878 */
+       0x0000,     /* R879 */
+       0x0000,     /* R880 */
+       0x0000,     /* R881 */
+       0x0000,     /* R882 */
+       0x0000,     /* R883 */
+       0x0000,     /* R884 */
+       0x0000,     /* R885 */
+       0x0000,     /* R886 */
+       0x0000,     /* R887 */
+       0x0000,     /* R888 */
+       0x0000,     /* R889 */
+       0x0000,     /* R890 */
+       0x0000,     /* R891 */
+       0x0000,     /* R892 */
+       0x0000,     /* R893 */
+       0x0000,     /* R894 */
+       0x0000,     /* R895 */
+       0x0000,     /* R896 */
+       0x0000,     /* R897 */
+       0x0000,     /* R898 */
+       0x0000,     /* R899 */
+       0x0000,     /* R900 */
+       0x0000,     /* R901 */
+       0x0000,     /* R902 */
+       0x0000,     /* R903 */
+       0x0000,     /* R904 */
+       0x0000,     /* R905 */
+       0x0000,     /* R906 */
+       0x0000,     /* R907 */
+       0x0000,     /* R908 */
+       0x0000,     /* R909 */
+       0x0000,     /* R910 */
+       0x0000,     /* R911 */
+       0x0000,     /* R912 */
+       0x0000,     /* R913 */
+       0x0000,     /* R914 */
+       0x0000,     /* R915 */
+       0x0000,     /* R916 */
+       0x0000,     /* R917 */
+       0x0000,     /* R918 */
+       0x0000,     /* R919 */
+       0x0000,     /* R920 */
+       0x0000,     /* R921 */
+       0x0000,     /* R922 */
+       0x0000,     /* R923 */
+       0x0000,     /* R924 */
+       0x0000,     /* R925 */
+       0x0000,     /* R926 */
+       0x0000,     /* R927 */
+       0x0000,     /* R928 */
+       0x0000,     /* R929 */
+       0x0000,     /* R930 */
+       0x0000,     /* R931 */
+       0x0000,     /* R932 */
+       0x0000,     /* R933 */
+       0x0000,     /* R934 */
+       0x0000,     /* R935 */
+       0x0000,     /* R936 */
+       0x0000,     /* R937 */
+       0x0000,     /* R938 */
+       0x0000,     /* R939 */
+       0x0000,     /* R940 */
+       0x0000,     /* R941 */
+       0x0000,     /* R942 */
+       0x0000,     /* R943 */
+       0x0000,     /* R944 */
+       0x0000,     /* R945 */
+       0x0000,     /* R946 */
+       0x0000,     /* R947 */
+       0x0000,     /* R948 */
+       0x0000,     /* R949 */
+       0x0000,     /* R950 */
+       0x0000,     /* R951 */
+       0x0000,     /* R952 */
+       0x0000,     /* R953 */
+       0x0000,     /* R954 */
+       0x0000,     /* R955 */
+       0x0000,     /* R956 */
+       0x0000,     /* R957 */
+       0x0000,     /* R958 */
+       0x0000,     /* R959 */
+       0x0000,     /* R960 */
+       0x0000,     /* R961 */
+       0x0000,     /* R962 */
+       0x0000,     /* R963 */
+       0x0000,     /* R964 */
+       0x0000,     /* R965 */
+       0x0000,     /* R966 */
+       0x0000,     /* R967 */
+       0x0000,     /* R968 */
+       0x0000,     /* R969 */
+       0x0000,     /* R970 */
+       0x0000,     /* R971 */
+       0x0000,     /* R972 */
+       0x0000,     /* R973 */
+       0x0000,     /* R974 */
+       0x0000,     /* R975 */
+       0x0000,     /* R976 */
+       0x0000,     /* R977 */
+       0x0000,     /* R978 */
+       0x0000,     /* R979 */
+       0x0000,     /* R980 */
+       0x0000,     /* R981 */
+       0x0000,     /* R982 */
+       0x0000,     /* R983 */
+       0x0000,     /* R984 */
+       0x0000,     /* R985 */
+       0x0000,     /* R986 */
+       0x0000,     /* R987 */
+       0x0000,     /* R988 */
+       0x0000,     /* R989 */
+       0x0000,     /* R990 */
+       0x0000,     /* R991 */
+       0x0000,     /* R992 */
+       0x0000,     /* R993 */
+       0x0000,     /* R994 */
+       0x0000,     /* R995 */
+       0x0000,     /* R996 */
+       0x0000,     /* R997 */
+       0x0000,     /* R998 */
+       0x0000,     /* R999 */
+       0x0000,     /* R1000 */
+       0x0000,     /* R1001 */
+       0x0000,     /* R1002 */
+       0x0000,     /* R1003 */
+       0x0000,     /* R1004 */
+       0x0000,     /* R1005 */
+       0x0000,     /* R1006 */
+       0x0000,     /* R1007 */
+       0x0000,     /* R1008 */
+       0x0000,     /* R1009 */
+       0x0000,     /* R1010 */
+       0x0000,     /* R1011 */
+       0x0000,     /* R1012 */
+       0x0000,     /* R1013 */
+       0x0000,     /* R1014 */
+       0x0000,     /* R1015 */
+       0x0000,     /* R1016 */
+       0x0000,     /* R1017 */
+       0x0000,     /* R1018 */
+       0x0000,     /* R1019 */
+       0x0000,     /* R1020 */
+       0x0000,     /* R1021 */
+       0x0000,     /* R1022 */
+       0x0000,     /* R1023 */
+       0x00C0,     /* R1024  - AIF1 ADC1 Left Volume */
+       0x00C0,     /* R1025  - AIF1 ADC1 Right Volume */
+       0x00C0,     /* R1026  - AIF1 DAC1 Left Volume */
+       0x00C0,     /* R1027  - AIF1 DAC1 Right Volume */
+       0x00C0,     /* R1028  - AIF1 ADC2 Left Volume */
+       0x00C0,     /* R1029  - AIF1 ADC2 Right Volume */
+       0x00C0,     /* R1030  - AIF1 DAC2 Left Volume */
+       0x00C0,     /* R1031  - AIF1 DAC2 Right Volume */
+       0x0000,     /* R1032 */
+       0x0000,     /* R1033 */
+       0x0000,     /* R1034 */
+       0x0000,     /* R1035 */
+       0x0000,     /* R1036 */
+       0x0000,     /* R1037 */
+       0x0000,     /* R1038 */
+       0x0000,     /* R1039 */
+       0x0000,     /* R1040  - AIF1 ADC1 Filters */
+       0x0000,     /* R1041  - AIF1 ADC2 Filters */
+       0x0000,     /* R1042 */
+       0x0000,     /* R1043 */
+       0x0000,     /* R1044 */
+       0x0000,     /* R1045 */
+       0x0000,     /* R1046 */
+       0x0000,     /* R1047 */
+       0x0000,     /* R1048 */
+       0x0000,     /* R1049 */
+       0x0000,     /* R1050 */
+       0x0000,     /* R1051 */
+       0x0000,     /* R1052 */
+       0x0000,     /* R1053 */
+       0x0000,     /* R1054 */
+       0x0000,     /* R1055 */
+       0x0200,     /* R1056  - AIF1 DAC1 Filters (1) */
+       0x0010,     /* R1057  - AIF1 DAC1 Filters (2) */
+       0x0200,     /* R1058  - AIF1 DAC2 Filters (1) */
+       0x0010,     /* R1059  - AIF1 DAC2 Filters (2) */
+       0x0000,     /* R1060 */
+       0x0000,     /* R1061 */
+       0x0000,     /* R1062 */
+       0x0000,     /* R1063 */
+       0x0000,     /* R1064 */
+       0x0000,     /* R1065 */
+       0x0000,     /* R1066 */
+       0x0000,     /* R1067 */
+       0x0000,     /* R1068 */
+       0x0000,     /* R1069 */
+       0x0000,     /* R1070 */
+       0x0000,     /* R1071 */
+       0x0000,     /* R1072 */
+       0x0000,     /* R1073 */
+       0x0000,     /* R1074 */
+       0x0000,     /* R1075 */
+       0x0000,     /* R1076 */
+       0x0000,     /* R1077 */
+       0x0000,     /* R1078 */
+       0x0000,     /* R1079 */
+       0x0000,     /* R1080 */
+       0x0000,     /* R1081 */
+       0x0000,     /* R1082 */
+       0x0000,     /* R1083 */
+       0x0000,     /* R1084 */
+       0x0000,     /* R1085 */
+       0x0000,     /* R1086 */
+       0x0000,     /* R1087 */
+       0x0098,     /* R1088  - AIF1 DRC1 (1) */
+       0x0845,     /* R1089  - AIF1 DRC1 (2) */
+       0x0000,     /* R1090  - AIF1 DRC1 (3) */
+       0x0000,     /* R1091  - AIF1 DRC1 (4) */
+       0x0000,     /* R1092  - AIF1 DRC1 (5) */
+       0x0000,     /* R1093 */
+       0x0000,     /* R1094 */
+       0x0000,     /* R1095 */
+       0x0000,     /* R1096 */
+       0x0000,     /* R1097 */
+       0x0000,     /* R1098 */
+       0x0000,     /* R1099 */
+       0x0000,     /* R1100 */
+       0x0000,     /* R1101 */
+       0x0000,     /* R1102 */
+       0x0000,     /* R1103 */
+       0x0098,     /* R1104  - AIF1 DRC2 (1) */
+       0x0845,     /* R1105  - AIF1 DRC2 (2) */
+       0x0000,     /* R1106  - AIF1 DRC2 (3) */
+       0x0000,     /* R1107  - AIF1 DRC2 (4) */
+       0x0000,     /* R1108  - AIF1 DRC2 (5) */
+       0x0000,     /* R1109 */
+       0x0000,     /* R1110 */
+       0x0000,     /* R1111 */
+       0x0000,     /* R1112 */
+       0x0000,     /* R1113 */
+       0x0000,     /* R1114 */
+       0x0000,     /* R1115 */
+       0x0000,     /* R1116 */
+       0x0000,     /* R1117 */
+       0x0000,     /* R1118 */
+       0x0000,     /* R1119 */
+       0x0000,     /* R1120 */
+       0x0000,     /* R1121 */
+       0x0000,     /* R1122 */
+       0x0000,     /* R1123 */
+       0x0000,     /* R1124 */
+       0x0000,     /* R1125 */
+       0x0000,     /* R1126 */
+       0x0000,     /* R1127 */
+       0x0000,     /* R1128 */
+       0x0000,     /* R1129 */
+       0x0000,     /* R1130 */
+       0x0000,     /* R1131 */
+       0x0000,     /* R1132 */
+       0x0000,     /* R1133 */
+       0x0000,     /* R1134 */
+       0x0000,     /* R1135 */
+       0x0000,     /* R1136 */
+       0x0000,     /* R1137 */
+       0x0000,     /* R1138 */
+       0x0000,     /* R1139 */
+       0x0000,     /* R1140 */
+       0x0000,     /* R1141 */
+       0x0000,     /* R1142 */
+       0x0000,     /* R1143 */
+       0x0000,     /* R1144 */
+       0x0000,     /* R1145 */
+       0x0000,     /* R1146 */
+       0x0000,     /* R1147 */
+       0x0000,     /* R1148 */
+       0x0000,     /* R1149 */
+       0x0000,     /* R1150 */
+       0x0000,     /* R1151 */
+       0x6318,     /* R1152  - AIF1 DAC1 EQ Gains (1) */
+       0x6300,     /* R1153  - AIF1 DAC1 EQ Gains (2) */
+       0x0FCA,     /* R1154  - AIF1 DAC1 EQ Band 1 A */
+       0x0400,     /* R1155  - AIF1 DAC1 EQ Band 1 B */
+       0x00D8,     /* R1156  - AIF1 DAC1 EQ Band 1 PG */
+       0x1EB5,     /* R1157  - AIF1 DAC1 EQ Band 2 A */
+       0xF145,     /* R1158  - AIF1 DAC1 EQ Band 2 B */
+       0x0B75,     /* R1159  - AIF1 DAC1 EQ Band 2 C */
+       0x01C5,     /* R1160  - AIF1 DAC1 EQ Band 2 PG */
+       0x1C58,     /* R1161  - AIF1 DAC1 EQ Band 3 A */
+       0xF373,     /* R1162  - AIF1 DAC1 EQ Band 3 B */
+       0x0A54,     /* R1163  - AIF1 DAC1 EQ Band 3 C */
+       0x0558,     /* R1164  - AIF1 DAC1 EQ Band 3 PG */
+       0x168E,     /* R1165  - AIF1 DAC1 EQ Band 4 A */
+       0xF829,     /* R1166  - AIF1 DAC1 EQ Band 4 B */
+       0x07AD,     /* R1167  - AIF1 DAC1 EQ Band 4 C */
+       0x1103,     /* R1168  - AIF1 DAC1 EQ Band 4 PG */
+       0x0564,     /* R1169  - AIF1 DAC1 EQ Band 5 A */
+       0x0559,     /* R1170  - AIF1 DAC1 EQ Band 5 B */
+       0x4000,     /* R1171  - AIF1 DAC1 EQ Band 5 PG */
+       0x0000,     /* R1172 */
+       0x0000,     /* R1173 */
+       0x0000,     /* R1174 */
+       0x0000,     /* R1175 */
+       0x0000,     /* R1176 */
+       0x0000,     /* R1177 */
+       0x0000,     /* R1178 */
+       0x0000,     /* R1179 */
+       0x0000,     /* R1180 */
+       0x0000,     /* R1181 */
+       0x0000,     /* R1182 */
+       0x0000,     /* R1183 */
+       0x6318,     /* R1184  - AIF1 DAC2 EQ Gains (1) */
+       0x6300,     /* R1185  - AIF1 DAC2 EQ Gains (2) */
+       0x0FCA,     /* R1186  - AIF1 DAC2 EQ Band 1 A */
+       0x0400,     /* R1187  - AIF1 DAC2 EQ Band 1 B */
+       0x00D8,     /* R1188  - AIF1 DAC2 EQ Band 1 PG */
+       0x1EB5,     /* R1189  - AIF1 DAC2 EQ Band 2 A */
+       0xF145,     /* R1190  - AIF1 DAC2 EQ Band 2 B */
+       0x0B75,     /* R1191  - AIF1 DAC2 EQ Band 2 C */
+       0x01C5,     /* R1192  - AIF1 DAC2 EQ Band 2 PG */
+       0x1C58,     /* R1193  - AIF1 DAC2 EQ Band 3 A */
+       0xF373,     /* R1194  - AIF1 DAC2 EQ Band 3 B */
+       0x0A54,     /* R1195  - AIF1 DAC2 EQ Band 3 C */
+       0x0558,     /* R1196  - AIF1 DAC2 EQ Band 3 PG */
+       0x168E,     /* R1197  - AIF1 DAC2 EQ Band 4 A */
+       0xF829,     /* R1198  - AIF1 DAC2 EQ Band 4 B */
+       0x07AD,     /* R1199  - AIF1 DAC2 EQ Band 4 C */
+       0x1103,     /* R1200  - AIF1 DAC2 EQ Band 4 PG */
+       0x0564,     /* R1201  - AIF1 DAC2 EQ Band 5 A */
+       0x0559,     /* R1202  - AIF1 DAC2 EQ Band 5 B */
+       0x4000,     /* R1203  - AIF1 DAC2 EQ Band 5 PG */
+       0x0000,     /* R1204 */
+       0x0000,     /* R1205 */
+       0x0000,     /* R1206 */
+       0x0000,     /* R1207 */
+       0x0000,     /* R1208 */
+       0x0000,     /* R1209 */
+       0x0000,     /* R1210 */
+       0x0000,     /* R1211 */
+       0x0000,     /* R1212 */
+       0x0000,     /* R1213 */
+       0x0000,     /* R1214 */
+       0x0000,     /* R1215 */
+       0x0000,     /* R1216 */
+       0x0000,     /* R1217 */
+       0x0000,     /* R1218 */
+       0x0000,     /* R1219 */
+       0x0000,     /* R1220 */
+       0x0000,     /* R1221 */
+       0x0000,     /* R1222 */
+       0x0000,     /* R1223 */
+       0x0000,     /* R1224 */
+       0x0000,     /* R1225 */
+       0x0000,     /* R1226 */
+       0x0000,     /* R1227 */
+       0x0000,     /* R1228 */
+       0x0000,     /* R1229 */
+       0x0000,     /* R1230 */
+       0x0000,     /* R1231 */
+       0x0000,     /* R1232 */
+       0x0000,     /* R1233 */
+       0x0000,     /* R1234 */
+       0x0000,     /* R1235 */
+       0x0000,     /* R1236 */
+       0x0000,     /* R1237 */
+       0x0000,     /* R1238 */
+       0x0000,     /* R1239 */
+       0x0000,     /* R1240 */
+       0x0000,     /* R1241 */
+       0x0000,     /* R1242 */
+       0x0000,     /* R1243 */
+       0x0000,     /* R1244 */
+       0x0000,     /* R1245 */
+       0x0000,     /* R1246 */
+       0x0000,     /* R1247 */
+       0x0000,     /* R1248 */
+       0x0000,     /* R1249 */
+       0x0000,     /* R1250 */
+       0x0000,     /* R1251 */
+       0x0000,     /* R1252 */
+       0x0000,     /* R1253 */
+       0x0000,     /* R1254 */
+       0x0000,     /* R1255 */
+       0x0000,     /* R1256 */
+       0x0000,     /* R1257 */
+       0x0000,     /* R1258 */
+       0x0000,     /* R1259 */
+       0x0000,     /* R1260 */
+       0x0000,     /* R1261 */
+       0x0000,     /* R1262 */
+       0x0000,     /* R1263 */
+       0x0000,     /* R1264 */
+       0x0000,     /* R1265 */
+       0x0000,     /* R1266 */
+       0x0000,     /* R1267 */
+       0x0000,     /* R1268 */
+       0x0000,     /* R1269 */
+       0x0000,     /* R1270 */
+       0x0000,     /* R1271 */
+       0x0000,     /* R1272 */
+       0x0000,     /* R1273 */
+       0x0000,     /* R1274 */
+       0x0000,     /* R1275 */
+       0x0000,     /* R1276 */
+       0x0000,     /* R1277 */
+       0x0000,     /* R1278 */
+       0x0000,     /* R1279 */
+       0x00C0,     /* R1280  - AIF2 ADC Left Volume */
+       0x00C0,     /* R1281  - AIF2 ADC Right Volume */
+       0x00C0,     /* R1282  - AIF2 DAC Left Volume */
+       0x00C0,     /* R1283  - AIF2 DAC Right Volume */
+       0x0000,     /* R1284 */
+       0x0000,     /* R1285 */
+       0x0000,     /* R1286 */
+       0x0000,     /* R1287 */
+       0x0000,     /* R1288 */
+       0x0000,     /* R1289 */
+       0x0000,     /* R1290 */
+       0x0000,     /* R1291 */
+       0x0000,     /* R1292 */
+       0x0000,     /* R1293 */
+       0x0000,     /* R1294 */
+       0x0000,     /* R1295 */
+       0x0000,     /* R1296  - AIF2 ADC Filters */
+       0x0000,     /* R1297 */
+       0x0000,     /* R1298 */
+       0x0000,     /* R1299 */
+       0x0000,     /* R1300 */
+       0x0000,     /* R1301 */
+       0x0000,     /* R1302 */
+       0x0000,     /* R1303 */
+       0x0000,     /* R1304 */
+       0x0000,     /* R1305 */
+       0x0000,     /* R1306 */
+       0x0000,     /* R1307 */
+       0x0000,     /* R1308 */
+       0x0000,     /* R1309 */
+       0x0000,     /* R1310 */
+       0x0000,     /* R1311 */
+       0x0200,     /* R1312  - AIF2 DAC Filters (1) */
+       0x0010,     /* R1313  - AIF2 DAC Filters (2) */
+       0x0000,     /* R1314 */
+       0x0000,     /* R1315 */
+       0x0000,     /* R1316 */
+       0x0000,     /* R1317 */
+       0x0000,     /* R1318 */
+       0x0000,     /* R1319 */
+       0x0000,     /* R1320 */
+       0x0000,     /* R1321 */
+       0x0000,     /* R1322 */
+       0x0000,     /* R1323 */
+       0x0000,     /* R1324 */
+       0x0000,     /* R1325 */
+       0x0000,     /* R1326 */
+       0x0000,     /* R1327 */
+       0x0000,     /* R1328 */
+       0x0000,     /* R1329 */
+       0x0000,     /* R1330 */
+       0x0000,     /* R1331 */
+       0x0000,     /* R1332 */
+       0x0000,     /* R1333 */
+       0x0000,     /* R1334 */
+       0x0000,     /* R1335 */
+       0x0000,     /* R1336 */
+       0x0000,     /* R1337 */
+       0x0000,     /* R1338 */
+       0x0000,     /* R1339 */
+       0x0000,     /* R1340 */
+       0x0000,     /* R1341 */
+       0x0000,     /* R1342 */
+       0x0000,     /* R1343 */
+       0x0098,     /* R1344  - AIF2 DRC (1) */
+       0x0845,     /* R1345  - AIF2 DRC (2) */
+       0x0000,     /* R1346  - AIF2 DRC (3) */
+       0x0000,     /* R1347  - AIF2 DRC (4) */
+       0x0000,     /* R1348  - AIF2 DRC (5) */
+       0x0000,     /* R1349 */
+       0x0000,     /* R1350 */
+       0x0000,     /* R1351 */
+       0x0000,     /* R1352 */
+       0x0000,     /* R1353 */
+       0x0000,     /* R1354 */
+       0x0000,     /* R1355 */
+       0x0000,     /* R1356 */
+       0x0000,     /* R1357 */
+       0x0000,     /* R1358 */
+       0x0000,     /* R1359 */
+       0x0000,     /* R1360 */
+       0x0000,     /* R1361 */
+       0x0000,     /* R1362 */
+       0x0000,     /* R1363 */
+       0x0000,     /* R1364 */
+       0x0000,     /* R1365 */
+       0x0000,     /* R1366 */
+       0x0000,     /* R1367 */
+       0x0000,     /* R1368 */
+       0x0000,     /* R1369 */
+       0x0000,     /* R1370 */
+       0x0000,     /* R1371 */
+       0x0000,     /* R1372 */
+       0x0000,     /* R1373 */
+       0x0000,     /* R1374 */
+       0x0000,     /* R1375 */
+       0x0000,     /* R1376 */
+       0x0000,     /* R1377 */
+       0x0000,     /* R1378 */
+       0x0000,     /* R1379 */
+       0x0000,     /* R1380 */
+       0x0000,     /* R1381 */
+       0x0000,     /* R1382 */
+       0x0000,     /* R1383 */
+       0x0000,     /* R1384 */
+       0x0000,     /* R1385 */
+       0x0000,     /* R1386 */
+       0x0000,     /* R1387 */
+       0x0000,     /* R1388 */
+       0x0000,     /* R1389 */
+       0x0000,     /* R1390 */
+       0x0000,     /* R1391 */
+       0x0000,     /* R1392 */
+       0x0000,     /* R1393 */
+       0x0000,     /* R1394 */
+       0x0000,     /* R1395 */
+       0x0000,     /* R1396 */
+       0x0000,     /* R1397 */
+       0x0000,     /* R1398 */
+       0x0000,     /* R1399 */
+       0x0000,     /* R1400 */
+       0x0000,     /* R1401 */
+       0x0000,     /* R1402 */
+       0x0000,     /* R1403 */
+       0x0000,     /* R1404 */
+       0x0000,     /* R1405 */
+       0x0000,     /* R1406 */
+       0x0000,     /* R1407 */
+       0x6318,     /* R1408  - AIF2 EQ Gains (1) */
+       0x6300,     /* R1409  - AIF2 EQ Gains (2) */
+       0x0FCA,     /* R1410  - AIF2 EQ Band 1 A */
+       0x0400,     /* R1411  - AIF2 EQ Band 1 B */
+       0x00D8,     /* R1412  - AIF2 EQ Band 1 PG */
+       0x1EB5,     /* R1413  - AIF2 EQ Band 2 A */
+       0xF145,     /* R1414  - AIF2 EQ Band 2 B */
+       0x0B75,     /* R1415  - AIF2 EQ Band 2 C */
+       0x01C5,     /* R1416  - AIF2 EQ Band 2 PG */
+       0x1C58,     /* R1417  - AIF2 EQ Band 3 A */
+       0xF373,     /* R1418  - AIF2 EQ Band 3 B */
+       0x0A54,     /* R1419  - AIF2 EQ Band 3 C */
+       0x0558,     /* R1420  - AIF2 EQ Band 3 PG */
+       0x168E,     /* R1421  - AIF2 EQ Band 4 A */
+       0xF829,     /* R1422  - AIF2 EQ Band 4 B */
+       0x07AD,     /* R1423  - AIF2 EQ Band 4 C */
+       0x1103,     /* R1424  - AIF2 EQ Band 4 PG */
+       0x0564,     /* R1425  - AIF2 EQ Band 5 A */
+       0x0559,     /* R1426  - AIF2 EQ Band 5 B */
+       0x4000,     /* R1427  - AIF2 EQ Band 5 PG */
+       0x0000,     /* R1428 */
+       0x0000,     /* R1429 */
+       0x0000,     /* R1430 */
+       0x0000,     /* R1431 */
+       0x0000,     /* R1432 */
+       0x0000,     /* R1433 */
+       0x0000,     /* R1434 */
+       0x0000,     /* R1435 */
+       0x0000,     /* R1436 */
+       0x0000,     /* R1437 */
+       0x0000,     /* R1438 */
+       0x0000,     /* R1439 */
+       0x0000,     /* R1440 */
+       0x0000,     /* R1441 */
+       0x0000,     /* R1442 */
+       0x0000,     /* R1443 */
+       0x0000,     /* R1444 */
+       0x0000,     /* R1445 */
+       0x0000,     /* R1446 */
+       0x0000,     /* R1447 */
+       0x0000,     /* R1448 */
+       0x0000,     /* R1449 */
+       0x0000,     /* R1450 */
+       0x0000,     /* R1451 */
+       0x0000,     /* R1452 */
+       0x0000,     /* R1453 */
+       0x0000,     /* R1454 */
+       0x0000,     /* R1455 */
+       0x0000,     /* R1456 */
+       0x0000,     /* R1457 */
+       0x0000,     /* R1458 */
+       0x0000,     /* R1459 */
+       0x0000,     /* R1460 */
+       0x0000,     /* R1461 */
+       0x0000,     /* R1462 */
+       0x0000,     /* R1463 */
+       0x0000,     /* R1464 */
+       0x0000,     /* R1465 */
+       0x0000,     /* R1466 */
+       0x0000,     /* R1467 */
+       0x0000,     /* R1468 */
+       0x0000,     /* R1469 */
+       0x0000,     /* R1470 */
+       0x0000,     /* R1471 */
+       0x0000,     /* R1472 */
+       0x0000,     /* R1473 */
+       0x0000,     /* R1474 */
+       0x0000,     /* R1475 */
+       0x0000,     /* R1476 */
+       0x0000,     /* R1477 */
+       0x0000,     /* R1478 */
+       0x0000,     /* R1479 */
+       0x0000,     /* R1480 */
+       0x0000,     /* R1481 */
+       0x0000,     /* R1482 */
+       0x0000,     /* R1483 */
+       0x0000,     /* R1484 */
+       0x0000,     /* R1485 */
+       0x0000,     /* R1486 */
+       0x0000,     /* R1487 */
+       0x0000,     /* R1488 */
+       0x0000,     /* R1489 */
+       0x0000,     /* R1490 */
+       0x0000,     /* R1491 */
+       0x0000,     /* R1492 */
+       0x0000,     /* R1493 */
+       0x0000,     /* R1494 */
+       0x0000,     /* R1495 */
+       0x0000,     /* R1496 */
+       0x0000,     /* R1497 */
+       0x0000,     /* R1498 */
+       0x0000,     /* R1499 */
+       0x0000,     /* R1500 */
+       0x0000,     /* R1501 */
+       0x0000,     /* R1502 */
+       0x0000,     /* R1503 */
+       0x0000,     /* R1504 */
+       0x0000,     /* R1505 */
+       0x0000,     /* R1506 */
+       0x0000,     /* R1507 */
+       0x0000,     /* R1508 */
+       0x0000,     /* R1509 */
+       0x0000,     /* R1510 */
+       0x0000,     /* R1511 */
+       0x0000,     /* R1512 */
+       0x0000,     /* R1513 */
+       0x0000,     /* R1514 */
+       0x0000,     /* R1515 */
+       0x0000,     /* R1516 */
+       0x0000,     /* R1517 */
+       0x0000,     /* R1518 */
+       0x0000,     /* R1519 */
+       0x0000,     /* R1520 */
+       0x0000,     /* R1521 */
+       0x0000,     /* R1522 */
+       0x0000,     /* R1523 */
+       0x0000,     /* R1524 */
+       0x0000,     /* R1525 */
+       0x0000,     /* R1526 */
+       0x0000,     /* R1527 */
+       0x0000,     /* R1528 */
+       0x0000,     /* R1529 */
+       0x0000,     /* R1530 */
+       0x0000,     /* R1531 */
+       0x0000,     /* R1532 */
+       0x0000,     /* R1533 */
+       0x0000,     /* R1534 */
+       0x0000,     /* R1535 */
+       0x0000,     /* R1536  - DAC1 Mixer Volumes */
+       0x0000,     /* R1537  - DAC1 Left Mixer Routing */
+       0x0000,     /* R1538  - DAC1 Right Mixer Routing */
+       0x0000,     /* R1539  - DAC2 Mixer Volumes */
+       0x0000,     /* R1540  - DAC2 Left Mixer Routing */
+       0x0000,     /* R1541  - DAC2 Right Mixer Routing */
+       0x0000,     /* R1542  - AIF1 ADC1 Left Mixer Routing */
+       0x0000,     /* R1543  - AIF1 ADC1 Right Mixer Routing */
+       0x0000,     /* R1544  - AIF1 ADC2 Left Mixer Routing */
+       0x0000,     /* R1545  - AIF1 ADC2 Right mixer Routing */
+       0x0000,     /* R1546 */
+       0x0000,     /* R1547 */
+       0x0000,     /* R1548 */
+       0x0000,     /* R1549 */
+       0x0000,     /* R1550 */
+       0x0000,     /* R1551 */
+       0x02C0,     /* R1552  - DAC1 Left Volume */
+       0x02C0,     /* R1553  - DAC1 Right Volume */
+       0x02C0,     /* R1554  - DAC2 Left Volume */
+       0x02C0,     /* R1555  - DAC2 Right Volume */
+       0x0000,     /* R1556  - DAC Softmute */
+       0x0000,     /* R1557 */
+       0x0000,     /* R1558 */
+       0x0000,     /* R1559 */
+       0x0000,     /* R1560 */
+       0x0000,     /* R1561 */
+       0x0000,     /* R1562 */
+       0x0000,     /* R1563 */
+       0x0000,     /* R1564 */
+       0x0000,     /* R1565 */
+       0x0000,     /* R1566 */
+       0x0000,     /* R1567 */
+       0x0002,     /* R1568  - Oversampling */
+       0x0000,     /* R1569  - Sidetone */
+};
index 948677b581b1314cf4bef051d7d107e7949f38ab..d9c6dd5823b40b025494cff77b7cdc8fb9be3661 100644 (file)
@@ -57,8 +57,6 @@ static int wm8994_retune_mobile_base[] = {
        WM8994_AIF2_EQ_GAINS_1,
 };
 
-#define WM8994_REG_CACHE_SIZE  0x621
-
 struct wm8994_micdet {
        struct snd_soc_jack *jack;
        int det;
@@ -71,7 +69,6 @@ struct wm8994_priv {
        enum snd_soc_control_type control_type;
        void *control_data;
        struct snd_soc_codec *codec;
-       u16 reg_cache[WM8994_REG_CACHE_SIZE + 1];
        int sysclk[2];
        int sysclk_rate[2];
        int mclk[2];
@@ -134,7 +131,7 @@ static int wm8994_readable(unsigned int reg)
 
 static int wm8994_volatile(unsigned int reg)
 {
-       if (reg >= WM8994_REG_CACHE_SIZE)
+       if (reg >= WM8994_CACHE_SIZE)
                return 1;
 
        switch (reg) {
@@ -156,12 +153,16 @@ static int wm8994_volatile(unsigned int reg)
 static int wm8994_write(struct snd_soc_codec *codec, unsigned int reg,
        unsigned int value)
 {
-       struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
+       int ret;
 
        BUG_ON(reg > WM8994_MAX_REGISTER);
 
-       if (!wm8994_volatile(reg))
-               wm8994->reg_cache[reg] = value;
+       if (!wm8994_volatile(reg)) {
+               ret = snd_soc_cache_write(codec, reg, value);
+               if (ret != 0)
+                       dev_err(codec->dev, "Cache write to %x failed: %d\n",
+                               reg, ret);
+       }
 
        return wm8994_reg_write(codec->control_data, reg, value);
 }
@@ -169,14 +170,22 @@ static int wm8994_write(struct snd_soc_codec *codec, unsigned int reg,
 static unsigned int wm8994_read(struct snd_soc_codec *codec,
                                unsigned int reg)
 {
-       u16 *reg_cache = codec->reg_cache;
+       unsigned int val;
+       int ret;
 
        BUG_ON(reg > WM8994_MAX_REGISTER);
 
-       if (wm8994_volatile(reg))
-               return wm8994_reg_read(codec->control_data, reg);
-       else
-               return reg_cache[reg];
+       if (!wm8994_volatile(reg) && wm8994_readable(reg) &&
+           reg < codec->driver->reg_cache_size) {
+               ret = snd_soc_cache_read(codec, reg, &val);
+               if (ret >= 0)
+                       return val;
+               else
+                       dev_err(codec->dev, "Cache read from %x failed: %d\n",
+                               reg, ret);
+       }
+
+       return wm8994_reg_read(codec->control_data, reg);
 }
 
 static int configure_aif_clock(struct snd_soc_codec *codec, int aif)
@@ -2370,26 +2379,12 @@ static int wm8994_suspend(struct snd_soc_codec *codec, pm_message_t state)
 static int wm8994_resume(struct snd_soc_codec *codec)
 {
        struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
-       u16 *reg_cache = codec->reg_cache;
        int i, ret;
 
        /* Restore the registers */
-       for (i = 1; i < ARRAY_SIZE(wm8994->reg_cache); i++) {
-               switch (i) {
-               case WM8994_LDO_1:
-               case WM8994_LDO_2:
-               case WM8994_SOFTWARE_RESET:
-                       /* Handled by other MFD drivers */
-                       continue;
-               default:
-                       break;
-               }
-
-               if (!wm8994_access_masks[i].writable)
-                       continue;
-
-               wm8994_reg_write(codec->control_data, i, reg_cache[i]);
-       }
+       ret = snd_soc_cache_sync(codec);
+       if (ret != 0)
+               dev_err(codec->dev, "Failed to sync cache: %d\n", ret);
 
        wm8994_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
 
@@ -2782,27 +2777,27 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
                return -ENOMEM;
        snd_soc_codec_set_drvdata(codec, wm8994);
 
-       codec->reg_cache = &wm8994->reg_cache;
-
        wm8994->pdata = dev_get_platdata(codec->dev->parent);
        wm8994->codec = codec;
 
-       /* Fill the cache with physical values we inherited; don't reset */
-       ret = wm8994_bulk_read(codec->control_data, 0,
-                              ARRAY_SIZE(wm8994->reg_cache) - 1,
-                              codec->reg_cache);
-       if (ret < 0) {
-               dev_err(codec->dev, "Failed to fill register cache: %d\n",
-                       ret);
-               goto err;
-       }
+       /* Read our current status back from the chip - we don't want to
+        * reset as this may interfere with the GPIO or LDO operation. */
+       for (i = 0; i < WM8994_CACHE_SIZE; i++) {
+               if (!wm8994_readable(i) || wm8994_volatile(i))
+                       continue;
 
-       /* Clear the cached values for unreadable/volatile registers to
-        * avoid potential confusion.
-        */
-       for (i = 0; i < ARRAY_SIZE(wm8994->reg_cache); i++)
-               if (wm8994_volatile(i) || !wm8994_readable(i))
-                       wm8994->reg_cache[i] = 0;
+               ret = wm8994_reg_read(codec->control_data, i);
+               if (ret <= 0)
+                       continue;
+
+               ret = snd_soc_cache_write(codec, i, ret);
+               if (ret != 0) {
+                       dev_err(codec->dev,
+                               "Failed to initialise cache for 0x%x: %d\n",
+                               i, ret);
+                       goto err;
+               }
+       }
 
        /* Set revision-specific configuration */
        wm8994->revision = snd_soc_read(codec, WM8994_CHIP_REVISION);
@@ -3029,11 +3024,15 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8994 = {
        .remove =       wm8994_codec_remove,
        .suspend =      wm8994_suspend,
        .resume =       wm8994_resume,
-       .read = wm8994_read,
-       .write = wm8994_write,
+       .read =         wm8994_read,
+       .write =        wm8994_write,
        .readable_register = wm8994_readable,
        .volatile_register = wm8994_volatile,
        .set_bias_level = wm8994_set_bias_level,
+
+       .reg_cache_size = WM8994_CACHE_SIZE,
+       .reg_cache_default = wm8994_reg_defaults,
+       .reg_word_size = 2,
 };
 
 static int __devinit wm8994_probe(struct platform_device *pdev)
index 455cae6b4356466ed85e4b6b1d5bbe873c27b891..0c355bfc88f120d1740d8431fa445ee2f940a320 100644 (file)
@@ -43,5 +43,6 @@ struct wm8994_access_mask {
 };
 
 extern const struct wm8994_access_mask wm8994_access_masks[WM8994_CACHE_SIZE];
+extern const __devinitdata  u16 wm8994_reg_defaults[WM8994_CACHE_SIZE];
 
 #endif