sg3-utils: add newer buildable version
[openembedded.git] / recipes / linux / linux-igep2-2.6.28.10-0 / twl-asoc-fix-record.diff
1 From linux-omap-owner@vger.kernel.org Sat Dec 06 02:14:21 2008
2 Date:   Fri, 5 Dec 2008 16:46:34 -0800
3 From: "Steve Sakoman" <sakoman@gmail.com>
4 To: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
5 Subject: [FYI PATCH] ASOC:TWL4030 Audio capture fix
6
7 A couple of folks have noticed an issue with audio capture -- the
8 capture result is always silence.
9
10 The patch below is a quick fix for those with this issue.  There are
11 substantial changes to the codec driver that will be trickling down
12 from ASoC, and they deal with this issue differently.
13
14 So consider this as a bandaid for those who don't want to wait for the
15 trickle down :-)
16
17 Steve
18
19
20 diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
21 index 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)   */