I use a PS4 controller connected via USB on my PC to play games.
I configured the HDMI 0 audio output and I recently noticed that from time to time when I reboot batocera sound is not working at all. I have to restart again to make the sound work again. Also the configuration of batocera.conf was changing automatically without me asking for anything.
After many investigation I found out that the issue is that the “0” device in alsa changes at startup when PS4 controller is connected.
Sometimes the USB PS4 controller audio output comes first in ALSA and sometime it is HDMI output depending on boot.
Hence, when, at startup, the HDMI output comes first the sound works, when it is the PS4 controller it simply doesn’t output through hdmi as device 0 is PS4 controller instead of HDMI.
Obviously if I don’t connect the PS4 controller at startup and connect it later it works all the time as PS4 controller is never considered as device 0 in alsamixer in that case…but this is not very convenient…
Do you guys know any solution to that issue?