From: Mark Brown Date: Sat, 3 Mar 2012 15:33:23 +0000 (+0000) Subject: ASoC: wm8994: Suppress noop updates of FLL K X-Git-Tag: MMI-PSA29.97-13-9~16612^2~52^2~25^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b16db745b51a1ecd3fd526a2ff35d61f2962bd7f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 73cd8b922d12..a567a4d9b5dc 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -1918,7 +1918,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,