- Joined
- Sep 18, 2020
- Messages
- 28
- Likes
- 28
Hello Everyone,
I am posting on this as people have been messaging me about how to use CamillaDSP with a Pi4 or any linux based system to turn the Motu M4 or any other audio interface into a very powerfull DSP. I use this for a 2.2 system with Genelec 8030s and two 8" DIY subwoofers.
This won't be a fully comprehensive guide but I just want to share my experience and maybe open a place where ideas on this can be exchanged. Also, I am no longer running this on a pi but everything should also apply to a Pi.
This is the setup I use to run Roon. I now use one device as server and streamer but it makes no difference for this whether you can a Roon server or only a Roon bridge.
I love this system it basically is as powerfull as a MiniDSP SHD for a fraction of the price. Sure, it needs much more tinkering but that's halve the fun. Has anybody else tried somethign similar I'd be courious to hear experiences. Also, I still have one issue I cannot figure out camilladsp randomly roughly once an hour which is why I set it up as a service so it is restarted immediately than it only causes a very brief blip.
I am posting on this as people have been messaging me about how to use CamillaDSP with a Pi4 or any linux based system to turn the Motu M4 or any other audio interface into a very powerfull DSP. I use this for a 2.2 system with Genelec 8030s and two 8" DIY subwoofers.
This won't be a fully comprehensive guide but I just want to share my experience and maybe open a place where ideas on this can be exchanged. Also, I am no longer running this on a pi but everything should also apply to a Pi.
This is the setup I use to run Roon. I now use one device as server and streamer but it makes no difference for this whether you can a Roon server or only a Roon bridge.
- You need to install ubuntu server. For the pi you can use the Raspberry Pi Imager. I use ubuntu server as it comes with a newer kernel and in my experiance I could only get the Motu M4 to work well with kernel 5.11 onward. I think somebody contributed a patch for the Motu M4
- Get camilladsp form here and compile it as described
- create a loopback device to reroute CamillaDSP to
-
Code:
sudo modprobe snd-aloop
-
- create a camilaDSP config file. Instructions can be found on the github page. A basic file for 2.2 system with a crossover at 85hz looks like this (of course you'd have to change the used device names):
-
Code:
devices: samplerate: 192000 chunksize: 4096 enable_resampling: false capture: type: Alsa channels: 2 device: "hw:CARD=Loopback,DEV=1" format: S24LE playback: type: Alsa channels: 4 device: "hw:CARD=M4" format: S32LE mixers: to4chan: channels: in: 2 out: 4 mapping: - dest: 0 sources: - channel: 0 gain: 0 inverted: false - dest: 1 sources: - channel: 1 gain: 0 inverted: false - dest: 2 sources: - channel: 0 gain: 0 inverted: false - dest: 3 sources: - channel: 1 gain: 0 inverted: false filters: highpass2k: type: Biquad parameters: type: Highpass freq: 85 q: 0.707 lowpass2k: type: Biquad parameters: type: Lowpass freq: 85 q: 0.707 pipeline: - type: Mixer name: to4chan - type: Filter channel: 0 names: - highpass2k - type: Filter channel: 1 names: - highpass2k - type: Filter channel: 2 names: - lowpass2k - type: Filter channel: 3 names: - lowpass2k
-
- Set up CamillaDSP as a system service by creating the following file
-
Code:
sudo nano /lib/systemd/system/camilladsp.service
- And Add the following while chaning the location for camilladsp and the config file
-
Code:
After=syslog.target StartLimitIntervalSec=10 StartLimitBurst=10 [Service] Type=simple ExecStart=/home/armin/camilladsp/target/release/camilladsp /home/armin/camillad> Restart=always RestartSec=1 StandardOutput=syslog StandardError=syslog SyslogIdentifier=camilladsp User=root Group=root CPUSchedulingPolicy=fifo CPUSchedulingPriority=10 [Install] WantedBy=graphical.target
-
- Now if you use Roon like me you just need to install roon bridge or server and you're all set there should be too Loopback devices detected by Roon. You'll just have to try which one is the correct one for playback.
- For spotify you could use librespot and for Tidal connect this worked for me when I tested it
I love this system it basically is as powerfull as a MiniDSP SHD for a fraction of the price. Sure, it needs much more tinkering but that's halve the fun. Has anybody else tried somethign similar I'd be courious to hear experiences. Also, I still have one issue I cannot figure out camilladsp randomly roughly once an hour which is why I set it up as a service so it is restarted immediately than it only causes a very brief blip.