From: Hugo Villeneuve Date: Sat, 13 Dec 2025 22:54:47 +0000 (-0500) Subject: rpi: enable headphones only for 'default' sound card X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=e44aaa5e944e2a3e6fd330540672c0e076ee2bac;p=yocto%2Fmeta-hvmpd.git rpi: enable headphones only for 'default' sound card Signed-off-by: Hugo Villeneuve --- diff --git a/raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend b/raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend index e3f29a9..b4ff474 100644 --- a/raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend +++ b/raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend @@ -1,4 +1,6 @@ -CMDLINE_HEADPHONES ?= "snd_bcm2835.enable_headphones=1" +ENABLE_HEADPHONES := "${@bb.utils.contains('SOUND_CARD', 'default', '1', '0', d)}" + +CMDLINE_HEADPHONES ?= "snd_bcm2835.enable_headphones=${ENABLE_HEADPHONES}" # Remove root=..., which will be set with our custom boot.scr script: CMDLINE_ROOTFS = "${CMDLINE_ROOT_FSTYPE} rootwait"