SAI TDM configuration and driver access

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SAI TDM configuration and driver access

862件の閲覧回数
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 件の賞賛
1 返信

844件の閲覧回数
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 件の賞賛