Skip to contentSkip to conversation

ASoC: wm8994: Suppres noop updates of FLL K

PATCH New Mark Brown 1 participant 1 message Mar 3, 2012

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: wm8994: Suppres 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.

---
 sound/soc/codecs/wm8994.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8994.c +2 -1
index 3009541..6d351b9 100644
@@ -1920,7 +1920,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,
Signature · 1 line
1.7.9.1