DAC not listed as "Connected to Roon Core" on QNAP

Hello,

I have a installed Roon 1.3 (using Chris Reike excellent installer v2017-02-02) on my QNAP TS-459 Pro II (running QTS 4.2.5 - can’t be upgraded to 4.3.x) and connected an AUDIOLAB M-DAC+ to it using an USB cable.

When I try to render the sound on the DAC (by selecting the Audio tab of Roon preferences) the Audiolab device is not listed as ‘Connected to Core’. Any idea why?

I noticed the following messages in dmesg / console when plugging the Audiolab device:

[15289.569038] usb 2-4: new high-speed USB device number 15 using ehci_hcd
[15289.773857] cannot get ctl value: req = 0x83, wValue = 0x201, wIndex = 0xa00, type = 4
[15289.774327] cannot get ctl value: req = 0x83, wValue = 0x200, wIndex = 0xa00, type = 4
[15289.803241] input: AUDIOLAB AUDIOLAB USB Audio 2.0 as /devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.3/input/input12
[15289.804714] generic-usb 0003:2622:0041.000B: input: USB HID v1.10 Device [AUDIOLAB AUDIOLAB USB Audio 2.0] on usb-0000:00:1d.7-4/input3

Here’s the /proc/asound/cards content:

1 [A20 ]: USB-Audio - AUDIOLAB USB Audio 2.0
AUDIOLAB AUDIOLAB USB Audio 2.0 at usb-0000:00:1d.7-3, high speed

Any help would be trully appreciated.

Thanks

might be wrong but… I don’t think a NAS supports USB audio out :neutral_face:

Audio output should work on NAS as long as RoonServer is installed on it. I am currently looking into scenarios where this might fail.

1 Like

What does aplay -l say?

What does cat /proc/asound/cardX/stream0 (where X is probably 0 or 1–the card number) say?

Any chance some other software on the NAS is using the device while Roon is starting up and needing to communicate it?

ALSA utils are not installed on the QTS 4.2.5 by default. I installed them using Entware-ng and the aplay -l produced the following:

aplay: device_list:268: no soundcards found…

Here’s also the ouptut of the requested cat command:

cat /proc/asound/card1/stream0
AUDIOLAB AUDIOLAB USB Audio 2.0 at usb-0000:00:1d.7-4, high speed : USB Audio

Playback:
Status: Stop
Interface 1
Altset 1
Format: S32_LE
Channels: 2
Endpoint: 1 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 125 us
Interface 1
Altset 2
Format: S16_LE
Channels: 2
Endpoint: 1 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 125 us
Interface 1
Altset 3
Format: S32_LE
Channels: 2
Endpoint: 1 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 125 us

Thanks for your help

Also, I don’t believe an other program would be using the card while Roon starts-up… but I might be wrong. How could I verify this ?

When aplay can see the device, Roon will also. I think we’ve just proven that this problem is lower-level than Roon.

The fact that it’s in procfs is a good sign that the kernel can initialize the device at some level.

To check if the device is being used, you could run speaker-test -D hw:1,0 -c 2 -r 44100 -F S32_LE and see if you can make sound come out of it.

If it works, that tells us one thing. If not, then it should print an error that either indicates the device is in use, or maybe tells us something else.

Just like with aplay, if speaker-test can’t be made to work, Roon won’t work either.

Ideally, you would be running all of these commands with the same account/permissions as Roon’s environment on the NAS.

Hi Brian,

here’s the output of the speaker-test command:

speaker-test 1.1.0

Playback device is hw:1,0
Stream parameters are 44100Hz, S32_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
Playback open error: -2,No such file or directory

I don’t seem to have the soundcore kernel module. Could that be the problem of Alsa not detecting the USB device ?

lsmod | grep snd
snd_usb_caiaq 34719 0 - Live 0xffffffffa0192000
snd_usb_audio 91051 0 - Live 0xffffffffa01b7000
snd_usbmidi_lib 17620 1 snd_usb_audio, Live 0xffffffffa00fb000
snd_hwdep 5669 1 snd_usb_audio, Live 0xffffffffa00c2000
snd_seq_midi 4656 0 - Live 0xffffffffa00bd000
snd_rawmidi 17385 3 snd_usb_caiaq,snd_usbmidi_lib,snd_seq_midi, Live 0xffffffffa00b7000
usbcore 195372 13 8192cu,btusb,uvcvideo,snd_usb_caiaq,snd_usb_audio,snd_usbmidi_lib,xhci_hcd,usblp,usbhid,usb_storage,uhci_hcd,ehci_hcd, Live 0xffffffffa0009000

Chris,
No soundcore.ko file under /sys/module… But on yours neither, apparently so this might not be the problem. What does lsmod | grep snd tell on your system ?

Cheers

That’s why I deleted my previous post again… :wink:

[~] # lsmod | grep "snd"
snd_usb_caiaq          39490  0
snd_usb_audio         140372  0
snd_usbmidi_lib        21220  1 snd_usb_audio
snd_seq_midi            5606  0
snd_rawmidi            18981  3 snd_usb_caiaq,snd_usbmidi_lib,snd_seq_midi
[~] #

So no soundcore module apparently… Not sure then why Alsa does not detect my card…
Frustrating

Was your USB audio device plugged when you issued the lsmod command ?

@Christian_Chateauvie, why did you delete your comment saying MusicStation is working–is it not actually working? (Just making sure we’re thinking about this clearly).

Also, on the off-chance that you can do this test–do you have another Linux machine that you could plug the DAC into and see if it works with Roon Bridge?

Especially if MusicStation is not working, this could be an issue between the DAC + Linux instead of the DAC + QNAP. Just helps isolate the problem further.

MusicStation is working - but I suspect it is using OSS and not Alsa. This is why I’ve deleted my post.
I’ve connected the DAC to another Linux box and it is probably recognized by ALSA (aplay -l lists the device).
Unfortunately this other linux box is not supported by Roon (it is a 32-bit kernel)

So this must be something about the QNAP kernel or something. I haven’t tried connecting another USB device to it because I don’t have any right now - but will test further

Frankly I am a bit desperate now. Not certain if I should sell my QNAP for another model (do you know if things might get better on a TS-469L, which supports QTS 4.3.3) or if I should better switch to Synology - your advice would be welcome.

PS I tried to downgrade the firmware to 4.2.0, to no avail.

The aplay command does not work on my QNAP either.

I could make the output of the aplay command work after installing QNAP’s HybridDesk Station and entering:

[~] # aplay -L
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL hw:0
[~] # chroot $(getcfg hd_station install_path -f /etc/config/qpkg.conf) /bin/bash
root@Roon:~# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
    HDA Intel HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA Intel HDMI, HDMI 1
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
    HDA Intel HDMI, HDMI 2
    HDMI Audio Output
dmix:CARD=HDMI,DEV=3
    HDA Intel HDMI, HDMI 0
    Direct sample mixing device
dmix:CARD=HDMI,DEV=7
    HDA Intel HDMI, HDMI 1
    Direct sample mixing device
dmix:CARD=HDMI,DEV=8
    HDA Intel HDMI, HDMI 2
    Direct sample mixing device
dsnoop:CARD=HDMI,DEV=3
    HDA Intel HDMI, HDMI 0
    Direct sample snooping device
dsnoop:CARD=HDMI,DEV=7
    HDA Intel HDMI, HDMI 1
    Direct sample snooping device
dsnoop:CARD=HDMI,DEV=8
    HDA Intel HDMI, HDMI 2
    Direct sample snooping device
hw:CARD=HDMI,DEV=3
    HDA Intel HDMI, HDMI 0
    Direct hardware device without any conversions
hw:CARD=HDMI,DEV=7
    HDA Intel HDMI, HDMI 1
    Direct hardware device without any conversions
hw:CARD=HDMI,DEV=8
    HDA Intel HDMI, HDMI 2
    Direct hardware device without any conversions
plughw:CARD=HDMI,DEV=3
    HDA Intel HDMI, HDMI 0
    Hardware device with all software conversions
plughw:CARD=HDMI,DEV=7
    HDA Intel HDMI, HDMI 1
    Hardware device with all software conversions
plughw:CARD=HDMI,DEV=8
    HDA Intel HDMI, HDMI 2
    Hardware device with all software conversions
root@Roon:~# exit
exit
[~] #

I don’t see this app being available in my QNAP app center.
But anyways.
Things work on your QNAP in spite of alsa -l not working
so where do you think the problem can be ? Brian seemed to indicate that Roon wouldn’t detect if aplay doesn’t …

The HybridDesk installation has to be done in the Control Panel > Applications > HybridDesk Station. But I am unsure if it exists for all models…

Not on mine at least. But this is not a prereq for Roon, right ?

So could the problem be coming from Roon and not from my NAS ? I suppose Roon detects your devices even whe you don’t have HybridDesk and the alsa command does not work ?..

No, it is not a requirement for Roon…