I’m using a Raspberry Pi 3 with two USB DAC/amps from Aune, the T1 and the X1 Pro. Both units power down their DAC when switched off, causing a USB disconnect from the Raspberry Pi. (By contrast, a unit like the O2+ODAC keeps the DAC powered via USB).
These are the messages I get in the audio service when the device is disconnected:
audio E: [alsa-sink-USB Audio] alsa-sink.c: snd_pcm_avail: No such device, trying to restart PCM
audio E: [alsa-sink-USB Audio] alsa-sink.c: Error opening PCM device front:0: No such file or directory
This is what is detected on startup of the audio service:
audio - pulseaudio 13.0
audio - Pulse log level: NOTICE
audio - Default output: AUTO
audio
audio Detected audio cards:
audio 0 usb-soundcard-0 USB-Audio-DigiHugUSBAudio
I’m able to reconnect to the USB DAC with a restart of the audio service. I’m wondering if there’s a way to configure the audio service to re-detect devices when a new device is connected, or to restart the service automatically when this happens. Otherwise if I power down the DAC/amp, I lose the connection to balena-sound until I restart the audio service.
Thanks!