AnsweredAssumed Answered

IMX6UL, linux configuration for two codecs on a single SAI

Question asked by Miguel Sebastián on May 3, 2019
Latest reply on May 9, 2019 by Miguel Sebastián

Hi there,

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:, 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.