I am working on a custom platform with a iMX6UL processor. I need to connect two codecs, each one with two DACs and two ADCs, to the same SAI. I need to send/receive pcm data to/from both codecs simultaneously, so I need to use TDM mode with 4 words.
I am not being able to write a correct device tree: if I set two dai-links (something similar to this link: https://community.nxp.com/message/1126123?commentID=1126123#comment-1126123), one for each codec, I cannot use both simultaneously. An error is displayed for the second playback, saying that sai is already in use.
Is it possible to use sai + tdm + 2 codecs simultaneously with current linux drivers of SAI? How should I configure the device tree?
Any help will be highy appreciated.