Thank you for your donation!


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


[split] CamillaDSP - MPD error failed to open audio output
#1
Hi
I would like to join the discussion because I am also having trouble getting CamiliaDSP to work. When DSP is enabled I get the message "MPD error failed to open audio output" regardless of whether I am using USB output (DAC), HDMI output, or jack output.

I should add that when using Moodeaudio without DSP enabled, on standard settings i.e. Output device: Cambridge AudioDAC, Volume type: Software everything works as expected.

Below I'm posting an extract with the system data

I have tried various solutions included in this thread, but nothing worked. Is it possible that I am trying to run Camilla on a Raspberry that is too old. Theoretically, the specification of my raspberry matches the minimum requirements.

Code:
20230317 131051 worker: --
20230317 131051 worker: -- Start moOde 8 series
20230317 131051 worker: --
20230317 131051 worker: Successfully daemonized
20230317 131052 worker: Boot config backed up
20230317 131056 worker: File check (OK)
20230317 131059 worker: Session vacuumed
20230317 131059 worker: Session loaded
20230317 131059 worker: Debug logging (OFF)
20230317 131059 worker: --
20230317 131059 worker: -- Audio debug
20230317 131059 worker: --
20230317 131059 worker: ALSA cards: (0:b1 | 1:Headphones | 2:C2 | 3:empty
20230317 131059 worker: MPD config: (2:Cambridge AudioDAC100 USB 2 | mixer:(PCM) | card:2)
20230317 131059 worker: ALSA mixer actual (PCM)
20230317 131059 worker: ALSA PCM volume set to (amixer: Unable to find simple control 'PCM',0)
20230317 131059 worker: --
20230317 131059 worker: -- System
20230317 131059 worker: --
20230317 131102 worker: Host      (moode)
20230317 131102 worker: Hardware  (Pi-2B 1.1 1GB)
20230317 131102 worker: moOde     (8.3.0 2023-03-14)
20230317 131102 worker: RaspiOS   (11.6)
20230317 131102 worker: Kernel    (5.15.84-v7+ #1613)
20230317 131102 worker: Procarch  (armv7l, 32-bit)
20230317 131102 worker: MPD ver   (0.23.12)
20230317 131102 worker: CPU gov   (ondemand)
20230317 131102 worker: USB boot  (not available)
20230317 131102 worker: File sys  (expanded)
20230317 131102 worker: HDMI port (On)
20230317 131102 worker: Sys LED0  (On)
20230317 131102 worker: Sys LED1  (On)
Reply
#2
To troubleshoot try the following to see if it's possible to get some insight into why CamillaDSP fails to open the audio output.

Code:
1. Set MPD to verbose logging in MPD Config

2. Clear the MPD log file
sudo truncate /var/log/mpd/log --size 0

3. Play a track or station with CamillaDSP enabled

4. Examine the MPD log for errors
cat /var/log/mpd/log
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
@fatedgar @Tim Curtis if I remember well currently the moOde build of camilladsp doesn't support lower then Pi 3.
Reply
#4
(03-18-2023, 09:11 AM)bitlab Wrote: @fatedgar @Tim Curtis if I remember well currently the moOde build of camilladsp doesn't support lower then Pi 3.

I seem to recall something similar. In any case below is an MPD log from a 2B. It looks like maybe alsa-cdsp is not able to start camilla?

Code:
Mar 18 06:44 : client: [8] process command "play"
Mar 18 06:44 : alsa_output: opened _audioout type=COPY
Mar 18 06:44 : alsa_output: buffer: size=3840..262144 time=87074..5944309
Mar 18 06:44 : alsa_output: period: size=1920..131072 time=43537..2972155
Mar 18 06:44 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Mar 18 06:44 : alsa_output: format=S24_LE (Signed 24 bit Little Endian)
Mar 18 06:44 : alsa_output: buffer_size=22050 period_size=5512
Mar 18 06:44 : output: opened "ALSA Default" (alsa) audio_format=44100:24:2
Mar 18 06:44 : client: [8] command returned 0
Mar 18 06:44 : client: [8] process command "close"
Mar 18 06:44 : client: [8] command returned 4
Mar 18 06:44 : client: [8] closed
Mar 18 06:44 : client: [7] process command "status"
Mar 18 06:44 : client: [7] command returned 0
Mar 18 06:44 : client: [4] process command "status"
Mar 18 06:44 : client: [4] command returned 0
Mar 18 06:44 : client: [4] process command "currentsong"
Mar 18 06:44 : client: [4] command returned 0
Mar 18 06:44 : client: [7] process command "currentsong"
Mar 18 06:44 : client: [7] command returned 0
Mar 18 06:44 : output: Failed to play on "ALSA Default" (alsa): snd_pcm_poll_descriptors_revents() failed: No such device
no pid file present!
ALSA lib libasound_module_pcm_cdsp.c:869:(cdsp_hw_free) Error executing camilla_exit_cmd /usr/local/bin/cdspstorevolume

Mar 18 06:44 : output: closed "ALSA Default" (alsa)
Mar 18 06:44 : exception: Failed to open audio output
Mar 18 06:44 : client: [7] process command "close"
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: