]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: wm5110: Fix PGA clear when disabling DRE
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 6 Jan 2016 15:15:37 +0000 (15:15 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 Jan 2016 17:39:31 +0000 (17:39 +0000)
commit24338722cfa23fdf4e08c6189a11f7e3a902d86a
treedde5efd0473b8ab72077ef3e86d10a9c0268f6b8
parente73694d871867cae8471d2350ce89acb38bc2b63
ASoC: wm5110: Fix PGA clear when disabling DRE

We don't want to use a bypassed write in wm5110_clear_pga_volume,
we might disable the DRE whilst the CODEC is powered down. A
normal regmap_write will always go to the hardware (when not on
cache_only) even if the written value matches the cache. As using
a normal write will still achieve the desired behaviour of bring
the cache and hardware in sync, this patch updates the function
to use a normal write, which avoids issues when the CODEC is
powered down.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm5110.c