So I created a file /etc/asound.conf with the line:
defaults.pcm.card 3
I tend to shutdown the RPi after use and run into the problem that after restart the number of the USB port connected to my DAC changes.
I know that there is a way to modify the standard audio out by means of the PlexAmp remote control, but this option is not available on the iPad version of PlexAmp.
What am I doing wrong? Does anyone know of a better way to configure the audio interface that works after a shutdown as well?
i’ve had similar issue … as i understand it, linux audio/alsa doesn’t have a standard way of forcing persistent device order across the various card types (usb, on board, etc.)
you can disable hdmi audio on a Pi by finding/editing the line below in /boot/config.txt and rebooting …
Here’s what is working for me on my rpi4 with Raspberry Pi OS Lite (64-bit):
Allow USB audio device to be the default sound card by editing /lib/modprobe.d/aliases.conf and commenting out the line options snd-usb-audio index=-2
Don’t load the onboard sound device by creating the file /etc/modprobe.d/blacklist-snd_bcm2835.conf with the following content: blacklist snd_bcm2835
Don’t allow onboard hdmi to be a sound device by editing /boot/config.txt and changing the line dtoverlay=vc4-kms-v3d to instead read dtoverlay=vc4-kms-v3d,noaudio
Then reboot and if all goes well, your USB dac will be the default (and only) sound card available on your pi.