From 9e5b8cf7fdc640e823d960bb8a2f6dee9cf1ba5d Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Tue, 24 Nov 2020 18:19:49 +0100 Subject: Include sound driver for HDA on qemu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a backport of https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25443 from master and will allow CI on jellyfish to use sound on qemu platforms (emulated HDA card). Bug-AGL: SPEC-3612 Signed-off-by: Jan-Simon Möller Change-Id: I75daee8834fa9dc8223d84ba16d9d04620984350 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25637 ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Tested-by: Jenkins Job builder account --- meta-agl-bsp/recipes-kernel/linux/linux-agl.inc | 4 ++++ meta-agl-bsp/recipes-kernel/linux/linux/sound-hda.cfg | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 meta-agl-bsp/recipes-kernel/linux/linux/sound-hda.cfg diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc index c667b9c85..cd960ef6d 100644 --- a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc +++ b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc @@ -111,6 +111,10 @@ KERNEL_CONFIG_FRAGMENTS_append_with-lsm-smack = "\ SRC_URI_append = " file://sound.cfg" KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/sound.cfg" +# add hda audio for qemu +SRC_URI_append_qemuall = " file://sound-hda.cfg" +KERNEL_CONFIG_FRAGMENTS_append_qemuall = " ${WORKDIR}/sound-hda.cfg" + # iio-dummy-device support for test iiodevice SRC_URI_append = " file://iiodevice.cfg" KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/iiodevice.cfg" diff --git a/meta-agl-bsp/recipes-kernel/linux/linux/sound-hda.cfg b/meta-agl-bsp/recipes-kernel/linux/linux/sound-hda.cfg new file mode 100644 index 000000000..01e509090 --- /dev/null +++ b/meta-agl-bsp/recipes-kernel/linux/linux/sound-hda.cfg @@ -0,0 +1,17 @@ +# make sure HDA sound modules are on +# this is required for CI tests +CONFIG_SND_HDA_INTEL=m +CONFIG_SND_HDA_GENERIC=m +CONFIG_SND_HDA_CODEC_REALTEK=m +CONFIG_SND_HDA_CODEC_ANALOG=m +CONFIG_SND_HDA_CODEC_SIGMATEL=m +CONFIG_SND_HDA_CODEC_VIA=m +CONFIG_SND_HDA_CODEC_HDMI=m +CONFIG_SND_HDA_CODEC_CIRRUS=m +CONFIG_SND_HDA_CODEC_CONEXANT=m +CONFIG_SND_HDA_CODEC_CA0110=m +CONFIG_SND_HDA_CODEC_CA0132=m +CONFIG_SND_HDA_CODEC_CMEDIA=m +CONFIG_SND_HDA_CODEC_SI3054=m +CONFIG_SND_HDA_RECONFIG=y +CONFIG_SND_HDA_PATCH_LOADER=y -- cgit 1.2.3-korg