nicokaiser / rpi-audio-receiver

Raspberry Pi Audio Receiver with Bluetooth A2DP, AirPlay 2, and Spotify Connect
MIT License
1.37k stars 148 forks source link

Configure basic audio #80

Closed jens4Dev closed 2 years ago

jens4Dev commented 3 years ago

When you use this cool scripts — like me — with a simple USB-sounddevices, then no basic /etc/asound.conf is created. ALSA will then use the first onboard device. On a Pi 3 for me, it was HDMI. Thus, no sound comes at the end w/o further work. I extended enable-hifiberry.sh to be able to list the already known devices and accept a number alternatively to a HifiBerry-cardname. In this case it creates a simple two-line /etc/asound.conf setting the default device to that card number. Finally, enable-hifiberry.sh is renamed to its new purpose enable-sound.sh.