Skip to contentSkip to conversation

linux-igep2: Fix audio capture, the capture result is always silence

PATCH New Enric Balletbo i Serra 1 participant 2 messages Oct 27, 2009

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 linux-igep2: Fix audio capture, the capture result is always silence

From: Enric Balletbo i Serra <[email protected]>

---
 conf/machine/include/omap3.inc                     |    2 +-
 .../twl-asoc-fix-record.diff                       |   34 ++++++++++++++++++++
 recipes/linux/linux-igep2_2.6.28.10-0.bb           |    4 ++
 3 files changed, 39 insertions(+), 1 deletions(-)
 create mode 100644 recipes/linux/linux-igep2-2.6.28.10-0/twl-asoc-fix-record.diff
conf/machine/include/omap3.inc +1 -1
index 675249a..bb750aa 100644
@@ -1,7 +1,7 @@
 require conf/machine/include/tune-cortexa8.inc
 PREFERRED_PROVIDER_virtual/kernel = "linux-omap"
 # Increase this everytime you change something in the kernel
-MACHINE_KERNEL_PR = "r47" 
+MACHINE_KERNEL_PR = "r48"
 
 KERNEL_IMAGETYPE = "uImage"
 
recipes/linux/linux-igep2-2.6.28.10-0/twl-asoc-fix-record.diff new file +34 -0
new file mode 100644
index 0000000..9c0ceaa
@@ -0,0 +1,34 @@
+From [email protected] Sat Dec 06 02:14:21 2008
+Date: 	Fri, 5 Dec 2008 16:46:34 -0800
+From: "Steve Sakoman" <[email protected]>
+To: "[email protected]" <[email protected]>
+Subject: [FYI PATCH] ASOC:TWL4030 Audio capture fix
+
+A couple of folks have noticed an issue with audio capture -- the
+capture result is always silence.
+
+The patch below is a quick fix for those with this issue.  There are
+substantial changes to the codec driver that will be trickling down
+from ASoC, and they deal with this issue differently.
+
+So consider this as a bandaid for those who don't want to wait for the
+trickle down :-)
+
+Steve
+
+
+diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
+index ee2f0d3..8b4aafb 100644
+--- a/sound/soc/codecs/twl4030.c
++++ b/sound/soc/codecs/twl4030.c
+@@ -45,8 +45,8 @@ static const u8 twl4030_reg[TWL4030_CACHEREGNUM] = {
+ 	0xc3, /* REG_OPTION		(0x2)	*/
+ 	0x00, /* REG_UNKNOWN		(0x3)	*/
+ 	0x00, /* REG_MICBIAS_CTL	(0x4)	*/
+-	0x24, /* REG_ANAMICL		(0x5)	*/
+-	0x04, /* REG_ANAMICR		(0x6)	*/
++	0x34, /* REG_ANAMICL		(0x5)	*/
++	0x14, /* REG_ANAMICR		(0x6)	*/
+ 	0x0a, /* REG_AVADC_CTL		(0x7)	*/
+ 	0x00, /* REG_ADCMICSEL		(0x8)	*/
+ 	0x00, /* REG_DIGMIXING		(0x9)	*/
recipes/linux/linux-igep2_2.6.28.10-0.bb +4 -0
index ebe2918..c346da7 100644
@@ -10,4 +10,8 @@ DEFAULT_PREFERENCE_igep0020 = "1"
 SRC_URI = "http://downloads.myigep.com/sources/kernel/linux-omap-2.6.28.10-igep0020b-0.tar.gz \
 	   file://defconfig"
 
+SRC_URI_append = " \
+	file://twl-asoc-fix-record.diff;patch=1 \
+"
+
 S = "${WORKDIR}/linux-omap-2.6.28.10-igep0020b-0"
Signature · 1 line
1.5.4.3
#1 lore raw

PATCH v2 2/2 u-boot: add IGEP v2 support to 2009.08 release

From: Enric Balletbo i Serra <[email protected]>

---
 conf/machine/igep0020.conf                         |    2 +
 ...dd-board-support-for-IGEP-v2-series-rev-B.patch | 1098 ++++++++++++++++++
 .../igep0020/update-mach-types.patch               | 1206 ++++++++++++++++++++
 recipes/u-boot/u-boot_2009.08.bb                   |    8 +-
 4 files changed, 2313 insertions(+), 1 deletions(-)
 create mode 100644 recipes/u-boot/u-boot-2009.08/igep0020/add-board-support-for-IGEP-v2-series-rev-B.patch
 create mode 100644 recipes/u-boot/u-boot-2009.08/igep0020/update-mach-types.patch
conf/machine/igep0020.conf +2 -0
index 512a977..deb1723 100644
@@ -19,6 +19,8 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-igep2"
 
 KERNEL_IMAGETYPE = "uImage"
 
+UBOOT_MACHINE = "omap3_igep0020b_config"
+
 IMAGE_FSTYPES += "tar.bz2 ubi"
 
 # Guesswork
recipes/u-boot/u-boot-2009.08/igep0020/add-board-support-for-IGEP-v2-series-rev-B.patch new file +1098 -0

1,098 lines not on this page · raw message

recipes/u-boot/u-boot-2009.08/igep0020/update-mach-types.patch new file +1206 -0

1,206 lines not on this page · raw message

recipes/u-boot/u-boot_2009.08.bb +7 -1
index d0e387c..b7f7851 100644
@@ -1,11 +1,17 @@
-PR = "r0"
+PR = "r1"
 require u-boot.inc
 
 DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_at91sam9g20ek = "1"
+DEFAULT_PREFERENCE_igep0020 = "1"
 
 SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "
 
+SRC_URI_append_igep0020 = " \
+	file://update-mach-types.patch;patch=1 \
+	file://add-board-support-for-IGEP-v2-series-rev-B.patch;patch=1 \
+"
+
 TARGET_LDFLAGS = ""
 
 inherit base
Signature · 1 line
1.5.4.3