summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <eballetbo@iseebcn.com>2009-10-27 13:18:59 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-12 16:51:41 +0000
commit073faab2b19e7e81d6dda255528171c624c44db2 (patch)
treebb79638263a3039c6881b8dc0095f2af49929c0a
parent7a8660600ecf485122ffaf15e226eedec757d1d9 (diff)
downloadpoky-073faab2b19e7e81d6dda255528171c624c44db2.tar.gz
linux-igep2: Fix audio capture, the capture result is always silence
Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/packages/linux/linux-igep2-2.6.28.10-0/twl-asoc-fix-record.diff34
-rw-r--r--meta/packages/linux/linux-igep2_2.6.28.10-0.bb6
2 files changed, 39 insertions, 1 deletions
diff --git a/meta/packages/linux/linux-igep2-2.6.28.10-0/twl-asoc-fix-record.diff b/meta/packages/linux/linux-igep2-2.6.28.10-0/twl-asoc-fix-record.diff
new file mode 100644
index 0000000000..9c0ceaa2e0
--- /dev/null
+++ b/meta/packages/linux/linux-igep2-2.6.28.10-0/twl-asoc-fix-record.diff
@@ -0,0 +1,34 @@
1From linux-omap-owner@vger.kernel.org Sat Dec 06 02:14:21 2008
2Date: Fri, 5 Dec 2008 16:46:34 -0800
3From: "Steve Sakoman" <sakoman@gmail.com>
4To: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
5Subject: [FYI PATCH] ASOC:TWL4030 Audio capture fix
6
7A couple of folks have noticed an issue with audio capture -- the
8capture result is always silence.
9
10The patch below is a quick fix for those with this issue. There are
11substantial changes to the codec driver that will be trickling down
12from ASoC, and they deal with this issue differently.
13
14So consider this as a bandaid for those who don't want to wait for the
15trickle down :-)
16
17Steve
18
19
20diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
21index ee2f0d3..8b4aafb 100644
22--- a/sound/soc/codecs/twl4030.c
23+++ b/sound/soc/codecs/twl4030.c
24@@ -45,8 +45,8 @@ static const u8 twl4030_reg[TWL4030_CACHEREGNUM] = {
25 0xc3, /* REG_OPTION (0x2) */
26 0x00, /* REG_UNKNOWN (0x3) */
27 0x00, /* REG_MICBIAS_CTL (0x4) */
28- 0x24, /* REG_ANAMICL (0x5) */
29- 0x04, /* REG_ANAMICR (0x6) */
30+ 0x34, /* REG_ANAMICL (0x5) */
31+ 0x14, /* REG_ANAMICR (0x6) */
32 0x0a, /* REG_AVADC_CTL (0x7) */
33 0x00, /* REG_ADCMICSEL (0x8) */
34 0x00, /* REG_DIGMIXING (0x9) */
diff --git a/meta/packages/linux/linux-igep2_2.6.28.10-0.bb b/meta/packages/linux/linux-igep2_2.6.28.10-0.bb
index 9eec02878c..e7e7ccf3fa 100644
--- a/meta/packages/linux/linux-igep2_2.6.28.10-0.bb
+++ b/meta/packages/linux/linux-igep2_2.6.28.10-0.bb
@@ -7,9 +7,13 @@ COMPATIBLE_MACHINE = "igep0020b"
7 7
8DEFAULT_PREFERENCE_igep0020b = "1" 8DEFAULT_PREFERENCE_igep0020b = "1"
9 9
10PR = "r0" 10PR = "r1"
11 11
12SRC_URI = "http://downloads.myigep.com/sources/kernel/linux-omap-2.6.28.10-igep0020b-0.tar.gz \ 12SRC_URI = "http://downloads.myigep.com/sources/kernel/linux-omap-2.6.28.10-igep0020b-0.tar.gz \
13 file://defconfig" 13 file://defconfig"
14 14
15SRC_URI_append = " \
16 file://twl-asoc-fix-record.diff;patch=1 \
17 "
18
15S = "${WORKDIR}/linux-omap-2.6.28.10-igep0020b-0" 19S = "${WORKDIR}/linux-omap-2.6.28.10-igep0020b-0"