09-30-2020, 01:57 AM
Hello,
I've installed moodeaudio on a Pi4 with 4GB RAM.
Installation was easy, everything (the built in test file, radio, squeezelite, airplay test so far) works using the Pi's headphones output into the amp. I am mighty impressed with moodeaudio, and now want to use my Onkyo SE-U55SX USB Soundcard as audio output.
Soundcard plugged into USB port.
I go to Config -> Audio -> MPD Config and select the Onkyo which is the third option in the dropdown after Pi HDMI and Pi Headphones.
I leave everything else as it is.
Now when I try to play internet radio, squeezelite, airplay there is no sound, and the below error is displayed:
The stereo test file still works and plays over the Onkyo.
When I open Alsamixer and select the Onkyo, there is a message
LSUSB shows:
aplay -L:
moodeutl -l:
Thinking it's a volume control issue I tried setting MPD volume control from Software to 0 (zero), which didn't change anything, so I set it back to Software.
Tried setting SOX resamplerate to 24/96 made no difference. Also set it back to Disabled.
I set logging to verbose, to see what comes through /cat/log/mpd/log. Here some snipped of error messages:
I've looked at previous similar threads and followed steps suggested there (bar re-installing the image), however I feel I must have missed something.
Any help is much appreciated!
Phil.
I've installed moodeaudio on a Pi4 with 4GB RAM.
Installation was easy, everything (the built in test file, radio, squeezelite, airplay test so far) works using the Pi's headphones output into the amp. I am mighty impressed with moodeaudio, and now want to use my Onkyo SE-U55SX USB Soundcard as audio output.
Soundcard plugged into USB port.
I go to Config -> Audio -> MPD Config and select the Onkyo which is the third option in the dropdown after Pi HDMI and Pi Headphones.
I leave everything else as it is.
Now when I try to play internet radio, squeezelite, airplay there is no sound, and the below error is displayed:
Code:
Failed to open "ALSA default" (alsa); Error opening ALSA device "hw:2,0"; snd_pcm_hw_params() failed: Input/output error
The stereo test file still works and plays over the Onkyo.
When I open Alsamixer and select the Onkyo, there is a message
Code:
This sound device does not have any controls.
LSUSB shows:
Code:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0746:5512 Onkyo Corp.
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
aplay -L:
Code:
pi@moode:~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
btaplay_dmix
alsaequal
plug_alsaequal
btstream
crossfeed
plug_bs2b
eqfa4p
plug_eqfa4p
invpolarity
default:CARD=b1
bcm2835 HDMI 1, bcm2835 HDMI 1
Default Audio Device
sysdefault:CARD=b1
bcm2835 HDMI 1, bcm2835 HDMI 1
Default Audio Device
dmix:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Direct sample mixing device
dsnoop:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Direct sample snooping device
hw:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Direct hardware device without any conversions
plughw:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Hardware device with all software conversions
default:CARD=Headphones
bcm2835 Headphones, bcm2835 Headphones
Default Audio Device
sysdefault:CARD=Headphones
bcm2835 Headphones, bcm2835 Headphones
Default Audio Device
dmix:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Direct sample mixing device
dsnoop:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Direct sample snooping device
hw:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Hardware device with all software conversions
default:CARD=SEU55SX
ONKYO SE-U55SX, USB Audio
Default Audio Device
sysdefault:CARD=SEU55SX
ONKYO SE-U55SX, USB Audio
Default Audio Device
front:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
Front speakers
surround21:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
Direct sample mixing device
dmix:CARD=SEU55SX,DEV=1
ONKYO SE-U55SX, USB Audio #1
Direct sample mixing device
dsnoop:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
Direct sample snooping device
dsnoop:CARD=SEU55SX,DEV=1
ONKYO SE-U55SX, USB Audio #1
Direct sample snooping device
hw:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
Direct hardware device without any conversions
hw:CARD=SEU55SX,DEV=1
ONKYO SE-U55SX, USB Audio #1
Direct hardware device without any conversions
plughw:CARD=SEU55SX,DEV=0
ONKYO SE-U55SX, USB Audio
Hardware device with all software conversions
plughw:CARD=SEU55SX,DEV=1
ONKYO SE-U55SX, USB Audio #1
Hardware device with all software conversions
moodeutl -l:
Code:
pi@moode:~ $ moodeutl -l
20200930 101636 worker: -- Start
20200930 101637 worker: Successfully daemonized
20200930 101637 worker: Integrity check (passed)
20200930 101637 worker: Session loaded
20200930 101637 worker: Debug logging (off)
20200930 101637 worker: Device raw: (0:b1|1:Headphones|2:SEU55SX|3:empty
20200930 101637 worker: Device i2s: (none)
20200930 101637 worker: Device mpd: (2:ONKYO SE-U55SX)
20200930 101637 worker: Device ses: (2|ONKYO SE-U55SX|Headphone|100%)
20200930 101637 worker: ALSA PCM volume set to (amixer: Unable to find simple control 'PCM',0)
20200930 101637 worker: -- System
20200930 101639 worker: Host (moode)
20200930 101639 worker: moOde (6.7.1 2020-07-22)
20200930 101639 worker: RaspiOS (10.4)
20200930 101639 worker: Kernel (5.4.51-v8+ #1325)
20200930 101639 worker: Platform (Pi-4B 4GB v1.2)
20200930 101639 worker: ARM arch (aarch64, 64-bit kernel)
20200930 101639 worker: MPD ver (0.21.24)
20200930 101639 worker: CPU gov (ondemand)
20200930 101639 worker: USB boot not available
20200930 101639 worker: File system not expanded yet
20200930 101639 worker: HDMI port on
20200930 101639 worker: File check (OK)
20200930 101639 worker: -- Network
20200930 101639 worker: eth0 exists
20200930 101639 worker: eth0 wait 0 for IP address
20200930 101642 worker: eth0 wait 1 for IP address
20200930 101645 worker: eth0 wait 2 for IP address
20200930 101649 worker: eth0 wait 3 for IP address
20200930 101652 worker: eth0 wait 4 for IP address
20200930 103540 worker: eth0 address not assigned
20200930 103540 worker: wlan0 exists
20200930 103540 worker: wifi country (AU)
20200930 103540 worker: wlan0 trying SSID (HOMEX)
20200930 103543 worker: IP addr (172.16.50.127)
20200930 103543 worker: Netmask (255.255.255.0)
20200930 103543 worker: Gateway (172.16.50.1)
20200930 103543 worker: Pri DNS (8.8.8.8)
20200930 103543 worker: Domain (8.8.4.4)
20200930 103543 worker: -- Audio
20200930 103544 worker: MPD conf updated
20200930 103544 worker: ALSA outputs unmuted
20200930 103544 worker: ALSA card number (2)
20200930 103544 worker: Audio output (ONKYO SE-U55SX)
20200930 103545 worker: Audio formats (S16_LE, S24_3LE)
20200930 103545 worker: ALSA mixer name (PCM)
20200930 103545 worker: MPD volume control (software)
20200930 103545 worker: Hdwr volume controller not detected
20200930 103545 worker: Reset renderer active flags
20200930 103545 worker: -- MPD
20200930 103545 worker: MPD started
20200930 103545 worker: MPD accepting connections
20200930 103545 worker: Configure MPD outputs
20200930 103546 worker: MPD output 1 ALSA default (on)
20200930 103546 worker: MPD output 2 ALSA crossfeed (off)
20200930 103546 worker: MPD output 3 ALSA parametric eq (off)
20200930 103546 worker: MPD output 4 ALSA graphic eq (off)
20200930 103546 worker: MPD output 5 ALSA polarity inversion (off)
20200930 103546 worker: MPD output 6 ALSA bluetooth (off)
20200930 103546 worker: MPD output 7 HTTP stream (off)
20200930 103546 worker: MPD crossfade (off)
20200930 103546 worker: -- Feature availability
20200930 103546 worker: Source select (available)
20200930 103546 worker: Source select (source: MPD)
20200930 103546 worker: Source select (output: ONKYO SE-U55SX)
20200930 103546 worker: Bluetooth (available)
20200930 103546 worker: Airplay renderer (available)
20200930 103546 worker: Airplay renderer (started)
20200930 103546 worker: Spotify renderer (available)
20200930 103546 worker: Squeezelite renderer (available)
20200930 103546 worker: UPnP renderer (available)
20200930 103546 worker: DLNA server (available)
20200930 103546 worker: UPnP browser (available)
20200930 103546 worker: Audio scrobbler (available)
20200930 103546 worker: GPIO button handler (available)
20200930 103546 worker: -- Music sources
20200930 103546 worker: USB sources (none attached)
20200930 103547 worker: NAS and UPnP sources (mountall initiated)
20200930 103547 worker: -- Miscellaneous
20200930 103547 worker: USB volume knob (Off)
20200930 103547 worker: Shellinabox SSH started
20200930 103547 worker: USB auto-mounter (udisks-glue)
20200930 103547 worker: LED0 (On)
20200930 103547 worker: LED1 (On)
20200930 103547 worker: Saved MPD vol level (0)
20200930 103547 worker: Preamp volume level (0)
20200930 103547 worker: MPD volume level (0) restored
20200930 103547 worker: ALSA volume level (None)
20200930 103547 worker: Auto-play (Off)
20200930 103547 worker: Maintenance interval (3 hrs)
20200930 103547 worker: Screen saver activation (Never)
20200930 103547 worker: Session permissions (OK)
20200930 103547 worker: Watchdog started
20200930 103547 worker: Ready
20200930 112649 worker: Job mpdrestart
20200930 113847 worker: Job airplaysvc
Thinking it's a volume control issue I tried setting MPD volume control from Software to 0 (zero), which didn't change anything, so I set it back to Software.
Tried setting SOX resamplerate to 24/96 made no difference. Also set it back to Disabled.
I set logging to verbose, to see what comes through /cat/log/mpd/log. Here some snipped of error messages:
Code:
Sep 30 11:22 : client: [12] opened from 127.0.0.1:35596
Sep 30 11:22 : client: [12] process command "play"
Sep 30 11:22 : playlist: play 0:"http://subfm.radioca.st/Sub.FM"
Sep 30 11:22 : client: [12] command returned 0
Sep 30 11:22 : playlist: queue song 1:"http://stream.radioactive.fm"
Sep 30 11:22 : client: [12] process command "close"
Sep 30 11:22 : client: [12] command returned 3
Sep 30 11:22 : client: [12] closed
Sep 30 11:22 : curl: icy-metaint=8192
Sep 30 11:22 : decoder_thread: probing plugin mad
Sep 30 11:22 : decoder: audio_format=44100:24:2, seekable=false
Sep 30 11:22 : alsa_output: opened hw:2,0 type=HW
Sep 30 11:22 : alsa_output: buffer: size=90..174762 time=2040..3962858
Sep 30 11:22 : alsa_output: period: size=45..87381 time=1020..1981429
Sep 30 11:22 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Sep 30 11:22 : exception: Failed to open "ALSA default" (alsa)
Sep 30 11:22 : exception: nested: Error opening ALSA device "hw:2,0"
Sep 30 11:22 : exception: snd_pcm_hw_params() failed: Input/output error
Sep 30 11:22 : exception: Failed to open "ALSA default" (alsa)
Sep 30 11:22 : exception: nested: Error opening ALSA device "hw:2,0"
Sep 30 11:22 : exception: snd_pcm_hw_params() failed: Input/output error
Sep 30 11:22 : player: problems opening audio device while playing "http://subfm.radioca.st/Sub.FM"
I've looked at previous similar threads and followed steps suggested there (bar re-installing the image), however I feel I must have missed something.
Any help is much appreciated!
Phil.