我有一个安装了嵌入式 linux 的 CORE9G25-CON (256MBRAM) ( http://armdevs.com/core9g25.html ) 设备。
linux的版本是:
# uname -or
3.6.9 GNU/Linux
# cat /etc/os-release
NAME=Buildroot
VERSION=2012.11.1-dirty
ID=buildroot
VERSION_ID=2012.11.1
PRETTY_NAME="Buildroot 2012.11.1
该设备配备了 USB 主机连接器,我在其中连接了 USB-AUDIO 接口(interface)
USB接口(interface)被系统识别
# cat /proc/asound/cards
0 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-at91-1, full speed
# cat /proc/asound/devices
0: [ 0] : control
16: [ 0- 0]: digital audio playback
24: [ 0- 0]: digital audio capture
33: : timer
# ls /dev/snd
controlC0 pcmC0D0c pcmC0D0p timer
我想使用 ALSA 处理 AUDIO 接口(interface),但这是使用简单命令 aplay -l 在控制台上显示的错误
# aplay -l
**** List of PLAYBACK Hardware Devices ****
ALSA lib control.c:739:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:226: control open (0): No such file or directory
aplay: conf.c:3095: snd_config_update_free: Assertion `update->count > 0 && update->finfo' failed.
Aborted
我用谷歌搜索了大约一周试图解决这个问题,但到目前为止,我没有找到任何解决方案。
你能帮我解决这个问题吗?
你有其他类似的经历吗?
非常感谢您的帮助与合作
最好的祝福
最佳答案
你的 alsa.conf 是什么样的?做这个
locate alsa.conf
通常在
/usr/share/alsa/alsa.conf
做一个谷歌
audio sound alsa Invalid CTL hw:0
这可能会让你走上正确的道路
#alsa.conf minimal configuration
ctl.hw {
@args [ CARD ]
@args.CARD {
type string
}
type hw
card $CARD #with 0 alsamixer work, with $CARD alsamixer lend to invalid argument
}
关于audio - 嵌入式系统 CORE9G25 上的 alsa,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25572643/