kernel: enable 4A-specific config option snd-aloop 39/14939/1
authorStephane Desneux <stephane.desneux@iot.bzh>
Wed, 20 Jun 2018 20:43:07 +0000 (22:43 +0200)
committerStephane Desneux <stephane.desneux@iot.bzh>
Mon, 2 Jul 2018 14:21:13 +0000 (16:21 +0200)
4A requires some specific options in the linux kernel, like
CONFIG_SND_ALOOP for softmixer. This patch adds a config fragment
to the default linux kernel recipe.

This is a copy of what has been done on EE:
* https://gerrit.automotivelinux.org/gerrit/#/c/14303/
* https://gerrit.automotivelinux.org/gerrit/#/c/14561/

Change-Id: I5f8879f4ac1b3685f6d801b385d9b0ce9f17f9c7
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-agl-bsp/recipes-kernel/linux/linux-agl.inc
meta-agl-bsp/recipes-kernel/linux/linux/4a-sound.cfg [new file with mode: 0644]

index 8ccdd53..0a2b19c 100644 (file)
@@ -75,3 +75,7 @@ KERNEL_CONFIG_FRAGMENTS_append_with-lsm-smack = "\
        ${WORKDIR}/smack.cfg \
        ${WORKDIR}/smack-default-lsm.cfg \
 "
+
+# snd-aloop support for 4a
+SRC_URI_append = " file://4a-sound.cfg"
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/4a-sound.cfg"
diff --git a/meta-agl-bsp/recipes-kernel/linux/linux/4a-sound.cfg b/meta-agl-bsp/recipes-kernel/linux/linux/4a-sound.cfg
new file mode 100644 (file)
index 0000000..780e1ad
--- /dev/null
@@ -0,0 +1 @@
+CONFIG_SND_ALOOP=y