]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4074fe712abf834770b1bf9234a125a0971c58c3
tree1883284699350a46737dfd9c3fd6f6baf9d3179d
parent38490cb82ef6511334b53e1558f58ceace2fcc73
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