Unable to play Spotify to USB DAC (Audiolab)

Raspberry Pi related support

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

Postby Max M » 04 Jun 2016, 13:37

Hi Frank,

I have the same problem. I installed spotify connect, I can see the Raspi on my phone as device, but audio out is on the analog output and not on the USB DAC. In rune audio out to the USB DAC works. I tried to modify the spod.conf file and the libao.conf. This is how they look like now:

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


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

### Cache settings ###
#cache_size = 0
cache_path = /tmp/spop
settings_path = /tmp/spop

### Network settings ###
#listen_address = 127.0.0.1
#listen_port = 6602
## proxy_config
#proxy=http://proxy.lan:3128
#proxy_username=
#proxy_password=

### System settings ###
log_file = /var/log/runeaudio/spopd.log
#plugins = scrobble

[scrobble]
# API endpoint of the scrobbling service you're using.
# - Last.FM: http://post.audioscrobbler.com:80/
# - Libre.FM: http://turtle.libre.fm/
api_endpoint = http://post.audioscrobbler.com:80/
#username = user

[notify]
# Enable or disable notification images. Enabled by default.
#use_images = true

# Size of images in notifications. libspotify provides 300x300 images, which is
# probably too much for most people, so the default value is 120x120.
image_size = 120

[sox]
# Output type for SoX output. Common values: alsa, oss, coreaudio (MacOS X),
# pulseaudio, etc. Can be a file type: wav, mp3, ogg, etc. See `man soxformat'
# for details.
output_type = alsa

# Output name. Common values: default (for alsa, coreaudio, pulseaudio), hw:0
# (alsa), /dev/dsp (oss), etc. This can also be left empty to use the default
# value of the device driver. Can also be a file name: output.ogg, etc. See `man
# soxformat' for details.
output_name = default

# List of effets to apply to the audio output, with their parameters. See `man
# soxeffects' for details.
#effects = gain -3; pad 0 3; reverb

[oss]
# Device to use for OSS output. Default is /dev/dsp
#device = /dev/dsp
#password = pass


Any tips, which settings I need to change. Just to let you know: I am a Raspberry Pi newbie.

Thanks for your help, Max
Max M
 
Posts: 3
Joined: 04 Jun 2016, 13:23

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

Postby Max M » 06 Jun 2016, 20:35

And my some of my debug info for Rune Audio rpi2_rp3_0.4-beta_20160321:

Code: Select all
       
###### System info ######
Linux version 4.1.20-1-ARCH (builduser@leming) (gcc version 5.3.0 (GCC) ) #1 SMP Sat Mar 19 20:07:23 MDT 2016

system time:   Mon Feb 22 15:40:29 CET 2016

system load:   0.85 0.19 0.06 1/168 823

HW platform:   RaspberryPi2 (08)

playerID:   08b26fff2ac4ddac6fee7fbbc1890504ae




###### Audio backend ######
Advanced Linux Sound Architecture Driver Version k4.1.20-1-ARCH.

Card list: (/proc/asound/cards)
--------------------------------------------------
 0 [ALSA           ]: bcm2835 - bcm2835 ALSA
                      bcm2835 ALSA
 1 [DAC            ]: USB-Audio - USB Audio DAC
                      Burr-Brown from TI USB Audio DAC at usb-3f980000.usb-1.2, full speed


PLAYBACK devices: (aplay -l)
--------------------------------------------------
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: DAC [USB Audio DAC], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


PCM devices: (aplay -L)
--------------------------------------------------
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
default:CARD=DAC
    USB Audio DAC, USB Audio
    Default Audio Device
sysdefault:CARD=DAC
    USB Audio DAC, USB Audio
    Default Audio Device
front:CARD=DAC,DEV=0
    USB Audio DAC, USB Audio
    Front speakers
surround21:CARD=DAC,DEV=0
    USB Audio DAC, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=DAC,DEV=0
    USB Audio DAC, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=DAC,DEV=0
    USB Audio DAC, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=DAC,DEV=0
    USB Audio DAC, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=DAC,DEV=0
    USB Audio DAC, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=DAC,DEV=0
    USB Audio DAC, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=DAC,DEV=0
    USB Audio DAC, USB Audio
    IEC958 (S/PDIF) Digital Audio Output


Simple mixer controls: (amixer scontrols)
--------------------------------------------------
card 0:
Simple mixer control 'PCM',0

card 1:
Simple mixer control 'PCM',0


Mixer controls: (amixer controls)
--------------------------------------------------
card 0:
numid=3,iface=MIXER,name='PCM Playback Route'
numid=2,iface=MIXER,name='PCM Playback Switch'
numid=1,iface=MIXER,name='PCM Playback Volume'
numid=5,iface=PCM,name='IEC958 Playback Con Mask'
numid=4,iface=PCM,name='IEC958 Playback Default'

card 1:
numid=2,iface=MIXER,name='PCM Playback Switch'
numid=3,iface=MIXER,name='PCM Playback Volume'
numid=1,iface=PCM,name='Playback Channel Map'


MPD audio outputs status: (mpc outputs)
--------------------------------------------------
Output 1 (bcm2835 ALSA_1) is disabled
Output 2 (USB Audio DAC) is enabled
Output 3 (bcm2835 ALSA_2) is disabled

###### mpd version ######
mpd version: 0.19.0

###### mpd.conf ######
###################################
# Auto generated mpd.conf file
# please DO NOT edit it manually!
# Use RuneUI MPD config section
###################################

log_level   "default"
log_file   "/var/log/runeaudio/mpd.log"
state_file   "/var/lib/mpd/mpdstate"
zeroconf_enabled    "yes"
zeroconf_name    "runeaudio"
bind_to_address "/run/mpd.sock"
bind_to_address    "any"
port    "6600"
max_connections    "20"
user    "mpd"
group    "audio"
db_file    "/var/lib/mpd/mpd.db"
sticker_file    "/var/lib/mpd/sticker.sql"
pid_file    "/var/run/mpd/pid"
music_directory    "/mnt/MPD"
playlist_directory    "/var/lib/mpd/playlists"
follow_outside_symlinks    "yes"
follow_inside_symlinks    "yes"
auto_update    "yes"
filesystem_charset    "UTF-8"
id3v1_encoding    "UTF-8"
volume_normalization    "no"
audio_buffer_size    "2048"
buffer_before_play    "20%"
gapless_mp3_playback    "yes"
mixer_type    "software"

input {
   plugin    "curl"
}

decoder {
   plugin    "ffmpeg"
   enabled "yes"
}
replaygain    "off"

audio_output {
   name       "bcm2835 ALSA_1"
   type       "alsa"
   device       "hw:0,0"
   auto_resample    "no"
   auto_format    "no"
}

audio_output {
   name       "USB Audio DAC"
   type       "alsa"
   device       "hw:1,0"
   auto_resample    "no"
   auto_format    "no"
   enabled    "yes"
}

audio_output {
   name       "bcm2835 ALSA_2"
   type       "alsa"
   device       "hw:0,0"
   auto_resample    "no"
   auto_format    "no"
}


Max M
 
Posts: 3
Joined: 04 Jun 2016, 13:23

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

Postby hondagx35 » 06 Jun 2016, 21:57

Hi Max M,

your problem has nothing to do with this topic.
You have installed spotify connect which is not supported by RuneAudio.

Reading a bit in the docs:
/usr/bin/sh /root/spotify-connect-web.sh --name Stereo --device 1 --mixer PCM --username lalala --password lalala --bitrate 320

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

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

Postby Max M » 07 Jun 2016, 20:17

Thanks a lot! That worked with --device 0 after I understood how to identify the device with aplay -l.
Max M
 
Posts: 3
Joined: 04 Jun 2016, 13:23

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

Postby lookit » 17 Dec 2016, 08:40

I have been strugling with this too.
I changed the line in libao.conf from dev=xxx to dev=default and it works now I can play spotify on my usb dac
lookit
 
Posts: 1
Joined: 17 Dec 2016, 08:25

support RuneAudio Donate with PayPal

Previous

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 13 guests
cron