ASoC: wm8961 - clear WM8961_DACSLOPE bit for normal mode
Subsystems (3)
PATCH 1/2 ASoC: wm8961 - clear WM8961_DACSLOPE bit for normal mode
DACSLOPE bit of Register 06h ADC and DAC Control 2:
0: Normal mode
1: Sloping stop-band mode
Thus in the case of normal mode, we should clear DACSLOPE bit.
--- sound/soc/codecs/wm8961.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8961.c +1 -1
@@ -710,7 +710,7 @@ static int wm8961_hw_params(struct snd_pcm_substream *substream,if (fs <=24000 ) reg |=WM8961_DACSLOPE ;else - reg &=WM8961_DACSLOPE ; + reg &= ~WM8961_DACSLOPE ;snd_soc_write (codec,WM8961_ADC_DAC_CONTROL_2 , reg);return 0 ;
Signature · 1 line
1.7.2
PATCH 2/2 ASoC: wm8961 - clear WM8961_MCLKDIV bit for freq <= 16500000
MCLKDIV bit of Register 04h Clocking1:
0 : Divide by 1
1 : Divide by 2
Thus in the case of freq <= 16500000, we should clear MCLKDIV bit.
--- sound/soc/codecs/wm8961.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8961.c +1 -1
@@ -735,7 +735,7 @@ static int wm8961_set_sysclk(struct snd_soc_dai *dai, int clk_id, freq /=2 ; }else {dev_dbg (codec->dev,"Using MCLK/1 for %dHz MCLK\n" , freq); - reg &=WM8961_MCLKDIV ; + reg &= ~WM8961_MCLKDIV ; }snd_soc_write (codec,WM8961_CLOCKING1 , reg);
Signature · 1 line
1.7.2
Quoted 7 lines · Axel Lin
DACSLOPE bit of Register 06h ADC and DAC Control 2:
0: Normal mode
1: Sloping stop-band modeThus in the case of normal mode, we should clear DACSLOPE bit.
Signed-off-by Axel Lin <[email protected]>
Both
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Quoted 5 lines · Liam Girdwood
Quoted 4 lines · Axel Lin
DACSLOPE bit of Register 06h ADC and DAC Control 2:
0: Normal mode
1: Sloping stop-band mode
Quoted 7 lines
Quoted 3 lines
Thus in the case of normal mode, we should clear DACSLOPE bit.
Signed-off-by Axel Lin <[email protected]>Both
Acked-by Liam Girdwood <[email protected]>
And applied. Axel, the list for ALSA patches is [email protected]