ASoC: sta32x: Write the register default value to cache for reserved registers
authorAxel Lin <axel.lin@gmail.com>
Thu, 13 Oct 2011 06:57:31 +0000 (14:57 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 13 Oct 2011 10:50:05 +0000 (11:50 +0100)
commitedf413f689e930011bf39ec726f704af99d7263b
tree1883284699350a46737dfd9c3fd6f6baf9d3179d
parentf0bbc2b55f47f93286bb1b9ddbdb8ffed3572064
ASoC: sta32x: Write the register default value to cache for reserved registers

Chip documentation explicitly requires that the reset values
of reserved register bits are left untouched.

codec->hw_read is broken now.
Here we use below trick to avoid writing to reserved registers while resume.
Write the register default value to cache for reserved registers,
so the write to the these registers are suppressed by the cache
restore code when it skips writes of default registers.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sta32x.c