Developing custom audio codec on IMX6ULL with ESAI interface

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

Developing custom audio codec on IMX6ULL with ESAI interface

Jump to solution
864 Views
kmagi
Contributor III

Hello,

 

I am developing custom audio codec driver on IMX6ULL with ESAI as interface.

My interface mapping is as below,

pinctrl_esai: esaigrp {
fsl,pins = <
MX6ULL_PAD_CSI_DATA00__ESAI_TX_HF_CLK 0x1b0b0
MX6ULL_PAD_CSI_DATA01__ESAI_RX_HF_CLK 0x1b0b0
MX6ULL_PAD_CSI_DATA04__ESAI_TX_FS 0x1b0b0
MX6ULL_PAD_CSI_DATA05__ESAI_TX_CLK 0x1b0b0
MX6ULL_PAD_CSI_DATA07__ESAI_T0 0x1b0b0
MX6ULL_PAD_CSI_HSYNC__ESAI_TX1 0x1b0b0
MX6ULL_PAD_CSI_PIXCLK__ESAI_TX2_RX3 0x1b0b0
MX6ULL_PAD_CSI_MCLK__ESAI_TX3_RX2 0x1b0b0
MX6ULL_PAD_CSI_DATA02__ESAI_RX_FS 0x1b0b0
MX6ULL_PAD_CSI_DATA03__ESAI_RX_CLK 0x1b0b0
MX6ULL_PAD_CSI_DATA06__ESAI_TX5_RX0 0x1b0b0
MX6ULL_PAD_CSI_VSYNC__ESAI_TX4_RX1 0x1b0b0
>;
};

And Codec is master and CPU (ESAI) slave.

After all coding, when I am running the aplay, i am getting write error: Input/output error.

Looks like the clock is not configured correctly.

can anyone tried this setup before? please share your implementation details.

 

Thanks,

Kiran

 

0 Kudos
Reply
1 Solution
860 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kiran

 

for i.MX6ULL esai example one can look on

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ull-14x14-ddr3-arm2-...

Driver description in Chapter 7 Audio Linux Manual included in Documentation

 

Best regards
igor

View solution in original post

0 Kudos
Reply
1 Reply
861 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kiran

 

for i.MX6ULL esai example one can look on

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ull-14x14-ddr3-arm2-...

Driver description in Chapter 7 Audio Linux Manual included in Documentation

 

Best regards
igor

0 Kudos
Reply