IMX8m Mini Same audio stream out multiple SAI data lines

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

IMX8m Mini Same audio stream out multiple SAI data lines

2,171件の閲覧回数
injaneer1
Contributor II

Our board has 2 codecs to drive either left/right or tweeters/woofer.  The two codecs are wired to SA1_TX0 and SA1_TX1.  I have already created codec and platform drivers and have all this working.  I am able to transmit audio to the first codec on SA1_TX0.  I am trying to configure and setup so we send the same audio (2 channel) to both the SA1_TX0 and SA1_TX1 lines.

I have found in the fsl_sai.c file where the channels are pins are calculated based off the slots/channels.  The only way I have been able to enable the SA1_TX1 pin, is by telling the driver I have 4 channels of audio (which we do not). This causes both lines to work, but with only 2 channel audio, it is stop/go as you would imagine.

Is it possible to have the same audio going to two different TX pins on one SAI ?  And if so, how is this accomplished.


Thanks,

Chris

0 件の賞賛
返信
7 返答(返信)

1,928件の閲覧回数
injaneer1
Contributor II

Ok,

 

I finally got this working. I had to setup the audio policy as QUAD mode instead of stereo then add a check for that under the primary output to force the correct channels and channel max. Then using the mentioned copy mode like for 5.1 and 7.1 created a dual stereo or 2.2 output mode.

If anyone needs this, just let me know.

0 件の賞賛
返信

1,941件の閲覧回数
injaneer1
Contributor II

Can anyone help with this topic ?

0 件の賞賛
返信

2,051件の閲覧回数
jamesbone
NXP TechSupport
NXP TechSupport

Are you using ALSA to perform this task?  if not, you need to remember that the i.MX device has an AudioMux  module that need to be configure and we recommend to use the Linux BSP + ALSA to handle the codecs

 

 

 

0 件の賞賛
返信

2,048件の閲覧回数
injaneer1
Contributor II

We are using Also in Android 10.  Can you share the configuration for the AudioMux to accomplish the same audio on two data lines on the same SAI.

Thanks,

0 件の賞賛
返信

2,037件の閲覧回数
jamesbone
NXP TechSupport
NXP TechSupport

You can take a look into the following application note, it is from an i.MX6, but it is the same module an apply for the i.MX8

 

http://www.nxp.com/docs/en/application-note/AN4952.pdf 

 

 

0 件の賞賛
返信

2,034件の閲覧回数
injaneer1
Contributor II

I do not see how t his document is relevant.  This does not describe using Alsa audiomux.  I am using SAI1 data lines 0 and 1, so they have the same bit and word clocks so there is no 2nd clock to configure ?

0 件の賞賛
返信

2,136件の閲覧回数
injaneer1
Contributor II

I have found this post, and it seems I am running in the correct mode of 10 for FCOMB, but do not get the results I see in this diagram under C ?

https://community.nxp.com/t5/i-MX-RT/How-can-I-configure-multi-channel-SAI-using-edma/m-p/968632

 

0 件の賞賛
返信