Shairport-sync in DietPi will use the default ALSA device, as defined in /etc/asound.conf.
This file is updated when changing the soundcard in the web interface.
Can you confirm you have selected USB-DAC as the soundcard in the web interface?
Dan,
USB-DAC was already set when iāve installed ALLO web GUI (so iāve made no selection).
Seems the explanation (default card 0 which is HDMI and not USB ).
But when shairport launched from the command line USB OK, why ?
root@DietPi:~# more /etc/asound.conf
pcm.!default {
type hw
card 0
device 0
}
ctl.!default {
type hw
card 0
}
EDIT: Confirmation, after USB-DAC selection in the Web GUI and reboot asound.conf is correct (card 1). Thankās Dan.
No, Iām using stock RPI at the moment because iām waiting for ALLO alu cases availability to order USBridge.
Iām not sure DAC was ON during DietPi update.
What i remember is that ALLO GUI was already set to USB-DAC in the web GUI after DietPi update (without any manual setting). So probably web GUI OK but asound.conf KO if DAC was OFF.
But what i donāt understand is why Shairport use the correct output (hw:1) when launched directly from the command line ?
Yep, if the DAC was unavailable during the update, that would render incorrect /etc/asound.conf setting.
Weāll fix this in v158, revert to soundcard none, when USB-DAC detection fails.
In the mean time, you can resolve /etc/asound.conf:
Select any soundcard in the list and save changes
Ensure USB-DAC is connected and powered on, then select usb-dac as the soundcard, save changes.
Because you are essentially telling shairport-sync to use that device, instead of hw:0,0 as per /etc/asound.conf.
Thank you Dan. asound.conf resolved. Everything OK.
Last question for information purpose only:
How iām āessentially telling shairport-syncā to use hw:1 vs hw:0 when launched from the command line with the command shairport-sync -vvv for example ?
root@DietPi:~# apt-get install net-tools
Reading package listsā¦ Done
Building dependency tree
Reading state informationā¦ Done
net-tools is already the newest version.
The following package was automatically installed and is no longer required:
libpci3
Use āapt-get autoremoveā to remove it.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Currently, we are only supporting the official pre-made Allo GUI images, and not stock DietPi with DietPi-Software install of Allo GUI.
This is because we have not fully tested the install with all webserver configurations, and, all the software titles/combos available in DietPi-Software.
Thanks for sending the bug report, iāll check this today, but it may be advisable to write the official Allo GUI image for a quick resolution:
How is the unit powered (eg: official RPi PSU / Allo barrel PSU into USB Bridge)?
EMMC/SD card used, and brand?
You mentioned no changes to the system, outside of DietPi programs/web interface. Is this the same system that you made changes to /usr/local/etc/shairport-sync.conf?