Developing custom audio codec on IMX6ULL with ESAI interface

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Developing custom audio codec on IMX6ULL with ESAI interface

跳至解决方案
865 次查看
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 项奖励
回复
1 解答
861 次查看
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 项奖励
回复
1 回复
862 次查看
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 项奖励
回复