]> git.baikalelectronics.ru Git - kernel.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)
commit4e3375c5cc60493f27d272b049dc0e7b44dbb313
treedde5efd0473b8ab72077ef3e86d10a9c0268f6b8
parentada0149ab7e6148d5d813b4576c4da2056f0b7ad
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