Skip to contentSkip to conversation

ASoC: wm8996: Fix wrong mask for setting WM8996_AIF_CLOCKING_2

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

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: wm8996: Fix wrong mask for setting WM8996_AIF_CLOCKING_2

---
 sound/soc/codecs/wm8996.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8996.c +1 -1
index 1d7b174..645c980 100644
@@ -1920,7 +1920,7 @@ static int wm8996_hw_params(struct snd_pcm_substream *substream,
 	snd_soc_update_bits(codec, lrclk_reg, WM8996_AIF1RX_RATE_MASK,
 			    lrclk);
 	snd_soc_update_bits(codec, WM8996_AIF_CLOCKING_2,
-			    WM8996_DSP1_DIV_SHIFT << dsp_shift, dsp);
+			    WM8996_DSP1_DIV_MASK << dsp_shift, dsp);
 
 	return 0;
 }
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Axel Lin

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

 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8996.c +1 -2
index 1d7b174..645c980 100644
@@ -1920,7 +1920,7 @@ static int wm8996_hw_params(struct snd_pcm_substream *substream,
        snd_soc_update_bits(codec, lrclk_reg, WM8996_AIF1RX_RATE_MASK,
                            lrclk);
        snd_soc_update_bits(codec, WM8996_AIF_CLOCKING_2,
-                           WM8996_DSP1_DIV_SHIFT << dsp_shift, dsp);
+                           WM8996_DSP1_DIV_MASK << dsp_shift, dsp);
 
        return 0;
  }
--
Quoted 2 lines

1.7.5.4

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