04-20-2021, 06:45 AM
(This post was last modified: 04-23-2021, 06:48 AM by gingerbeer.)
Hi,
Struggling to get CamillaDSP working in Moode - I'm hoping someone may be able to advise on what is going wrong.
Long term the goal is to get to a 6 output active crossover, but struggling with some of the baby steps first.
Hardware:
Working:
Not Working:
The mpd log file has the following: (/var/log/mpd/log)
moodeutl -F
moodeutl -l
Struggling to get CamillaDSP working in Moode - I'm hoping someone may be able to advise on what is going wrong.
Long term the goal is to get to a 6 output active crossover, but struggling with some of the baby steps first.
Hardware:
- RPi 3B, running a fresh install of Moode 7.1
- MiniDSP UDIO-8 which is basically a USBStreamer module (that then outputs up to 8 channels of AES/EBU to downstream DACs).
Working:
- Fresh install of Moode 7.1 and play 2 channel audio to the USBStreamer ALSA. Local file or SOMA radio works fine.
- aplay via the command line, playing of a local wav file to 2 channels
- aplay via the command line, playing of a local wav file to 4, 6, 8 channels using a local wav file as a test
- alsa speaker test to all or individual channels.
Not Working:
- Turn CamillaDSP on and try to play 2 channel to the default output. "MPD error: failed to open audio output"
- Turn CamillaDSP on and try to play 2 channel to the non-default output. "MPD error: failed to open audio output". whether I use "hw:2,0" or "USBStreamer" as the name of the output.
- Tried various buffer sizes (as suggested in another thread) - no change
The mpd log file has the following: (/var/log/mpd/log)
Code:
Apr 20 00:57:11.737 ERRO Playback error: ALSA function 'snd_pcm_hw_params_set_channels' failed with error 'EINVAL: Invalid argument', module: camilladsp
Apr 20 00:57 : exception: Failed to play on "ALSA CamillaDSP" (alsa): snd_pcm_poll_descriptors_revents() failed: No such device
Apr 20 00:57 : exception: Failed to open audio output
Apr 20 01:13 : player: played "http://ice1.somafm.com/beatblender-128-aac"
Apr 20 01:13 : player: played "http://ice1.somafm.com/beatblender-128-aac"
moodeutl -F
Code:
*** Scanning for playback devices ***
Card 0, ID `b1', name `bcm2835 HDMI 1'
Device 0, ID `bcm2835 HDMI 1', name `bcm2835 HDMI 1', 4 subdevices (4 available)
1..8 channels, sampling rate 8000..192000 Hz
Sample formats: U8, S16_LE
Buffer size range from 80 to 131072
Period size range from 80 to 131072
Subdevice 0, name `subdevice #0'
Subdevice 1, name `subdevice #1'
Subdevice 2, name `subdevice #2'
Subdevice 3, name `subdevice #3'
Card 1, ID `Headphones', name `bcm2835 Headphones'
Device 0, ID `bcm2835 Headphones', name `bcm2835 Headphones', 4 subdevices (4 available)
1..8 channels, sampling rate 8000..192000 Hz
Sample formats: U8, S16_LE
Buffer size range from 80 to 131072
Period size range from 80 to 131072
Subdevice 0, name `subdevice #0'
Subdevice 1, name `subdevice #1'
Subdevice 2, name `subdevice #2'
Subdevice 3, name `subdevice #3'
Card 2, ID `USBStreamer', name `USBStreamer'
Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
8 channels, sampling rate 44100..192000 Hz
Sample formats: S16_LE, S32_LE
Buffer size range from 12 to 65536
Period size range from 6 to 32768
Subdevice 0, name `subdevice #0'
moodeutl -l
Code:
moodeutl -l
20210420 021849 worker: -- Start
20210420 021849 worker: Successfully daemonized
20210420 021849 worker: Integrity check (passed)
20210420 021850 worker: File check (OK)
20210420 021850 worker: Session vacuumed
20210420 021850 worker: Session loaded
20210420 021850 worker: Debug logging (OFF)
20210420 021850 worker: -- Device
20210420 021850 worker: ALSA cards: (0:b1 | 1:Headphones | 2:USBStreamer | 3:empty
20210420 021850 worker: MPD config: (2:USBStreamer | mixer:(USBStreamer ) | card:2)
20210420 021850 worker: ALSA mixer actual (USBStreamer )
20210420 021850 worker: ALSA USBStreamer volume set to (0%)
20210420 021850 worker: -- System
20210420 021851 worker: Host (moode)
20210420 021851 worker: moOde (7.1.0 2021-03-15)
20210420 021851 worker: RaspiOS (10.6)
20210420 021851 worker: Kernel (5.4.77-v7+ #1371)
20210420 021851 worker: Platform (Pi-3B+ 1.3 1GB)
20210420 021851 worker: ARM arch (armv7l, 32-bit kernel)
20210420 021851 worker: MPD ver (0.22.6_p0x3)
20210420 021851 worker: CPU gov (ondemand)
20210420 021851 worker: USB boot enabled
20210420 021851 worker: File system not expanded yet
20210420 021851 worker: HDMI port on
20210420 021851 worker: -- Network
20210420 021851 worker: eth0 exists
20210420 021851 worker: IP addr (192.168.1.170)
20210420 021852 worker: Netmask (255.255.255.0)
20210420 021852 worker: Gateway (192.168.1.1)
20210420 021852 worker: Pri DNS (192.168.1.1)
20210420 021852 worker: Domain (localdomain)
20210420 021852 worker: wlan0 exists
20210420 021852 worker: Pi integrated wlan0 power save disabled
20210420 021852 worker: wifi country (AU)
20210420 021852 worker: wlan0 SSID is blank
20210420 021852 worker: eth0 addr exists, AP mode not started
20210420 021852 worker: wlan0 address not assigned
20210420 021852 worker: -- Audio
20210420 021852 worker: ALSA card number (2)
20210420 021852 worker: MPD audio output (USBStreamer)
20210420 021852 worker: Audio formats (S16_LE, S32_LE)
20210420 021852 worker: ALSA mixer name (USBStreamer )
20210420 021852 worker: MPD volume control (software)
20210420 021852 worker: Hdwr volume controller exists
20210420 021852 worker: Max ALSA volume (100%)
20210420 021852 worker: Reset renderer active flags
20210420 021852 worker: CamillaDSP (flat.yml)
20210420 021852 worker: -- MPD
20210420 021852 worker: MPD started
20210420 021853 worker: MPD accepting connections
20210420 021853 worker: MPD output 1 ALSA Default (off)
20210420 021853 worker: MPD output 2 ALSA Crossfeed (off)
20210420 021853 worker: MPD output 3 ALSA Parametric EQ (off)
20210420 021853 worker: MPD output 4 ALSA Graphic EQ (off)
20210420 021853 worker: MPD output 5 ALSA Polarity Inv (off)
20210420 021853 worker: MPD output 6 ALSA CamillaDSP (on)
20210420 021853 worker: MPD output 7 ALSA Bluetooth (off)
20210420 021853 worker: MPD output 8 HTTP Server (off)
20210420 021853 worker: MPD crossfade (off)
20210420 021853 worker: MPD ignore CUE files (yes)
20210420 021853 worker: -- Feature availability
20210420 021853 worker: Source select (available)
20210420 021853 worker: Source select (source: MPD)
20210420 021853 worker: Source select (output: USBStreamer)
20210420 021853 worker: Bluetooth (available)
20210420 021853 worker: Airplay renderer (available)
20210420 021853 worker: Spotify renderer (available)
20210420 021853 worker: Squeezelite (available)
20210420 021853 worker: RoonBridge renderer (not installed)
20210420 021853 worker: UPnP renderer (available)
20210420 021853 worker: DLNA server (available)
20210420 021853 worker: UPnP browser (available)
20210420 021853 worker: GPIO button handler (available)
20210420 021853 worker: Stream recorder (n/a)
20210420 021853 worker: -- Music sources
20210420 021853 worker: USB source (383D-6A65)
20210420 021853 worker: NAS and UPnP sources (none configured)
20210420 021853 worker: -- Miscellaneous
20210420 021853 worker: USB volume knob (Off)
20210420 021853 worker: USB auto-mounter (udisks-glue)
20210420 021853 worker: LED0 (On)
20210420 021853 worker: LED1 (On)
20210420 021853 worker: Saved MPD vol level (0)
20210420 021853 worker: Preamp volume level (0)
20210420 021853 worker: MPD volume level (31) restored
20210420 021853 worker: ALSA USBStreamer volume (100%)
20210420 021853 worker: Auto-play (Off)
20210420 021853 worker: Maintenance interval (3 hrs)
20210420 021853 worker: Screen saver activation (Never)
20210420 021854 worker: Session permissions (OK)
20210420 021854 worker: Watchdog started
20210420 021854 worker: Ready
20210420 022030 worker: Job mpdrestart