8 Nov
2011
8 Nov
'11
12:01 p.m.
On Sun, Nov 06, 2011 at 10:05:15PM -0800, Kuninori Morimoto wrote:
+#define AK4642_CACHEREGNUM (0x24 + 1) +#define AK4648_CACHEREGNUM (0x27 + 1)
- /*
* fixup register cache
* each ak464x have a slightly different value
*/
- for (i = 0; i < chip->reg_fix_size; i++)
ak4642_write_reg_cache(codec,
chip->reg_fix[i].reg,
chip->reg_fix[i].val);
This won't work properly when resyncing the cache as the driver will think that these are non-default values. Given how small the register maps are just have different default tables, it's not worth the effort of doing anything more complex.