From d0541673aee959a085a27ed24d03dff42904148a Mon Sep 17 00:00:00 2001 From: MichaIng Date: Thu, 17 Dec 2020 20:01:21 +0100 Subject: [PATCH] Do not force sound card but fall back to ALSA config Since a recent Raspberry Pi kernel upgrade, ALSA sound card 0 device 0 is pointing to HDMI sound, if a monitor is attached, while 3.5mm jack then is card 1 device 0. Previously both were at card 0 device 0, switchable via amixer control. Forcing now card 0 device 0 hence forces HDMI audio (even if the monitor does not really support it) and hence breaks 3.5mm jack sound. To allow switching the sound device with usual methods (ALSA configuration or raspi-config on RPi), Mycroft must not force the exact sound device. If no custom ALSA configuration exists, card 0 device 0 is the default anyway. Related issues: https://community.mycroft.ai/t/picroft-no-sound-with-3-5mm-jack-output/9726 https://community.mycroft.ai/t/sound-always-go-through-hdmi/9929 Signed-off-by: MichaIng --- etc/mycroft/mycroft.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/mycroft/mycroft.conf b/etc/mycroft/mycroft.conf index bf91ba6..63245be 100644 --- a/etc/mycroft/mycroft.conf +++ b/etc/mycroft/mycroft.conf @@ -1,6 +1,6 @@ { - "play_wav_cmdline": "aplay -Dhw:0,0 %1", - "play_mp3_cmdline": "mpg123 -a hw:0,0 %1", + "play_wav_cmdline": "aplay %1", + "play_mp3_cmdline": "mpg123 %1", "enclosure": { "platform": "picroft" },