Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: No sound on Spotify
#1
Works for radio stations so far but I have no sound when streaming from spotify. Moode shows Spotify as being active but it's dead silent.

System info:

Code:
moOde release = 6.7.1 2020-07-22
RaspiOS = 10.4
Linux kernel = 5.4.51-v7+ #1325
Platform = Allo USBridge SIG [CM3+ Lite 1GB v1.0]
Architecture = armv7l (32-bit)
System uptime = up 31 minutes
Timezone = Europe/Bucharest
Current time = 2020-10-15 19:36:52

Host name = moode
Ethernet address = 192.168.2.115
Ethernet MAC = 00:17:f7:00:ab:7b
WLAN address = unassigned
WLAN MAC = no adapter
WLAN country = US

SoC identifier = bcm2837 
Core count = 4
Kernel timer freq = 100 Hz
SDCard freq = 50 MHz
USB boot = not available
Warranty = OK

Root size = 3.4G
Root used = 80%
Root available = 666M
Root expand = not expanded
Memory free = 578 MB
Memory used = 158 MB
SoC temperature = 63.4°C

CPU governor = ondemand
Onboard WiFi = None
Onboard BT = None
HDMI output = Off
LED state = 1,1
Eth addr wait = On
Max USB current = Off
USB (UAC2) fix = Off
Pi-3B+ eth fix = Off
SSH term server = Off

PHP-FPM version = 7.3.14
NGINX version = 1.14.2
SQLite3 version = 3.27.2
Hostapd version = 2.8-devel
WiringPi version = 2.50
RPi.GPIO version = 0.7.0

A U D I O   P A R A M E T E R S

Audio device = USB audio device
Interface = USB
Mixer name = Headphone
Hardware volume = Controller detected
Max ALSA volume = 100
Max MPD volume = 100
Volume step limit = 10
Audio source = Local
Output device = Local
Resume MPD = No
Volume knob = 0
Volume mute = Unmuted
Saved MPD vol = 0
Preamp volume = 0
ALSA version = 1.1.8-1+rpt1
SoX version = 0.1.2-3

Bluetooth controller = Off
Pairing agent = Off
Airplay receiver = Off
Spotify receiver = On
Squeezelite = Off
UPnP client = Off
DLNA server = On
GPIO button handler = Off
UPnP browser = On

Auto-shuffle = Off
Autoplay = Off
Rotary encoder = Off
Encoder params = 100 2 3 23 24
USB volume knob = Off
Polarity inversion = Off
Crossfeed = Off
Crossfade = Off
Parametric EQ = Off
Graphic EQ = Off
MPD httpd = Off

A P P E A R A N C E   S E T T I N G S

Themes and backgrounds
----------------------
Theme = Default
Accent color = Emerald
Alpha blend = 1.0
Adaptive background = No
Background image = No
Cover backdrop = No
Cover blur = 20px
Cover scale = 1.25

Library options
----------------------
Instant play action = Add/Play
Show tagview genres = Yes
Show tagview covers = Yes
Show sample rate = No
Ellipsis limited text = No
Thumbnail columns = 6/2 (Default)
Albumview sort order = by Artist
Tagview sort order = by Artist
Compilation identifier = Various Artists
Recently added = 1 Month
Ignore articles = a,an,the
UTF8 character filter = No
Hi-res thumbs = Auto
Cover search pri = Embedded cover
Pixel ratio = 1

Coverview screen saver
----------------------
CoverView auto-display = Never
CoverView style = Gradient (Linear)

Other options
----------------------
Font size = Normal
Auto-shuffle filter = None
Extra metadata = track,disc,date,composer,encoded
Playback history = No
First use help = y,y

M P D   S E T T I N G S

Version = 0.21.24
Volume control = disabled
ALSA device = hw:1
SoX resampling = *:24:*
SoX quality = very high
SoX multithreading = on
DSD over PCM (DoP) = no
Replaygain = off
Replaygain preamp = 0
Volume normalization = No
Audio buffer = 4096 (kb)
Output buffer size = 131072 (kb)

B L U E T O O T H   S E T T I N G S

Bluetooth ver = 5.50
Bluealsa ver = v2.1.0
Speaker sharing = No
Resume MPD = No
PCM buffer time = 500000 (µs)

A I R P L A Y   S E T T I N G S

Version = 3.3.6
Friendly name = Moode Airplay
ALSA device = hw:1
Interpolation = soxr
Output bit depth = S16
Output sample rate = 44100
Session interruption = no
Session timeout = 120 (ms)
Latency offset = 0.0 (secs)
Audio buffer = 0.2 (secs)
Resume MPD = No

S P O T I F Y   S E T T I N G S

Friendly name = Moode Spotify
ALSA device = plughw:1
Bit rate = 160
Initial volume = 100
Volume curve = Logarithmic
Volume normalization = No
Normalization pregain = 0
Autoplay = No
Resume MPD = No

S Q U E E Z E L I T E   S E T T I N G S

Version = 1.8.7-1052 "DSD/SRC enabled"
Friendly name = Moode
ALSA device = hw:0
ALSA params = 80:4::1
Output buffers = 40000:100000
Task priority = 45
Codec list = flac,pcm,mp3,ogg,aac,alac,dsd
Other options = -W -D 500 -R E -S /var/local
Resume MPD = No

L O C A L   D I S P L A Y   S E T T I N G S

Local UI display = Off
Mouse cursor = On
Screen blank = off Secs
Wake display on play = Off
Brightness = 255
Pixel aspect ratio = Default
Rotate screen = 0 Deg

M O O D E   S T A R T U P   L O G

20200722 164220 worker: -- Start
20200722 164220 worker: Successfully daemonized
20200722 164220 worker: Integrity check (passed)
20200722 164221 worker: Session loaded
20200722 164221 worker: Debug logging (off)
20200722 164221 worker: Device raw: (0:b1|1:Headphones|2:empty|3:empty
20200722 164221 worker: Device i2s: (none)
20200722 164221 worker: Device mpd: (1:Pi Headphone jack)
20200722 164221 worker: Device ses: (1|Pi Headphone jack|Headphone|0%)
20200722 164221 worker: ALSA Headphone volume set to (0%)
20200722 164221 worker: -- System
20200722 164223 worker: Host     (moode)
20200722 164223 worker: moOde    (6.7.1 2020-07-22)
20200722 164223 worker: RaspiOS  (10.4)
20200722 164223 worker: Kernel   (5.4.51-v7+ #1325)
20200722 164223 worker: Platform (Allo USBridge SIG [CM3+ Lite 1GB v1.0])
20200722 164223 worker: ARM arch (armv7l, 32-bit kernel)
20200722 164223 worker: MPD ver  (0.21.24)
20200722 164223 worker: CPU gov  (ondemand)
20200722 164223 worker: USB boot not available
20200722 164223 worker: File system not expanded yet
20200722 164223 worker: HDMI port on
20200722 164224 worker: File check (OK)
20200722 164224 worker: -- Network
20200722 164224 worker: eth0 exists
20200722 164224 worker: IP addr (192.168.2.115)
20200722 164224 worker: Netmask (255.255.255.0)
20200722 164224 worker: Gateway (192.168.2.1)
20200722 164224 worker: Pri DNS (192.168.2.1)
20200722 164224 worker: Domain  (None)
20200722 164224 worker: wlan0 does not exist
20200722 164224 worker: -- Audio
20200722 164226 worker: MPD conf updated
20200722 164226 worker: ALSA outputs unmuted
20200722 164226 worker: ALSA card number (1)
20200722 164226 worker: Audio output (Pi Headphone jack)
20200722 164226 worker: Audio formats (U8, S16_LE)
20200722 164227 worker: ALSA mixer name (Headphone)
20200722 164227 worker: MPD volume control (software)
20200722 164227 worker: Hdwr volume controller exists
20200722 164227 worker: Max ALSA volume (100%)
20200722 164227 worker: Reset renderer active flags
20200722 164227 worker: -- MPD
20200722 164227 worker: MPD started
20200722 164227 worker: MPD accepting connections
20200722 164227 worker: Configure MPD outputs
20200722 164228 worker: MPD output 1 ALSA default (on)
20200722 164228 worker: MPD output 2 ALSA crossfeed (off)
20200722 164228 worker: MPD output 3 ALSA parametric eq (off)
20200722 164228 worker: MPD output 4 ALSA graphic eq (off)
20200722 164228 worker: MPD output 5 ALSA polarity inversion (off)
20200722 164228 worker: MPD output 6 ALSA bluetooth (off)
20200722 164228 worker: MPD output 7 HTTP stream (off)
20200722 164228 worker: MPD crossfade (off)
20200722 164228 worker: -- Feature availability
20200722 164228 worker: Source select (available)
20200722 164228 worker: Source select (source: MPD)
20200722 164228 worker: Source select (output: Pi Headphone jack)
20200722 164228 worker: Bluetooth (available)
20200722 164228 worker: Airplay renderer (available)
20200722 164228 worker: Spotify renderer (available)
20200722 164228 worker: Squeezelite renderer (available)
20200722 164228 worker: UPnP renderer (available)
20200722 164228 worker: DLNA server (available)
20200722 164228 worker: UPnP browser (available)
20200722 164228 worker: Audio scrobbler (available)
20200722 164228 worker: GPIO button handler (available)
20200722 164228 worker: -- Music sources
20200722 164228 worker: USB sources (none attached)
20200722 164228 worker: NAS and UPnP sources (none configured)
20200722 164228 worker: -- Miscellaneous
20200722 164228 worker: USB volume knob (Off)
20200722 164228 worker: USB auto-mounter (udisks-glue)
20200722 164228 worker: LED0 (On)
20200722 164228 worker: LED1 (sysclass does not exist)
20200722 164228 worker: Saved MPD vol level (0)
20200722 164228 worker: Preamp volume level (0)
20200722 164229 worker: MPD volume level (0) restored
20200722 164229 worker: ALSA Headphone volume (100%)
20200722 164229 worker: Auto-play (Off)
20200722 164229 worker: Maintenance interval (3 hrs)
20200722 164229 worker: Screen saver activation (Never)
20200722 164229 worker: Session permissions (OK)
20200722 164229 worker: Watchdog started
20200722 164229 worker: Ready
20201015 120831 engine-mpd: Connection to MPD failed
20201015 120831 moode.php: MPD connect failed: cmd=(playlist)
20201015 120831 watchdog: MPD restarted (check syslog for errors)
20201015 120934 worker: Job mpdcfg
20201015 121033 worker: Job spotifysvc
20201015 121054 worker: Job spotifysvc
20201015 121104 worker: Job minidlna
20201015 121108 worker: Job upnp_browser
20201015 121153 worker: Job timezone
20201015 121247 worker: Job scnblank
20201015 191506 watchdog: MPD restarted (check syslog for errors)
20201015 121546 worker: Job spotifysvc
20201015 121622 worker: Job spotifysvc
20201015 191722 watchdog: MPD restarted (check syslog for errors)
20201015 121917 engine-mpd: Connection to MPD failed
20201015 121917 moode.php: MPD connect failed: cmd=(playlist)
20201015 191920 watchdog: MPD restarted (check syslog for errors)
20201015 121953 worker: Job spotifysvc
20201015 122002 worker: Job update_library
20201015 192003 thmcache: Start
20201015 192003 thmcache: Scanning: NAS, SDCARD, UPNP
20201015 122005 worker: Job update_library done
20201015 122053 worker: Job spotify_clear_credentials
20201015 122239 worker: Job spotifysvc
20201015 122313 worker: Job spotifysvc
20201015 122340 worker: Job spotifysvc
20201015 122531 worker: Job spotifysvc
20201015 122908 worker: Job hdmiport
20201015 122932 worker: Job pixel_aspect_ratio
20201015 122941 worker: Job pixel_aspect_ratio
20201015 123042 worker: Job spotifysvc
20201015 123612 worker: Job spotifysvc

My output device is a Burson conductor reference 3 and I have to edit /etc/mpd.conf in order to set the audio output to hw:3,0 otherwise I get no output at all. Could it be that there's a separate Spotify config and I need to set this param somewhere 


Code:
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
  Subdevices: 4/4
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 4/4
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
card 3: B20 [BursonAudio USB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Reply
#2
Post output from these awk's.

Code:
aplay -l | awk -F'[' '/card 0/ {print $2}' | cut -d']' -f1
aplay -l | awk -F'[' '/card 1/ {print $2}' | cut -d']' -f1
aplay -l | awk -F'[' '/card 2/ {print $2}' | cut -d']' -f1
aplay -l | awk -F'[' '/card 3/ {print $2}' | cut -d']' -f1
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(10-15-2020, 05:41 PM)Tim Curtis Wrote: Post output from these awk's.
Hi Tim,

Here's the output:


Code:
root@moode:~# aplay -l | awk -F'[' '/card 0/ {print $2}' | cut -d']' -f1
bcm2835 HDMI 1
root@moode:~# aplay -l | awk -F'[' '/card 1/ {print $2}' | cut -d']' -f1
bcm2835 Headphones
root@moode:~# aplay -l | awk -F'[' '/card 2/ {print $2}' | cut -d']' -f1
root@moode:~# aplay -l | awk -F'[' '/card 3/ {print $2}' | cut -d']' -f1
BursonAudio USB Audio 2.0
root@moode:~# 
Reply
#4
Thats the code thats used to populate the "Output device" dropdown list in MPD config.

Do you see "BursonAudio USB Audio 2.0" in the list?

ETA: I noticed that card 2 is empty and the audio device is assigned to card 3 by ALSA. This is very odd. I would have expected the device to be assigned to card 2.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
No Burson in "audio output". A HDMI and a "headphone jack" that's all.
Reply
#6
I set it to headphone jack just for the lols and, after that, burson appeared in the output devices. Strange. Spotify works now.
Reply


Forum Jump: