From 5a77dfd8e3108778b93ef0e519fd775021b01ea9 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 15 Feb 2024 11:14:57 -0500 Subject: [PATCH] rpi: prevent HDMI connection sound output --- raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend b/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend index b9f3a50..ea3c6d4 100644 --- a/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend +++ b/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend @@ -1,7 +1,11 @@ do_deploy:append() { - # Enable alsa audio support + # Enable Pi’s on-board sound card (load snd_bcm2835): sed -i 's/^#\(dtparam=audio=\).*/\1on/' $CONFIG - # Force ALSA to use analogue output: + # Pretends all audio formats are unsupported by display. This + # forces ALSA to use analogue output: sed -i 's/^#\(hdmi_ignore_edid_audio=\).*/\11/' $CONFIG + + # Prevent any HDMI connection from transmitting sound output: + sed -i 's/^\(.*dtoverlay=vc4-kms-v3d\).*/\1,noaudio/' $CONFIG } -- 2.20.1