Sound on Roon with card "none" but no with squeezelite !?!

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
zaurux
Posts: 14
Joined: Wed Feb 20, 2019 8:02 pm

Sound on Roon with card "none" but no with squeezelite !?!

Post by zaurux »

With my Allo USBridge and last version of Dietpi (6.22.3), i have sound on my dac (Audio-GD with amanero card) but with card "none" (previously USB-dac 1.1) ?! ("none" on Allo web interface and dietpi-config too)
I'm happy.. i have sound with Roon but no output with squeezelite.
If i choose another sound driver (ex. usb-dac 1.1), squeezelite service crash.
With card "none", i have sound, but i think squeezelite conf has not the good output.



USB PORT INFO

Code: Select all

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=aotg_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
        |__ Port 1: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 1: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 480M
        |__ Port 1: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=aotg_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
SOUND CARD INFO :

Code: Select all

Amanero Technologies Combo384 Amanero at usb-aotg_hcd.1-1.1, high speed : USB Audio

Playback:
  Status: Running
    Interface = 2
    Altset = 1
    Packet Size = 228
    Momentary freq = 176394 Hz (0x16.0c98)
    Feedback Format = 16.16
  Interface 2
    Altset 1
    Format: S32_LE
    Channels: 2
    Endpoint: 5 OUT (ASYNC)
    Rates: 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
    Data packet interval: 125 us
APLAY INFO

Code: Select all

**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: atm7059link [atm7059_link], périphérique 0: ATC2603C PCM atc2603c-dai-0 []
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: atm7059link [atm7059_link], périphérique 1: HDMI PCM atm7059-hdmi-dai-1 []
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: atm7059link [atm7059_link], périphérique 2: SPDIF PCM atm7059-spdif-dai-2 []
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: Amanero [Combo384 Amanero], périphérique 0: USB Audio [USB Audio]
  Sous-périphériques: 0/1
  Sous-périphérique #0: subdevice #0
squeezelite -l :

Code: Select all

Output devices:
  null                           - Discard all samples (playback) or generate zero samples (capture)
  equal
  sysdefault:CARD=atm7059link    - atm7059_link,  - Default Audio Device
  dmix:CARD=atm7059link,DEV=0    - atm7059_link,  - Direct sample mixing device
  dmix:CARD=atm7059link,DEV=1    - atm7059_link,  - Direct sample mixing device
  dmix:CARD=atm7059link,DEV=2    - atm7059_link,  - Direct sample mixing device
  dsnoop:CARD=atm7059link,DEV=0  - atm7059_link,  - Direct sample snooping device
  dsnoop:CARD=atm7059link,DEV=1  - atm7059_link,  - Direct sample snooping device
  dsnoop:CARD=atm7059link,DEV=2  - atm7059_link,  - Direct sample snooping device
  hw:CARD=atm7059link,DEV=0      - atm7059_link,  - Direct hardware device without any conversions
  hw:CARD=atm7059link,DEV=1      - atm7059_link,  - Direct hardware device without any conversions
  hw:CARD=atm7059link,DEV=2      - atm7059_link,  - Direct hardware device without any conversions
  plughw:CARD=atm7059link,DEV=0  - atm7059_link,  - Hardware device with all software conversions
  plughw:CARD=atm7059link,DEV=1  - atm7059_link,  - Hardware device with all software conversions
  plughw:CARD=atm7059link,DEV=2  - atm7059_link,  - Hardware device with all software conversions
  sysdefault:CARD=Amanero        - Combo384 Amanero, USB Audio - Default Audio Device
  front:CARD=Amanero,DEV=0       - Combo384 Amanero, USB Audio - Front speakers
  surround21:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
  surround40:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 4.0 Surround output to Front and Rear speakers
  surround41:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
  surround51:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=Amanero,DEV=0      - Combo384 Amanero, USB Audio - IEC958 (S/PDIF) Digital Audio Output
  dmix:CARD=Amanero,DEV=0        - Combo384 Amanero, USB Audio - Direct sample mixing device
  dsnoop:CARD=Amanero,DEV=0      - Combo384 Amanero, USB Audio - Direct sample snooping device
  hw:CARD=Amanero,DEV=0          - Combo384 Amanero, USB Audio - Direct hardware device without any conversions
  plughw:CARD=Amanero,DEV=0      - Combo384 Amanero, USB Audio - Hardware device with all software conversions
zaurux
Posts: 14
Joined: Wed Feb 20, 2019 8:02 pm

Re: Sound on Roon with card "none" but no with squeezelite !?!

Post by zaurux »

It works if i stop Roon and in a terminal launch this command :

Code: Select all

root@DietPi:~# squeezelite -o hw:CARD=Amanero 
But no possibility to make a good and stable configuration with dietpi-config.
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Sound on Roon with card "none" but no with squeezelite !?!

Post by MichaIng »

@zaurux
Many thanks for your report.

Which device do you use? Ah if usb-dac-1.1 is available it must be Sparky SBC right?
And did it work before with an older DietPi version and when selecting "usb-dac 1.1"?

I wonder that "none" works for your since this should add hw:0,0 (card 0 device 0) to your asound.conf which is as of your output the analogue 3.5mm jack which should be disabled.
The USB DAC is hw:1,0 which should be auto detected when selecting usb-dac.

Now I wonder why you can actually choose "none" since this is only available on RPi :?.

Please verify which SBC you use and paste:
echo $G_HW_MODEL
cat /etc/asound.conf

- At best the above once when selecting "none" and once when selecting "usb-dac-1.1" (even that those two options should not be visible on the same device). And then if there is an output through the DAC.
zaurux
Posts: 14
Joined: Wed Feb 20, 2019 8:02 pm

Re: Sound on Roon with card "none" but no with squeezelite !?!

Post by zaurux »

Thanks for reponse.
It's an AlloUSBridge (Sparky) whith AUdio-GD DAC via Amanero USB port

Code: Select all

root@DietPi:~# echo $G_HW_MODEL
70
root@DietPi:~# cat /etc/asound.conf
pcm.!default {
    type hw
    card 0
    device 0
}
ctl.!default {
    type hw
    card 0
}
root@DietPi:~#

zaurux
Posts: 14
Joined: Wed Feb 20, 2019 8:02 pm

Re: Sound on Roon with card "none" but no with squeezelite !?!

Post by zaurux »

I am confused .. I tested usb-dac, it works.
I had not tried because before I was on usb-dac 1.1.
And now it works also under squeezelite.
Squeezelite reads dsd files without any particular plugin.
But I do not know what are the options built into the squeezlite config and what is sent to the dac for DSD.

Code: Select all

root@DietPi:~# cat /etc/asound.conf
pcm.!default {
    type hw
    card 1
    device 0
}
ctl.!default {
    type hw
    card 1
}
root@DietPi:~#
Dop with downsampling ?

Code: Select all

Amanero Technologies Combo384 Amanero at usb-aotg_hcd.1-1.1, high speed : USB Audio

Playback:
  Status: Running
    Interface = 2
    Altset = 1
    Packet Size = 228
    Momentary freq = 176394 Hz (0x16.0c98)
    Feedback Format = 16.16
  Interface 2
    Altset 1
    Format: S32_LE
    Channels: 2
    Endpoint: 5 OUT (ASYNC)
    Rates: 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
    Data packet interval: 125 us
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Sound on Roon with card "none" but no with squeezelite !?!

Post by MichaIng »

Ah this makes sense. usb-dac-1.1 adds a kernel cmdline option to force the USB speed to 1.1. This is only required and should be only used if the USB-DAC is known to be incompatible with other USB speed modes.

About the DSD to be true this is out of my knowledge as well ;).
Post Reply