刚开始我实现主线的uboot和主线的内核发现dts中缺少很多设备,根本没法使用,只能简单测试一下。
后来转向了 BSP kernel
使用@晕哥 提供的 f1c100s_c600sdk_16M_micropython.bin 启动发现有一个声卡,但是该镜像文件系统中没有alsa工具。
为了简便处理,我直接把晕哥这个镜像中的rootfs更换成我的带有alsa工具的rootfs。
替换rootfs后的镜像如下:
https://whycan.com/files/members/961/f1c100.rar
发现 aplay能使用的 rootfs中的 /usr下已经有一个400HZ的测试音频,但是发现arecord 不能录音不知道内核默认是line in 还是 mic 我两个都测试了没有声音,大家一起测试解决问题。
最近编辑记录 fly_to_bluesky@126.com (2018-06-20 11:10:50)
离线
@晕哥,昨天启动的问题已经搞定了。
是我rootfs的地址错误了,修改正确了,就能正常启动了。
现在就是声卡不能正常录音,我使用alsamix配置了mic 开启,还是不能正常录音。
离线
@晕哥 麻烦您了
离线
@晕哥,非常感谢,问题已经解决了,确实是我的配置问题。
amixer list 打出来大家看看。
Simple mixer control 'ADC FM volume',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 0 [0%]
Simple mixer control 'ADC INPUT GAIN control',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 0 [0%]
Simple mixer control 'ADC MIC Boost AMP en',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'ADC MIC Boost AMP gain control',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 0 [0%]
Simple mixer control 'ADC PA speed select',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'ADC mixer mute for FML',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'ADC mixer mute for FMR',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'ADC mixer mute for left ouput',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'ADC mixer mute for linein',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'ADC mixer mute for mic',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'ADC mixer mute for right ouput',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'COS slop time control for Anti-pop',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 3
Mono: 1 [33%]
Simple mixer control 'LINEIN GAIN control',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 0 [0%]
Simple mixer control 'MICIN GAIN control',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 7
Mono: 3 [43%]
Simple mixer control 'dac digital volume',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 63
Mono: 0 [0%]
Simple mixer control 'dac: left analog output mixer en',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: left chanle en',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'dac: left hpout to right hpout',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: left mixer mute: FM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: left mixer mute: left dac',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'dac: left mixer mute: linein',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: left mixer mute: mic',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: left mixer mute: right dac',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'dac: left mute',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'dac: right analog output mixer en',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: right chanel en',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'dac: right hpout to left hpout',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: right mixer mute: FM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: right mixer mute: left dac',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'dac: right mixer mute: linein',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: right mixer mute: mic',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'dac: right mixer mute: right dac',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'dac: right mute',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'head phone power',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'head phone volume',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 63
Mono: 63 [100%]
Simple mixer control 'hp left source select: 0-dac, 1-mixer',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'hp right source select: 0-dac, 1-mixer',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
amixer 参数调整后不能自动保存的,需要特别保存一下。
alsactl store -f /var/lib/alsa/asound.state
重启后alsactl restore -f /var/lib/alsa/asound.state
离线
多谢 @fly_to_bluesky 分享!
可以详细列出来调用了哪些命令吗?
这样方便后来到这个帖子的同学参考.
直接把我保存好的文件发到这里:
https://whycan.com/files/members/961/asound.zip
下载解压后 直接restore就可以了
我上面提供的镜像里面已经有lsz 和 lrz工具,可以通过串口使用zmodern传进去。
离线