imx8m pcm sai1

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

imx8m pcm sai1

3,371 Views
dhty2015
Contributor II

I need to use the sound card on imx8mq and the connection mode is i2c and i2s.I2s has seven pins: MCLK, LRCK, SCLK, SDIN1, SDIN2, SDIN3, SDIN4

But no one knows how to change the SAI configuration.Do you only need to change DTS?Want answers or examples.Thank you very much!

0 Kudos
Reply
5 Replies

3,102 Views
igorpadykov
NXP Employee
NXP Employee

Hi dhty2015

one can look at "pinctrl_sai1_pcm: sai1grp_pcm" dts example on

fsl-imx8mq-evk.dts\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel 

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

0 Kudos
Reply

3,102 Views
dhty2015
Contributor II

现在,我使用i2c3和sai1连接解码器芯片。使用情况如图:

引脚使用.png声卡设备.png

通过cat /proc/asound/cards可以看到我的声卡:

查看声卡.png

但是我使用tinyplay 进行播放声音的时候,只是有i2c的信号,而没有SAI的任何信号。

请问,如上连接,只有TXD0~3三根数据线,需要对sai1进行另外的配置吗?

0 Kudos
Reply

3,102 Views
igorpadykov
NXP Employee
NXP Employee

one can check

How to setup sai1 tdm mode for imx8mq-evk?  

Best regards
igor

0 Kudos
Reply

3,102 Views
dhty2015
Contributor II

igorpadykov

感谢你,我现在已经完成了新声卡的驱动,可以使用tinyplay播放,tinymix调整寄存器属性。

现在有个新问题 ,就是把这张声卡加入到android的音频策略中去。我使用的是imx8mq-evk android 9.0的源码,我可以参考源码中哪个声卡的流程来添加我的声卡到android策略中呢?感谢!

0 Kudos
Reply

3,102 Views
dhty2015
Contributor II

Compared to pinctrl_sai1_pcm, I didn't use RXD7 TXD4 to TXD7.Should I just delete the configuration?Do you need to modify the &sai1, and sai drivers?

0 Kudos
Reply