]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: wm8955: Fix register cache incoherency
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 28 Dec 2010 20:38:00 +0000 (21:38 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Dec 2010 23:20:00 +0000 (23:20 +0000)
commit1ca01ddbe369df1fd566aaf65f5f07ce89b55465
tree48f445e0c21341f1456d5ccc85e7e6ab1fc30f37
parentdb15f15906dee78d12f9b2092522babac71a82b4
ASoC: codecs: wm8955: Fix register cache incoherency

The multi-component patch(commit 41912c7f6) moved the allocation of the
register cache from the driver to the ASoC core. Most drivers where adjusted to
this, but the wm8955 driver still uses its own register cache for its
private functions, while functions from the ASoC core use the generic cache.
Thus we end up with two from each other incoherent caches, which can lead to
undefined behaviour.
This patch fixes the issue by changing the wm8955 driver to use the
generic register cache in its private functions.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org (for 2.6.37 only)
sound/soc/codecs/wm8955.c