I need your support, I didn't find a solution yet:
- I would like to detect a signal input coming from the optical input and when it is true drive the Router Index to the corresponding source (in my case is Mix2)
- I tried to use the Signal Detection block, it can drive the GPIO but I don't find the way to select the Optical source internally into DSP
- I use the Router Index to change te source, maybe there is a better way to do it with Signal Detection or whatever
Please someone can help me?
I forget which DSP you are using?
I will insert two projects. Both are for the Sigma300 or 350. (ADAU1452, or the ADAU146x parts)
This first one detects when lock is lost and mutes the audio from the ASRC. You must use the ASRC with the SPDIF input so this will work for that purpose. You can take the signal developed and use it to automatically switch the signals instead of a volume control.
8204.ADAU1452 ASRC Lock Detect Example.zip
This next one was developed for a slightly different purpose but it shows you how to do the switching. This one monitors the ASRC and if the ratio is 1:1 then the incoming I2S signals are at the same sample rate so it switches to the serial input port directly. If the sample rate is not the same then it switches to the ASRC that is taking its signal from the same serial port. So this program is watching the ratio on the ASRC and controlling a switch based on the findings.
ADAU1452 ASRC Lock Detect and Ratio Detect Example.zip
Between both of these programs you can see how to do what you need to do.
If you are not on these DSPs then you cannot do this. All the other SigmaDSPs cannot read their own registers.