From e44aaa5e944e2a3e6fd330540672c0e076ee2bac Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 13 Dec 2025 17:54:47 -0500 Subject: [PATCH] rpi: enable headphones only for 'default' sound card Signed-off-by: Hugo Villeneuve --- raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- 2.20.1