I am currently trying to integrate a pcm1865 codec with tegra asoc. I have managed to get I2S mode working by modifying pcm186x codec driver (albeit quite crude and hacky at the minute), the tegra_t186ref_mobile_rt565x machine driver and the device tree.
capture format: 4 channel S16_LE
codec bitclock/frame master.
sysclock source is TX2 @ 12288000
codec sck -> bck ratio: 1/4
codec bck -> lrclk ratio: 1/64
I have scoped the clocks, they are good. I have scoped i2s_in and all the 4 channels are there.
In 4 channel TDM mode i have mapped ADMAIX1 Mux -> ADX1-1, ADMAIX2 Mux -> ADX1-2, ADMAIX3 Mux -> ADX1-3, ADMAIX4 Mux -> ADX1-4. I have also mapped ADX1 Mux -> I2S1.
The above ADX demuxing doesnt appear to work. The DAPM routes are correct (i think) and the codec params are called correctly. No audio heard.
If i dont route the ADXs(and MAP ADMAIF1 MUX with I2S1). I can hear ADC1_R channel.
Any thoughts or guidance on using the ADX?