All of lore.kernel.org
 help / color / mirror / Atom feed
From: toertel@gmail.com
To: openembedded-core@lists.openembedded.org,
	michael.opdenacker@bootlin.com,
	richard.purdie@linuxfoundation.org
Cc: Mark Jonas <toertel@gmail.com>
Subject: [PATCH 2/2] linux-yocto: Autoload sound driver on QEMU x86
Date: Wed,  4 Jan 2023 13:18:08 +0100	[thread overview]
Message-ID: <20230104121808.1065203-3-toertel@gmail.com> (raw)
In-Reply-To: <20230104121808.1065203-1-toertel@gmail.com>

From: Mark Jonas <toertel@gmail.com>

If DISTRO_FEATURES includes ALSA then automatically load the
snd-intel8x0 kernel module on qemux86 and qemux86-64. This matches the
machine configurations conf/machine/qemux86.conf and qemux86-64.conf.

Signed-off-by: Mark Jonas <toertel@gmail.com>
---
 meta/recipes-kernel/linux/linux-yocto.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index 091003ed82..c8a9b0a1e3 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -37,6 +37,11 @@ KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'efi', 'cfg/
 KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'numa', 'features/numa/numa.scc', '', d)}"
 KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'vfat', 'cfg/fs/vfat.scc', '', d)}"
 
+# sound driver recommended by conf/machine/qemux86*.conf
+ALSA_MODULES = "${@bb.utils.contains("DISTRO_FEATURES", "alsa", "snd-intel8x0", "", d)}"
+KERNEL_MODULE_AUTOLOAD:qemux86 += "${ALSA_MODULES}"
+KERNEL_MODULE_AUTOLOAD:qemux86-64 += "${ALSA_MODULES}"
+
 # A KMACHINE is the mapping of a yocto $MACHINE to what is built
 # by the kernel. This is typically the branch that should be built,
 # and it can be specific to the machine or shared
-- 
2.34.1



  parent reply	other threads:[~2023-01-04 12:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-04 12:18 [PATCH 0/2] Load proper sound drivers for QEMU x86 toertel
2023-01-04 12:18 ` [PATCH 1/2] conf/machine: Match QEMU x86 sound kernel module toertel
2023-01-04 12:18 ` toertel [this message]
2023-01-04 16:07   ` [OE-core] [PATCH 2/2] linux-yocto: Autoload sound driver on QEMU x86 Bruce Ashfield
2023-01-05 13:42     ` Mark Jonas
2023-01-05 14:57       ` Bruce Ashfield
2023-01-06 10:13         ` Mark Jonas
2023-01-06 11:27           ` Richard Purdie
2023-01-06 15:05             ` Mark Jonas
2023-01-06 16:33               ` Bruce Ashfield
2023-01-06 16:15             ` Bruce Ashfield
2023-01-06 16:00           ` Bruce Ashfield
2023-01-04 17:42 ` [PATCH 0/2] Load proper sound drivers for " Richard Purdie
2023-01-05 17:26   ` Mark Jonas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230104121808.1065203-3-toertel@gmail.com \
    --to=toertel@gmail.com \
    --cc=michael.opdenacker@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.