From: Hugo Villeneuve Date: Thu, 15 Feb 2024 16:14:57 +0000 (-0500) Subject: rpi: prevent HDMI connection sound output X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=5a77dfd8e3108778b93ef0e519fd775021b01ea9;p=yocto%2Fmeta-hvmpd.git rpi: prevent HDMI connection sound output --- 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 }