Commit b16db745 authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 2bc16ed8
...@@ -1918,7 +1918,8 @@ static int _wm8994_set_fll(struct snd_soc_codec *codec, int id, int src, ...@@ -1918,7 +1918,8 @@ static int _wm8994_set_fll(struct snd_soc_codec *codec, int id, int src,
WM8994_FLL1_OUTDIV_MASK | WM8994_FLL1_OUTDIV_MASK |
WM8994_FLL1_FRATIO_MASK, reg); 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, snd_soc_update_bits(codec, WM8994_FLL1_CONTROL_4 + reg_offset,
WM8994_FLL1_N_MASK, WM8994_FLL1_N_MASK,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment