summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0148-ASoC-tlv312aic23-unbreak-resume.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0148-ASoC-tlv312aic23-unbreak-resume.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0148-ASoC-tlv312aic23-unbreak-resume.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0148-ASoC-tlv312aic23-unbreak-resume.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0148-ASoC-tlv312aic23-unbreak-resume.patch
new file mode 100644
index 00000000..9f93387b
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0148-ASoC-tlv312aic23-unbreak-resume.patch
@@ -0,0 +1,51 @@
1From b0209aed70b2cc2a544817e2b57d68d9dfcf4635 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com>
3Date: Sun, 29 Apr 2012 17:37:57 +0200
4Subject: [PATCH 148/165] ASoC: tlv312aic23: unbreak resume
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9commit e875c1e3e758447ba81ca450d89434b3b0496d37 upstream.
10
11* commit f9dfbf9 "ASoC: tlv320aic23: convert to soc-cache" leads to
12a bug preventing resumeof the codec as regmap expects a 9 bits data
13register but 0xFFFF is passed in tlv320aic23_set_bias_level and this
14values gets cached preventing any write to the TLV320AIC23_PWR
15register as the final value produced by regmap is (register << 9) | value
16
17* this patch solves the problem by only working on the 9 bits the
18register contains.
19
20Signed-off-by: Eric Bénard <eric@eukrea.com>
21Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
22Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
23---
24 sound/soc/codecs/tlv320aic23.c | 4 ++--
25 1 files changed, 2 insertions(+), 2 deletions(-)
26
27diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c
28index 336de8f..0e7e26e 100644
29--- a/sound/soc/codecs/tlv320aic23.c
30+++ b/sound/soc/codecs/tlv320aic23.c
31@@ -473,7 +473,7 @@ static int tlv320aic23_set_dai_sysclk(struct snd_soc_dai *codec_dai,
32 static int tlv320aic23_set_bias_level(struct snd_soc_codec *codec,
33 enum snd_soc_bias_level level)
34 {
35- u16 reg = snd_soc_read(codec, TLV320AIC23_PWR) & 0xff7f;
36+ u16 reg = snd_soc_read(codec, TLV320AIC23_PWR) & 0x17f;
37
38 switch (level) {
39 case SND_SOC_BIAS_ON:
40@@ -492,7 +492,7 @@ static int tlv320aic23_set_bias_level(struct snd_soc_codec *codec,
41 case SND_SOC_BIAS_OFF:
42 /* everything off, dac mute, inactive */
43 snd_soc_write(codec, TLV320AIC23_ACTIVE, 0x0);
44- snd_soc_write(codec, TLV320AIC23_PWR, 0xffff);
45+ snd_soc_write(codec, TLV320AIC23_PWR, 0x1ff);
46 break;
47 }
48 codec->dapm.bias_level = level;
49--
501.7.7.6
51