Skip to contentSkip to conversation

ASoC: wm8400: Fix setting Fout clock divider for FLL Control 4

PATCH Applied Axel Lin 3 participants 3 messages Oct 22, 2011 – Oct 24, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: wm8400: Fix setting Fout clock divider for FLL Control 4

What we want here is to clear the WM8400_FLL_OUTDIV_MASK bits then OR with factors.outdiv.

---
 sound/soc/codecs/wm8400.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8400.c +1 -1
index dc13be2..f29bc26 100644
@@ -1059,7 +1059,7 @@ static int wm8400_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id,
 	wm8400_write(codec, WM8400_FLL_CONTROL_3, factors.n);
 
 	reg = wm8400_read(codec, WM8400_FLL_CONTROL_4);
-	reg &= WM8400_FLL_OUTDIV_MASK;
+	reg &= ~WM8400_FLL_OUTDIV_MASK;
 	reg |= factors.outdiv;
 	wm8400_write(codec, WM8400_FLL_CONTROL_4, reg);
 
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 22 lines · Axel Lin

What we want here is to clear the WM8400_FLL_OUTDIV_MASK bits then OR with factors.outdiv.

---
 sound/soc/codecs/wm8400.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8400.c +1 -2
index dc13be2..f29bc26 100644
@@ -1059,7 +1059,7 @@ static int wm8400_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id,
        wm8400_write(codec, WM8400_FLL_CONTROL_3, factors.n);
 
        reg = wm8400_read(codec, WM8400_FLL_CONTROL_4);
-       reg &= WM8400_FLL_OUTDIV_MASK;
+       reg &= ~WM8400_FLL_OUTDIV_MASK;
        reg |= factors.outdiv;
        wm8400_write(codec, WM8400_FLL_CONTROL_4, reg);
 
--
Quoted 5 lines

1.7.5.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Applied
#2 lore raw
In reply to Axel Lin
Quoted 2 lines · Axel Lin

What we want here is to clear the WM8400_FLL_OUTDIV_MASK bits then OR with factors.outdiv.

Applied, thanks.