Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MT7688 ES9023 没有/dev/snd/ 设备 #3

Open
shanshuilanren opened this issue Apr 8, 2017 · 6 comments
Open

MT7688 ES9023 没有/dev/snd/ 设备 #3

shanshuilanren opened this issue Apr 8, 2017 · 6 comments

Comments

@shanshuilanren
Copy link

请教下, 手上的代码是DM06 MT7688 (见https://github.com/gq213/openwrt-DM06/ 自带WM8960驱动,并可以运行), 我想把它改成支持ES9023 codec, 所做的步骤:
1, 把package 底下sxx 文件夹移动到DM06相应的文件夹, config勾选后并且编译成功(关掉WM8960的驱动), 在/dev/snd/下看不到相关设备,
2, 我如果要能够支持ES9023 要做哪些操作(dts等), 您有研究过么, 谢谢,
PS:
博客http://transing.xyz/2015/08/19/openwrt-pcm-driver-on-mt7620-or-rt5350/ 有提到应该是可以移植成功的,

@qdk0901
Copy link
Owner

qdk0901 commented Apr 11, 2017

dts需要加9023设备节点,9023的驱动才会跑
可以参考一下这个patch
7c5a538

@shanshuilanren
Copy link
Author

感谢您的回复, 我已经添加了dts, 一切看起来OK, 但还是没声音, 对了, 有两个疑问:
1, 你在另一个issue(见备注)里面说RT5530 ES9023不需要MCLK, 不是必须的么(如果没有外部晶振提供),
ps: 已经closed的issue, "请问rt5350-i2s这个驱动可以用与其他播放器吗"
2, 您的snd里面提供I2S和PCM两种方式, ES9023只支持I2S一种吧, 不过源代码I2S只支持播放,不支持录音是这样的么, 请指教,

@shanshuilanren
Copy link
Author

再补充一个小问题, 3, 您的package有个run ll命令, 这个是做什么用的, 是否跟音频播放有关呢,

@shanshuilanren
Copy link
Author

相关log见:
root@dm06:/# aplay -c 1 -t raw -f S16_LE --mmap -r 8000 /sbin/1.wav
[ 297.660000] rt5350_pcm_startup
Playing raw data '/sbin/1.wav' : Signed[ 297.980000] rt5350_pcm_set_fmt
16 bit Little E[ 297.990000] rt5350_pcm_trigger cmd:1
ndian, Rate 8000[ 298.000000] rt5350_pcm_trigger cmd:0
Hz, Mono
[ 298.010000] rt5350_pcm_trigger cmd:1
underrun!!! (at [ 298.020000] rt5350_pcm_trigger cmd:0
least 0.224 ms l[ 298.030000] rt5350_pcm_trigger cmd:1
ong)
underrun!!! (at least 0.261 ms long)

^CAborted by signa[ 409.940000] rt5350_pcm_trigger cmd:0
l Interrupt...
[ 409.950000] rt5350_pcm_shutdown
aplay: pcm_write:1939: write error: Interrupted system call
root@dm06:/#

@qdk0901
Copy link
Owner

qdk0901 commented Apr 12, 2017

9023只支持i2s,我买的9023板上自带mclk,所以不需要5350再输出mclk给它
i2s的录音没加,pcm是有的,
照着pcm下的codec驱动,在package/sxx/rt5350-i2s/src/es9038-codec.c里把capture dai加上就好了

run ll命令是uboot里的,用来升级linux用的

@shanshuilanren
Copy link
Author

恩, 知晓了, many thanks, good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants