Wirrunna
New Member
Thread Starter
- Joined
- Jul 5, 2020
- Posts
- 11
More
- Preamp, Processor or Receiver
- NAD C725BEE
- Front Speakers
- Klipschorns
A RPi4/5 can be configured as a USB input / output device, this is known as a USB gadget.
Raspberry Pi configured to Gadget Mode appears as an output device to REW running in Win 11. This mode simplifies loudspeaker testing if the Raspberry Pi is running CamillaDSP as the signal remains in the digital mode - no analog cables and conversions.
In testing REW connected to a RPi5 -
Preferences/Soundcard: with the output device "EXCL: Speakers (3- Source/Sink)" sample rate at 48kHz, the Check Levels routine can be started and the calibration signal is received by the RPi and played. The Check Levels can then be stopped, level adjusted and played and stopped. CamillaDSP (CDSP) state goes from "Stalled" while waiting for a signal, to "Running" when the calibration signal is present, CDSP log shows:
2025-01-31 13:22:57.591430 INFO [src/alsadevice.rs:792] Capture device supports rate adjust
2025-01-31 13:22:57.611507 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
2025-01-31 13:23:10.011419 INFO [src/alsadevice.rs:117] PB: Starting playback from Prepared state
2025-01-31 13:23:17.678074 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
2025-01-31 13:23:23.408887 WARN [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-01-31 13:23:28.192675 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
2025-01-31 13:23:33.811463 WARN [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-01-31 13:23:38.227287 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
This is working as expected.
Moving on to Make a Measurement, output device "EXCL: Speakers (3- Source/Sink)" sample rate at 48kHz. The Check Level will play, CDSP going from Stalled to Running and sound is heard, then at the end of the 3 second burst CDSP goes INACTIVE with log:
2025-01-31 14:23:45.714920 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
2025-01-31 14:23:57.893785 WARN [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-01-31 14:24:01.644637 ERROR [src/bin.rs:354] Capture stopped due to external format change
2025-01-31 14:24:01.644632 INFO [src/alsadevice.rs:983] Capture stopped
I suspect that REW is sending something different at the end of the 3 second Measurement / Check Level burst as compared to Preferences/Soundcard Check Level.
The same happens when the sample rate is set to 96k. CDSP won't start if the REW output device is not in EXCL mode.
However, after restarting CDSP, measurements can be made provided you don't run the Check Level, so I have adopted a procedure where I run the Preferences/Soundcard Check Level to wake the system up, then go to Measure / Make a Measurement , ignore Check Level, just press Start.
It would be good if the Measurement / Check Level did not put CamillaDSP into "inactive" state.
REW V5.40 Beta 67
Raspberry Pi configured to Gadget Mode appears as an output device to REW running in Win 11. This mode simplifies loudspeaker testing if the Raspberry Pi is running CamillaDSP as the signal remains in the digital mode - no analog cables and conversions.
In testing REW connected to a RPi5 -
Preferences/Soundcard: with the output device "EXCL: Speakers (3- Source/Sink)" sample rate at 48kHz, the Check Levels routine can be started and the calibration signal is received by the RPi and played. The Check Levels can then be stopped, level adjusted and played and stopped. CamillaDSP (CDSP) state goes from "Stalled" while waiting for a signal, to "Running" when the calibration signal is present, CDSP log shows:
2025-01-31 13:22:57.591430 INFO [src/alsadevice.rs:792] Capture device supports rate adjust
2025-01-31 13:22:57.611507 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
2025-01-31 13:23:10.011419 INFO [src/alsadevice.rs:117] PB: Starting playback from Prepared state
2025-01-31 13:23:17.678074 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
2025-01-31 13:23:23.408887 WARN [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-01-31 13:23:28.192675 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
2025-01-31 13:23:33.811463 WARN [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-01-31 13:23:38.227287 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
This is working as expected.
Moving on to Make a Measurement, output device "EXCL: Speakers (3- Source/Sink)" sample rate at 48kHz. The Check Level will play, CDSP going from Stalled to Running and sound is heard, then at the end of the 3 second burst CDSP goes INACTIVE with log:
2025-01-31 14:23:45.714920 INFO [src/alsadevice.rs:970] Capture device is stalled, processing is stalled
2025-01-31 14:23:57.893785 WARN [src/alsadevice.rs:113] PB: Prepare playback after buffer underrun
2025-01-31 14:24:01.644637 ERROR [src/bin.rs:354] Capture stopped due to external format change
2025-01-31 14:24:01.644632 INFO [src/alsadevice.rs:983] Capture stopped
I suspect that REW is sending something different at the end of the 3 second Measurement / Check Level burst as compared to Preferences/Soundcard Check Level.
The same happens when the sample rate is set to 96k. CDSP won't start if the REW output device is not in EXCL mode.
However, after restarting CDSP, measurements can be made provided you don't run the Check Level, so I have adopted a procedure where I run the Preferences/Soundcard Check Level to wake the system up, then go to Measure / Make a Measurement , ignore Check Level, just press Start.
It would be good if the Measurement / Check Level did not put CamillaDSP into "inactive" state.
REW V5.40 Beta 67
Attachments
Last edited: