imx6 for esai data config

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

imx6 for esai data config

562 Views
skylong
Contributor I

HI  NXP,

For this imx6 with android7. 

and we are using esai with i2s bus.  so this esai of PCM data format.  how we can config this PCM's channel with different situations?

eg:

4 channels for media function.

2 channels for navi function.

as this eg., how to config this PCM format, and where is this config file.

BR

Thanks

Tags (1)
0 Kudos
2 Replies

381 Views
igorpadykov
NXP Employee
NXP Employee

Hi sky

please refer to additional documentation

AN1848 ESAI Programming and Interfacing Techniques Application Note

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

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

381 Views
skylong
Contributor I

Hi igorpadykov,

For this case of HW detail hw information:

esai pin:  Tx0, Tx1, Bclk, LRCK, mclk.    as this 5 PIN, we only create one sound card with one playback devices.

so if we want to use TX0 playback mono audio and use TX1 playback stereo.  and we want to playback two type source sound at the same time through TX0, TX1.

For this case, i have more questions:

1. how to config this PCM data channel to adjust to this:

    2slots: channel_0(Left), channel_2(Right) playback Tx0.   channel_1(Left), channel_3(Right) playback with Tx1.

2, is this android need to create 4 channel data to write to audio hal?

3, how to enable one device work with four channel mode? any SW code guide?

BR

Thanks

0 Kudos