]> 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)
commit6133af9e5934060ceaf7f11067ba3ab25c7f3c8e
tree1883284699350a46737dfd9c3fd6f6baf9d3179d
parent231847af6d24c58a0e806285169d9bc870c4064c
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