I am working with Volumio Version 2.586 and an external USB DAC.
After reboot and starting to play i.e. internet radio or tidal songs I am sometimes receive the following error message: Error failed to open “alsa”[alsa]; Failed to open ALSA device “hw:5,0”: snd_pcm_hw_params() failed:Input/output error
No sound on my DAC.
After 2-5 more reboots the systems suddenly is working again. This happens quite often and it looks that the system is not stable enough to use it as my primary device (I really would like to do so… but therefore it must play music after I switch it on…)
I recognized, that there are a lot of people in this forum and on the internet “complaining” about this effect. Is there no other way as to reboot again and again while hoping that the system will work?
I would like to ask if it would be possible to implement a “reset” script or command at the proper place in the volumio code so that the USB DAC will be placed in a defined status everytime the Raspberry is booting to make sure, that the system will recognize it at the time it has to.
Maybe this script will help:
“There is a way to force Linux’s USB stack to perform a port reset and re-enumerate a device. It can be done using usbfs; I have attached a C program to carry it out. Note however, that reset followed by re-enumeration is not the same thing as power-cycle followed by reconnect and re-enumeration”.
Maby this could be a good starting point to overcome the issue?
Many thanks for your support and I hope you will come up with a better solution than: Switch this on and off and save and reboot…