Sigma Studio signal routing

Hi community!

I´m new to Sigma Studio, please excuse my poor knowledge.

In my projekt, I use the ADAU1452 with 3 different inputs. I would like to detect where a new signal is coming from and initialize an automatic swichting to the output. For example, when I play music via AUX and start streaming, the DSP detects the signal and switches. The data controlled Crossfade function seems to do that, I just don´t understad how to implement a RMS Table.

Any help is very much appreciated!