How to let ESAI output start from ESAI_TX1 and reserved ESAI_TX0 as other function on Linux -blog archive

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

How to let ESAI output start from ESAI_TX1 and reserved ESAI_TX0 as other function on Linux -blog archive

972 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

    For the default Freescale Linux BSP, when playback on ESAI, for two channel audio, the sound will be output from TX0, and for four channel audio, the sound will be output from TX0 and TX1.

 

    But for some special design case, for example GPIO is not enough for the board design, the IMX ESAI can also let the ESAI output start from TX1 and not use the TX0. In this case, when playback on ESAI, for two channel audio, the sound can be output from TX1, and for four channel audio, the sound can be output from TX1 and TX2.

 

    Attached is the updated ESAI driver code for such feature, it is based on Freescale Android R10.3 kernel. The macro "ESAI_NOT_USE_TX0" in file "imx-esai.h". The code was tested with CS42888 codec on iMX53 ARD board.

 

    File path:

kernel_imx/sound/soc/imx/imx-esai.c

kernel_imx/sound/soc/imx/imx-esai.h

 

    imx-esai.c

    imx-esai.h

Original Attachment has been moved to: 100-imxesai.c

Original Attachment has been moved to: 101-imxesai.h

Tags (1)
0 Kudos
0 Replies