rpi: add custom asound.conf
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 19 Jan 2023 23:51:30 +0000 (18:51 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 1 Mar 2023 17:10:15 +0000 (12:10 -0500)
raspberrypi/recipes-bsp/alsa-state/alsa-state.bbappend [new file with mode: 0644]

diff --git a/raspberrypi/recipes-bsp/alsa-state/alsa-state.bbappend b/raspberrypi/recipes-bsp/alsa-state/alsa-state.bbappend
new file mode 100644 (file)
index 0000000..50dd875
--- /dev/null
@@ -0,0 +1,4 @@
+do_install:append:raspberrypi() {
+    echo "defaults.pcm.card 1" >> ${D}${sysconfdir}/asound.conf
+    echo "defaults.ctl.card 1" >> ${D}${sysconfdir}/asound.conf
+}