]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.36.2/asoc-wm8961-clear-wm8961_dacslope-bit-for-normal-mode.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 2.6.36.2 / asoc-wm8961-clear-wm8961_dacslope-bit-for-normal-mode.patch
CommitLineData
d86d85d9
GKH
1From 08b1a38465cab8c2224a5202c7a3b5e5f5630894 Mon Sep 17 00:00:00 2001
2From: Axel Lin <axel.lin@gmail.com>
3Date: Wed, 24 Nov 2010 10:20:33 +0800
4Subject: ASoC: wm8961 - clear WM8961_DACSLOPE bit for normal mode
5
6From: Axel Lin <axel.lin@gmail.com>
7
8commit 08b1a38465cab8c2224a5202c7a3b5e5f5630894 upstream.
9
10DACSLOPE bit of Register 06h ADC and DAC Control 2:
11 0: Normal mode
12 1: Sloping stop-band mode
13
14Thus in the case of normal mode, we should clear DACSLOPE bit.
15
16Signed-off-by: Axel Lin <axel.lin@gmail.com>
17Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
18Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
19Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
20
21---
22 sound/soc/codecs/wm8961.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25--- a/sound/soc/codecs/wm8961.c
26+++ b/sound/soc/codecs/wm8961.c
27@@ -711,7 +711,7 @@ static int wm8961_hw_params(struct snd_p
28 if (fs <= 24000)
29 reg |= WM8961_DACSLOPE;
30 else
31- reg &= WM8961_DACSLOPE;
32+ reg &= ~WM8961_DACSLOPE;
33 snd_soc_write(codec, WM8961_ADC_DAC_CONTROL_2, reg);
34
35 return 0;