In addition to Michael's major fix - do you have this commit in your CDSP build
https://github.com/HEnquist/camilladsp/commit/9a7afb4c887eb1dffe66f32082cb0ee35091c040 ?
Also - using SPDIF for this type of communication is not the best way, USB via USB gadget would be better. The reason is when incoming SPDIF stream stops, the capture alsa device read by CDSP will just cease providing samples. CDSP will have to time out and handle the issue. While USB gadget would report the rate change immediately (because the host player sends a specific info about stopping the stream to the device) and CDSP (via its controller) could react accordingly right away. Yes, CDSP can pause after repeated device read timeout (after some further non-trivial timeout defined by the silence_timeout param), but it may affect overall latency and some devices do not work nicely with upon unpausing. It's always better to avoid automatic pausing/unpausing, if possible.
Henrik did a great job with documenting the config options
https://github.com/HEnquist/camilladsp?tab=readme-ov-file#configuration , it's IMO a must read for more complex chains like yours. CDSP can do many things and default config values cannot encompass any arbitrary chain.