We are using ADV7612 and for audio we support only I2S mode packets. We support multi-channel audio which can vary from 1 stereo to 4 stereo channels and for supporting this use-case we need to identify how many valid audio channels are detected by the device. For example if the device gets 2 stereo channels, then valid audio will be present on which 4 channels out of the 8? We see the status data is only for audio channel 0 CS_DATA[39:0] (Address 0x36-0x3A). Another register is AUDIO_CH_MD_RAW which indicates if 2-channel audio data or multichannel audio data is received. Is there a register which woul tell the exact number of valid audio channels detected?
Let's say if 6 mono audio channels are present, will they be automatically mapped to the first three I2S output lines AP1:AP3?