• Welcome to ASR. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

RPi + CamillaDSP Tutorial

I believe it has something to do with the Master control missing. Why it is missing, and why trying to add it manually failed, I don't know. What type of Raspberry Pi are you running (e.g., zero, 2, 3, etc.)?

Raspberry Pi 4 Model B Rev 1.1
 
Here is my base configuration, without filters. Perhaps it may help. (EDIT: the indentations aren't showing up in the post, so I don't think it can just be copied and pasted):

description: In Office
devices:
adjust_period: 3
capture:
channels: 2
device: hw:UAC2Gadget,0,0
format: S32LE
labels: null
link_mute_control: null
link_volume_control: null
stop_on_inactive: null
type: Alsa
capture_samplerate: null
chunksize: 1024
enable_rate_adjust: true
multithreaded: null
playback:
channels: 2
device: hw:AUDIO,0,0
format: S32LE
type: Alsa
queuelimit: null
rate_measure_interval: null
resampler: null
samplerate: 192000
silence_threshold: -100
silence_timeout: 30
stop_on_rate_change: null
target_level: 3072
volume_limit: null
volume_ramp_time: null
worker_threads: null
filters: {}
mixers:
to2chan:
channels:
in: 2
out: 2
description: null
labels: null
mapping:
- dest: 0
mute: false
sources:
- channel: 0
gain: 0
inverted: false
mute: false
scale: dB
- dest: 1
mute: false
sources:
- channel: 1
gain: 0
inverted: false
mute: false
scale: dB
pipeline:
- bypassed: null
description: null
name: to2chan
type: Mixer
processors: {}
title: Office_No_Filters
 
@a.dobrynin : If you want to create a USB capture device (from the USB device POW, i.e. playback device on the USB host) with the gadget params c_xxx, that will logically create a capture gadget alsa device on the device. Then you need to check/list it with arecord -l, not aplay -l (which lists playback devices only).
 
Thank you very much for your help. I'll try to figure out what's wrong and why it's not working. I'll let you know the results.
There is one think I forgot to ask? Are you making sure that your samplerate (at the top of the Devices tab) is set to the samplerate of the audio stream being sent by the WiiM?

I stream Tidal, but when set to maximum fidelity Tidal streams songs at whatever samplerate they are recorded at. If the samplerate in CamillaDSP is not set to the same samplerate Tidal is streaming, the audio will be garbled or will not play at all.

If that turns out to be the issue, you can install camilladsp-setrate. But, first, determine whether that is the issue.

Also, listen to phofman. He knows a LOT more about this than I.
 
@a.dobrynin : If you want to create a USB capture device (from the USB device POW, i.e. playback device on the USB host) with the gadget params c_xxx, that will logically create a capture gadget alsa device on the device. Then you need to check/list it with arecord -l, not aplay -l (which lists playback devices only).
dobrynin.a@camilladsp:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: UAC2Gadget [UAC2_Gadget], device 0: UAC2 PCM [UAC2 PCM]
Subdevices: 1/1
Subdevice #0: subdevice #0
dobrynin.a@camilladsp:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/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 2: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
 
My log:

2025-11-23 23:47:32.880129 INFO [src/bin.rs:781] CamillaDSP version 3.0.1
2025-11-23 23:47:32.880190 INFO [src/bin.rs:782] Running on linux, aarch64
2025-11-23 23:50:58.567565 WARN [src/audiodevice.rs:530] Resampling is disabled and capture_samplerate is different than samplerate, ignoring capture_samplerate.
2025-11-23 23:50:58.568722 ERROR [src/bin.rs:293] Playback error: ALSA function 'snd_pcm_open' failed with error 'No such file or directory (2)'
2025-11-23 23:50:58.569803 INFO [src/alsadevice.rs:798] Capture device supports rate adjust
2025-11-23 23:50:58.570095 INFO [src/processing.rs:119] Playback thread has already stopped.
2025-11-23 23:51:02.549016 WARN [src/audiodevice.rs:530] Resampling is disabled and capture_samplerate is different than samplerate, ignoring capture_samplerate.
2025-11-23 23:51:02.549618 ERROR [src/bin.rs:293] Playback error: ALSA function 'snd_pcm_open' failed with error 'No such file or directory (2)'
2025-11-23 23:51:02.550582 INFO [src/alsadevice.rs:798] Capture device supports rate adjust
2025-11-23 23:51:02.550850 INFO [src/processing.rs:119] Playback thread has already stopped.
2025-11-23 23:51:10.568219 ERROR [src/socketserver.rs:1195] Error validating config: Pipeline outputs 3 channels, playback device has 2.
2025-11-23 23:51:12.072660 WARN [src/audiodevice.rs:530] Resampling is disabled and capture_samplerate is different than samplerate, ignoring capture_samplerate.
2025-11-23 23:51:12.073250 ERROR [src/bin.rs:293] Playback error: ALSA function 'snd_pcm_open' failed with error 'No such file or directory (2)'
2025-11-23 23:51:12.074202 INFO [src/alsadevice.rs:798] Capture device supports rate adjust
2025-11-23 23:51:12.074399 INFO [src/processing.rs:119] Playback thread has already stopped.
2025-11-23 23:51:31.049773 WARN [src/audiodevice.rs:530] Resampling is disabled and capture_samplerate is different than samplerate, ignoring capture_samplerate.
2025-11-23 23:51:31.050848 ERROR [src/bin.rs:293] Playback error: ALSA function 'snd_pcm_hw_params_set_format' failed with error 'Invalid argument (22)'
2025-11-23 23:51:31.051656 INFO [src/alsadevice.rs:798] Capture device supports rate adjust
2025-11-23 23:51:31.051857 INFO [src/processing.rs:119] Playback thread has already stopped.
 
Just read the errors in the log:
2025-11-23 23:50:58.568722 ERROR [src/bin.rs:293] Playback error: ALSA function 'snd_pcm_open' failed with error 'No such file or directory (2)'
The playback device specified in your CDSP config does not exist.

2025-11-23 23:50:58.567565 WARN [src/audiodevice.rs:530] Resampling is disabled and capture_samplerate is different than samplerate, ignoring capture_samplerate.

Likely you specified a different capture_samplerate in your config but have not enabled any resampler.

I would recommend to read the CDSP manual for important config info https://github.com/HEnquist/camilladsp/?tab=readme-ov-file#configuration , it's VERY useful.
 
Last edited:
Hi. I have a problem(?) which is that sometimes when I start my work day, CDSP is dead and I need to reboot (this is the fastest way for my desk) the device to get it on again. This problem has been with me for a long time, but today I actually got time to look at the logs. The device is still in this state, so I might be able to get more details of needed. Sorry for the long post, it's difficult to edit on a phone.

The device is connected to a dock of a laptop and powered through the USB, so during workweek it's on 24/5, but I usually turn off my laptop for the weekend, which was the case now. But the dock has it's own power supply, so I cannot tell if the Raspi Zero 2W was powered or not. uptime command gives only a couple of hours, so maybe it was off.

Looking at service status, we can see it's dead:
Code:
~/camilladsp $ sudo systemctl status camilladsp.service
○ camilladsp.service - CamillaDSP
     Loaded: loaded (/lib/systemd/system/camilladsp.service; enabled; preset: enabled)
     Active: inactive (dead)

Last lines of the services log looks like this. Strange that the log ends at 18th although it was powered and operational the whole last work week.
Code:
$ journalctl -u camilladsp

...
Nov 18 08:44:50 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:44:50 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:44:50 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:44:51 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 912.
Nov 18 08:44:51 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:44:51 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:44:51 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:44:52 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 913.
Nov 18 08:44:52 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:44:52 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:44:52 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:44:54 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 914.
Nov 18 08:44:54 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:44:54 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:44:54 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:44:55 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 915.
Nov 18 08:44:55 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:44:55 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:44:55 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:44:56 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 916.
Nov 18 08:44:56 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:44:56 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:44:56 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:44:57 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 917.
Nov 18 08:44:57 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:44:57 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:44:57 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:44:59 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 918.
Nov 18 08:44:59 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:44:59 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:44:59 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:45:00 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 919.
Nov 18 08:45:00 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:45:00 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.
Nov 18 08:45:00 rpiz-camilla systemd[1]: camilladsp.service: Deactivated successfully.
Nov 18 08:45:01 rpiz-camilla systemd[1]: camilladsp.service: Scheduled restart job, restart counter is at 920.
Nov 18 08:45:01 rpiz-camilla systemd[1]: Stopped camilladsp.service - CamillaDSP.
Nov 18 08:45:01 rpiz-camilla systemd[1]: Started camilladsp.service - CamillaDSP.

CamillaDSP log:
Code:
2025-11-18 08:45:01.712838 INFO  [src/bin.rs:781] CamillaDSP version 3.0.1
2025-11-18 08:45:01.713020 INFO  [src/bin.rs:782] Running on linux, aarch64
2025-11-18 08:45:01.726943 INFO  [src/alsadevice.rs:798] Capture device supports rate adjust
2025-11-18 08:45:01.733227 INFO  [src/alsadevice.rs:117] PB: Starting playback from Prepared state
2025-11-18 08:45:12.143254 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 08:59:34.050273 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 09:45:46.426300 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 09:45:47.350799 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 10:00:33.577343 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 10:00:33.788899 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 11:07:12.686279 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 11:07:13.420094 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 11:07:28.984934 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 11:55:05.849009 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 11:55:17.211389 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 12:00:15.697650 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 13:01:09.719709 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 13:01:10.333826 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 13:01:26.054761 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 13:41:57.448818 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 13:42:07.184434 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 13:42:19.007106 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 16:42:35.686646 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 16:42:35.833537 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 16:42:57.026020 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 16:46:21.958394 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 16:46:31.666846 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 16:48:35.847571 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 16:48:45.760558 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 16:55:03.035178 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 16:55:15.679997 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:02:20.485414 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:02:28.668894 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:03:38.281197 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:03:48.157954 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:09:23.732549 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:09:41.349081 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:12:23.397354 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:12:30.592516 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:12:54.149633 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:13:12.016939 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:20:50.328176 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:21:08.996366 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:23:19.900341 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:23:29.741306 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:28:17.507829 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:28:27.419551 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:29:41.460523 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:29:51.403489 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:35:23.901515 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:35:37.938349 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:36:41.106196 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:36:51.048210 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 17:37:27.476622 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 17:37:37.443930 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 19:35:55.470500 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 19:36:05.048529 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-18 19:37:19.241354 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-18 19:37:29.197719 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 08:28:25.769109 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 08:28:37.153028 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 08:34:06.346174 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 08:34:16.032954 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 08:43:27.190272 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 08:43:38.570448 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 08:45:12.501698 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 08:45:22.365757 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 08:45:57.655938 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 08:46:07.611274 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 08:58:04.649682 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 08:58:14.505267 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 08:58:45.789054 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 08:58:55.756865 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 09:24:28.522909 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 09:24:39.902645 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 09:45:01.307023 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 09:45:12.672937 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 09:47:19.316440 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 09:47:29.124374 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 09:48:28.564776 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 09:48:38.516938 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 09:50:11.559324 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 09:50:21.491815 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 09:55:01.196123 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 09:55:12.584323 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 09:59:50.611126 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 11:12:58.369165 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 11:12:59.194485 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 11:13:19.717218 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 11:15:25.752422 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 11:15:35.580729 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 12:05:18.187142 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 12:05:38.152548 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 13:32:21.674796 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 13:32:50.046148 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 13:35:29.929152 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 13:35:41.303916 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 14:45:57.257283 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 14:46:06.927687 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 14:48:03.790504 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 14:48:13.737877 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 14:48:44.802926 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 14:48:54.782076 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 14:53:11.057791 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 14:53:36.465127 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 14:53:42.734231 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 14:54:00.374929 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 14:59:36.665727 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-19 14:59:48.051957 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-19 15:37:26.308758 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 08:45:10.534947 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 08:45:31.608883 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 08:59:46.605054 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 09:00:21.681265 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 09:39:23.753561 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 09:39:23.893919 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 09:39:40.087938 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 09:42:05.354110 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 09:42:14.841043 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 10:23:19.338919 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 10:23:30.729458 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 11:31:05.090197 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 11:51:54.312737 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 13:04:20.512456 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 14:26:59.557162 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 14:56:40.535719 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 15:04:42.215056 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 15:04:57.805108 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 16:26:11.400994 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-20 16:26:29.475034 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-20 17:17:48.396629 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 08:30:06.895924 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 08:32:45.088333 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 08:33:02.981079 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 09:35:52.037266 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 09:36:01.826545 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 09:44:18.381894 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 09:44:28.247331 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 09:56:24.471605 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 09:56:34.259000 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 10:12:58.235892 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 10:13:08.106096 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 10:15:24.286972 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 10:15:34.248341 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 15:05:21.376216 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 15:05:31.281858 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 15:05:36.848385 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 15:05:46.874576 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 15:06:36.178109 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 15:06:46.160591 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 15:07:05.027458 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 15:07:15.041142 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 15:07:56.567081 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 15:08:07.945262 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 15:09:59.316536 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 15:10:10.680209 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 15:41:37.690992 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 15:41:49.784685 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 16:15:08.309447 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 16:15:18.209899 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 16:19:33.617558 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 16:19:43.578637 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 16:29:28.713904 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 16:29:38.561944 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 16:29:42.417129 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 16:29:52.398433 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 16:37:09.923847 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 16:37:22.354773 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled
2025-11-21 16:40:25.308058 WARN  [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-11-21 16:40:35.263041 INFO  [src/alsadevice.rs:976] Capture device is stalled, processing is stalled

So CDSP log starts exactly where service log ends. This log was taken today (24th) and I've been trying to play Windows test tune, but the thing is silent and no additional log is generated.

And last bit, a screenie from the GUI, which still works:
1000026764.png

I tried saving the conf with a minor change, but no difference. Sometimes clicking Apply to DSP resolved issues, but now it's unavailable.

Is there some kind of maximum restart count or something? Should I schedule reboot every night?
 
Weeee... It worked. I don't know what exactly was magical, but I replaced the cable from the Wiim Ultra to the Raspberry Pi and the volume level was back to normal.

Now I'm off to learn how to create a filter in RePhase for 2.0 and 2.2 configurations. If anyone has any good tutorials, please share them.

And what's the most powerful computer available right now? Pi5? I want to achieve minimal latency with fairly long FIR filters.
 
I found the cause of the low volume—the miniDSP Flex Digital. I have a pair of Topping E70 Velvets connected to it. One is used for the front speakers, the other for the subs.
I understand that syncing two DACs together isn't possible, so a multichannel DAC is needed.
It's a shame the Topping DM7 isn't available :(

I checked the miniDSP settings and everything is at default. The issue is specifically when connecting the miniDSP to the Raspberry Pi. If you connect the Topping directly to the Raspberry Pi, there are no volume issues.
 
I found the cause of the low volume—the miniDSP Flex Digital. I have a pair of Topping E70 Velvets connected to it. One is used for the front speakers, the other for the subs.
I understand that syncing two DACs together isn't possible, so a multichannel DAC is needed.
Assuming you still have the Flex Digital driving both E70s via optical they will be in sync - the Flex Digital uses the same clock for both digital outputs.
 
Assuming you still have the Flex Digital driving both E70s via optical they will be in sync - the Flex Digital uses the same clock for both digital outputs.
Yes, I still have a miniDSP, but when connected through it, the volume level is too low. I set the volume to maximum on both the miniDSP and the Wiim.
 
Now I'm off to learn how to create a filter in RePhase for 2.0 and 2.2 configurations. If anyone has any good tutorials, please share them.

I have used rephase to create crossovers and phase correction filters for my system.
 

I have used rephase to create crossovers and phase correction filters for my system.
Thanks so much for the guide. I'm off to study and get started
What's your latency after correction?

I'm concerned about:
1. Low volume after using the miniDSP Flex Digital. The DACs are connected optically. Could this be a problem?
2. Which DAC should I choose? I need at least 4 channels, and I'd like a good one. I currently have an E70 Velvet and I like the sound.
 
I understand that syncing two DACs together isn't possible, so a multichannel DAC is needed.
It's a shame the Topping DM7 isn't available :(
Some DACs can use an external clock. But, the ones I have seen are expensive.

Okto Research makes an 8-channel DAC, the dac8 PRO. But, it also is pricey.

As soon as I heard Topping stopped production on the DM7 I ordered one to have on hand for future projects.
 
First of all, enormous thanks to mdsimon2 and all the other contributors who’ve shared their expertise on creating streaming and DSP in a rpi environment. I’ve realised that there is a great deal of technical terminology that I only half understand (e.g. usb gadget, clocks, resampling, latency, bitrate etc) and a lot of acronyms I don’t always catch, which means that even though I’ve managed to successfully do stuff (I’ve got Moode running a DAC8x to a 3 way active crossover) often I’m unsure of just what is going on. Can anyone recommend a good ‘beginner’s guide’ to digital audio that covers both the hardware and software aspects? That could help avoid me posting daft questions…
 
Back
Top Bottom