diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-03 15:33:23 +0000 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-04-30 11:03:53 +0200 |
commit | 16add0322b634302b09f1f5fddbb0875b5b5daf0 (patch) | |
tree | 83026435054d452bb5b8cd6d37273ddbec56a764 /sound | |
parent | b7565e974f268f3f4a7d9db424291cdfde948979 (diff) | |
download | kernel_samsung_espresso10-16add0322b634302b09f1f5fddbb0875b5b5daf0.zip kernel_samsung_espresso10-16add0322b634302b09f1f5fddbb0875b5b5daf0.tar.gz kernel_samsung_espresso10-16add0322b634302b09f1f5fddbb0875b5b5daf0.tar.bz2 |
ASoC: wm8994: Suppress noop updates of FLL K
Using snd_soc_write() means we always write to the register even if it
already contains the newly calculated value.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 4aeb135..ef76a08 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -2009,7 +2009,8 @@ static int _wm8994_set_fll(struct snd_soc_codec *codec, int id, int src, WM8994_FLL1_OUTDIV_MASK | WM8994_FLL1_FRATIO_MASK, reg); - snd_soc_write(codec, WM8994_FLL1_CONTROL_3 + reg_offset, fll.k); + snd_soc_update_bits(codec, WM8994_FLL1_CONTROL_3 + reg_offset, + WM8994_FLL1_K_MASK, fll.k); snd_soc_update_bits(codec, WM8994_FLL1_CONTROL_4 + reg_offset, WM8994_FLL1_N_MASK, |