SAI TDM configuration and driver access

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SAI TDM configuration and driver access

1,032 Views
STod
Contributor I

Hello to all!

I'm new to i.MX procs, and I'm working on a Variscite SOM (VAR-SOM-MX8), with Variscite Debian Buster release o.s. installed.

 

I need to configure SAI in TDM mode, to interface with two TLV320AIC22 codecs.

By reading this post, I understand that I need to modify the fsl_sai.c driver.

But do I need to modify also any dts file? If so, which one(s)? And how?

And after changes, how I can access to codecs' channels through driver?

 

Thanks to anyone who will answer! References or links to documentation are also fine.
Please let me know if further information are required.

 

0 Kudos
Reply
1 Reply

1,014 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello STod,

8MMini does support PCM interface on SAI peripheral.

 

As mention in RM:

The I2S (or I2S) module provides a synchronous audio interface (SAI) that supports fullduplex
serial interfaces with frame synchronization such as I2S, AC97, TDM, and
codec/DSP interfaces.

Depending on the configuration of the signals in the registers, SAI can be used as PCM interface.

For example, in our default BSP release we use SAI1 to transmit PCM or DSD (on 8MMini and its compatible Audio Board). this is automatically done in the dtb, you need to check if this is configured to your board.

Regards

 

0 Kudos
Reply