aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-03 10:33:23 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-03 20:56:18 -0500
commitb16db745b51a1ecd3fd526a2ff35d61f2962bd7f (patch)
tree6d6d537e7f4430c523cc44ec882b669036908897 /sound
parent2bc16ed8e02ba39dc5010b4a2b2a606e4b87abbd (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
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,
1918 WM8994_FLL1_OUTDIV_MASK | 1918 WM8994_FLL1_OUTDIV_MASK |
1919 WM8994_FLL1_FRATIO_MASK, reg); 1919 WM8994_FLL1_FRATIO_MASK, reg);
1920 1920
1921 snd_soc_write(codec, WM8994_FLL1_CONTROL_3 + reg_offset, fll.k); 1921 snd_soc_update_bits(codec, WM8994_FLL1_CONTROL_3 + reg_offset,
1922 WM8994_FLL1_K_MASK, fll.k);
1922 1923
1923 snd_soc_update_bits(codec, WM8994_FLL1_CONTROL_4 + reg_offset, 1924 snd_soc_update_bits(codec, WM8994_FLL1_CONTROL_4 + reg_offset,
1924 WM8994_FLL1_N_MASK, 1925 WM8994_FLL1_N_MASK,