From: Axel Lin Date: Wed, 24 Nov 2010 02:20:33 +0000 (+0800) Subject: ASoC: wm8961 - clear WM8961_DACSLOPE bit for normal mode X-Git-Tag: v2.6.37-rc5~11^2~2^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08b1a38465cab8c2224a5202c7a3b5e5f5630894;p=profile%2Fcommon%2Fkernel-common.git 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. Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown Cc: stable@kernel.org --- diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c index 4f326f6..93fecf5 100644 --- a/sound/soc/codecs/wm8961.c +++ b/sound/soc/codecs/wm8961.c @@ -711,7 +711,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;