From f35bcc5ed220e748241c1e06bcd1ab6a7c99e10d Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 24 Oct 2013 11:16:57 +0300 Subject: Fix sound for emulator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build driver for AC97 and load it at boot time. Change-Id: Ia30487a7f3bb315f83bcba48f6ea6c4b0f3f54fa Reviewed-by: Pasi Petäjäjärvi --- conf/distro/include/emulator.conf | 6 ++++++ recipes/linux/linux-yocto/snd_intel8x0.cfg | 1 + recipes/linux/linux-yocto_3.8.bbappend | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 recipes/linux/linux-yocto/snd_intel8x0.cfg diff --git a/conf/distro/include/emulator.conf b/conf/distro/include/emulator.conf index dfbda91..ab5fb76 100644 --- a/conf/distro/include/emulator.conf +++ b/conf/distro/include/emulator.conf @@ -3,6 +3,12 @@ IMAGE_ROOTFS_ALIGNMENT = "1048576" ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" IMAGE_FSTYPES = "ext3" +MACHINE_EXTRA_RRECOMMENDS += "\ + kernel-module-snd-intel8x0 \ + " + +kernel_autoload_snd-intel8x0 = "snd-intel8x0" + MACHINE_EXTRA_INSTALL = "\ llvm3.2 \ libegl-mesa \ diff --git a/recipes/linux/linux-yocto/snd_intel8x0.cfg b/recipes/linux/linux-yocto/snd_intel8x0.cfg new file mode 100644 index 0000000..6d78f08 --- /dev/null +++ b/recipes/linux/linux-yocto/snd_intel8x0.cfg @@ -0,0 +1 @@ +CONFIG_SND_INTEL8X0=m diff --git a/recipes/linux/linux-yocto_3.8.bbappend b/recipes/linux/linux-yocto_3.8.bbappend index def23ea..51c54e4 100644 --- a/recipes/linux/linux-yocto_3.8.bbappend +++ b/recipes/linux/linux-yocto_3.8.bbappend @@ -1 +1,6 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI += "\ + file://snd_intel8x0.cfg \ + " + COMPATIBLE_MACHINE += "|emulator" -- cgit v1.2.3-54-g00ecf