How to configure the ESAI TX0 and TX1 output different audio source?

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

How to configure the ESAI TX0 and TX1 output different audio source?

1,113 Views
jianansun
Contributor II

Hi all,

          

kernel 3.10.53:

pinctrl_esai_3: esaigrp-3 {
 fsl,pins = <
MX6QDL_PAD_GPIO_6__ESAI_TX_CLK 0x1b030
MX6QDL_PAD_GPIO_2__ESAI_TX_FS 0x1b030

MX6QDL_PAD_GPIO_7__ESAI_TX4_RX1 0x1b030
MX6QDL_PAD_GPIO_8__ESAI_TX5_RX0 0x1b030
MX6QDL_PAD_GPIO_17__ESAI_TX0 0x1b030

MX6QDL_PAD_GPIO_18__ESAI_TX1 0x1b030
>;
};

I want TX0 and TX1 to output different audio data.      Is it possible to do that?

What should be configured in the driver?

Thanks

Labels (2)
Tags (1)
2 Replies

602 Views
igorpadykov
NXP Employee
NXP Employee

Hi jianan

seems this is possible, please refer to description in

sect.26.6.1 ESAI Transmit Data Register (ESAI_ETDR) i.MX6SDL Reference Manual

When multiple ESAI transmitters are enabled, the data for each
transmitter must be interleaved from lowest transmitter to highest transmitter (for example, if transmitters
0, 2 and 3 are enabled then data must be written as follows: transmitter #0, transmitter #2, transmitter #3,
transmitter #0, transmitter #2, transmitter #3, transmitter #0, etc). Data within the ESAI Transmit FIFO is
passed to the ESAI transmit shifter registers as defined by the Transmit Word Alignment configuration bits.

http://www.nxp.com/assets/documents/data/en/reference-manuals/IMX6SDLRM.pdf 

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

0 Kudos

602 Views
cuibo
Contributor II

hi , igorpadykov &#21592;&#24037; 

       Thank you very much for your reply , Can you make it more detailed, for example 

0 Kudos