]>
Commit | Line | Data |
---|---|---|
d86d85d9 GKH |
1 | From 08b1a38465cab8c2224a5202c7a3b5e5f5630894 Mon Sep 17 00:00:00 2001 |
2 | From: Axel Lin <axel.lin@gmail.com> | |
3 | Date: Wed, 24 Nov 2010 10:20:33 +0800 | |
4 | Subject: ASoC: wm8961 - clear WM8961_DACSLOPE bit for normal mode | |
5 | ||
6 | From: Axel Lin <axel.lin@gmail.com> | |
7 | ||
8 | commit 08b1a38465cab8c2224a5202c7a3b5e5f5630894 upstream. | |
9 | ||
10 | DACSLOPE bit of Register 06h ADC and DAC Control 2: | |
11 | 0: Normal mode | |
12 | 1: Sloping stop-band mode | |
13 | ||
14 | Thus in the case of normal mode, we should clear DACSLOPE bit. | |
15 | ||
16 | Signed-off-by: Axel Lin <axel.lin@gmail.com> | |
17 | Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> | |
18 | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> | |
19 | Signed-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; |