Unable to play Spotify to USB DAC (Audiolab)

Raspberry Pi related support

Unable to play Spotify to USB DAC (Audiolab)

Postby malachy » 23 Feb 2016, 20:28

Running Runeaudio on a Rasp Pi2 and enjoying streaming from a library with mixed formats to an Audiolab MDAC over USB and it works great :)

But if I connect to Spotify account I can only play on the Pi's standard analog audio out, if I try setting the MDAC as dest it won't play a thing or make a sound. I've logged on and checked the spopd.log and it shows an error:
Code: Select all
2016-02-23 19:48:04 [SPTF] 18:48:04.616 I [user_cache:135] UserCache::initiateGetUsers() will query for 3 users
2016-02-23 19:48:05 [SPTF] 18:48:05.203 E [ap:4172] ChannelError(1, 1, link-tracks)
2016-02-23 19:48:05 [SPTF] 18:48:05.392 E [ap:4172] ChannelError(0, 1, link-tracks)
2016-02-23 19:48:05 [SPTF] 18:48:05.605 E [ap:4172] ChannelError(0, 1, link-tracks)
2016-02-23 19:48:05 [SPTF] 18:48:05.801 E [ap:4172] ChannelError(0, 1, link-tracks)
2016-02-23 19:48:14 [SPTF] 18:48:14.027 I [offline-mgr:2032] 0 files are locked. 0 images are locked
2016-02-23 19:48:14 [SPTF] 18:48:14.028 I [offline-mgr:2058] 0 files unlocked. 0 images unlocked
2016-02-23 19:48:17 [ERR ] Error while opening libao device: Cannot open the device


So it looks like it cannot get access to the MDAC, I'm not sure why. Any help would be appreciated e.g. where to look for errors etc.

I have run the git stash and upgrade to get to current version and reboot but still the same.

Full debug output is at http://pastebin.com/SP0G62Te
malachy
 
Posts: 7
Joined: 18 Feb 2016, 21:35

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby hondagx35 » 23 Feb 2016, 22:18

Hi malachy,

please post the output from:
Code: Select all
cat /etc/libao.conf


Should look like this:
[root@runeaudio ~]# cat /etc/libao.conf
default_driver=alsa
use_mmap=no
dev=hw:1,0


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby malachy » 24 Feb 2016, 00:50

Hi Frank,

Yes, it looks exactly like that:

Code: Select all
[root@runeaudio ~]# cat /etc/libao.conf
default_driver=alsa
use_mmap=no
dev=hw:1,0
[root@runeaudio ~]#


I was also able to test playback over HDMI; that also works OK, just the USB on MDAC that is tricky.
malachy
 
Posts: 7
Joined: 18 Feb 2016, 21:35

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby hondagx35 » 24 Feb 2016, 10:38

Hi malachy,

please try to change the settings like this:

Code: Select all
default_driver=alsa
use_mmap=no
dev=plughw:1,0


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby malachy » 24 Feb 2016, 11:24

Hi Frank,

Thanks for that, unfortunately it stays the same for USB, I see the same error as before in spopd.log. It'll be tomorrow before I can try anything else although I think Spotify over HDMI sounds fine.

Regards,

Malachy
malachy
 
Posts: 7
Joined: 18 Feb 2016, 21:35

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby hondagx35 » 24 Feb 2016, 12:39

Hi Malachy,

although I think Spotify over HDMI sounds fine.

OK, but it has to work also with USB.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby malachy » 24 Feb 2016, 15:28

hondagx35 wrote:OK, but it has to work also with USB.


Sure, I'm happy to help debug this, hopefully it'll be a simple fix.

Malachy
malachy
 
Posts: 7
Joined: 18 Feb 2016, 21:35

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby malachy » 25 Feb 2016, 20:18

Good news! :D I was able to resolve this by simply commenting out the 'output_name' in spopd.conf so it is now:
Code: Select all
### Audio settings ###
audio_output = ao
#output_name = hw:0


Simply leave the alsa driver select the default. I've left the setting in libao.conf as you recommended so it has plughw specified. Some useful explanations of spopd.conf at https://github.com/Schnouki/spop/blob/master/spopd.conf.sample
malachy
 
Posts: 7
Joined: 18 Feb 2016, 21:35

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby Ovr » 02 Apr 2016, 20:48

I'm having the same problem, but in the .conf file the line you have commented out doesn't exist :(
Ovr
 
Posts: 1
Joined: 02 Apr 2016, 20:47

Re: Unable to play Spotify to USB DAC (Audiolab)

Postby uppsalanet » 29 May 2016, 20:40

Same here "/etc/spop/spopd.conf" dont have
Code: Select all
#output_name = hw:0

Code: Select all
### Audio settings ###
audio_output = ao
high_bitrate = true
offline_high_bitrate = true


/Fredrik
uppsalanet
 
Posts: 4
Joined: 25 May 2016, 08:36

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 9 guests