[yocto] [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2

Andreas Müller schnitzeltony at googlemail.com
Sun Mar 22 13:21:07 PDT 2015


Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
---
 ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38 ++++++++++++++++++++++
 recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
 2 files changed, 43 insertions(+), 3 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch

diff --git a/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch b/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
new file mode 100644
index 0000000..cb06253
--- /dev/null
+++ b/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
@@ -0,0 +1,38 @@
+From dc6d02c68956a1833bd30159d4e411f1515db66e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony at googlemail.com>
+Date: Wed, 18 Mar 2015 23:51:37 +0100
+Subject: [PATCH] start sound during boot by compiling SND_BCM2835 into kernel
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
+---
+ arch/arm/configs/bcm2709_defconfig | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig
+index b5bf4cb..426f2ed 100644
+--- a/arch/arm/configs/bcm2709_defconfig
++++ b/arch/arm/configs/bcm2709_defconfig
+@@ -765,7 +765,7 @@ CONFIG_LOGO=y
+ # CONFIG_LOGO_LINUX_MONO is not set
+ # CONFIG_LOGO_LINUX_VGA16 is not set
+ CONFIG_SOUND=y
+-CONFIG_SND=m
++CONFIG_SND=y
+ CONFIG_SND_SEQUENCER=m
+ CONFIG_SND_SEQ_DUMMY=m
+ CONFIG_SND_MIXER_OSS=m
+@@ -778,7 +778,7 @@ CONFIG_SND_VIRMIDI=m
+ CONFIG_SND_MTPAV=m
+ CONFIG_SND_SERIAL_U16550=m
+ CONFIG_SND_MPU401=m
+-CONFIG_SND_BCM2835=m
++CONFIG_SND_BCM2835=y
+ CONFIG_SND_USB_AUDIO=m
+ CONFIG_SND_USB_UA101=m
+ CONFIG_SND_USB_CAIAQ=m
+-- 
+1.9.3
+
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.18.bb b/recipes-kernel/linux/linux-raspberrypi_3.18.bb
index 921e702..053e892 100644
--- a/recipes-kernel/linux/linux-raspberrypi_3.18.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_3.18.bb
@@ -1,8 +1,10 @@
 LINUX_VERSION ?= "3.18.5"
 
 SRCREV = "a6cf3c99bc89e2c010c2f78fbf9e3ed478ccfd46"
-SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \
-           file://sl030raspberrypii2ckernel.patch \
-          "
+SRC_URI = " \
+    git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \
+    file://sl030raspberrypii2ckernel.patch \
+    file://0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch \
+"
 
 require linux-raspberrypi.inc
-- 
1.9.3




More information about the yocto mailing list