I have a DIGI+ I/O Hat with a RPi3B+.
I am looking for "Starter" software configuration to modify. My goal is to pass-through digital PCM audio from the SPDIF input through to the SPDIF output, while analyzing the sample payload data to see if there is any active audio. When audio is silent/inactive, I am controlling a USB relay to drive a 12V power control trigger to downstream DACs and AMPs in a multi-zone home environment.
Does anyone have any suggestions on a starter software configuration (with source code) that I can use to modify for this application?