audio - 嵌入式系统 CORE9G25 上的 alsa

标签 audio arm embedded-linux alsa atmel

我有一个安装了嵌入式 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/

相关文章:

arm - 如何使用有序提交来进行load-> store重新排序?

linux - 退出 DRAM 中的 Linux 以在 SRAM 中运行裸机代码

c - ld.so.1 中的 ELDK gcc 链接器错误

linux - 在 linux 内核模块中访问 GPIO 的步骤是怎样的?

java - 如何跟踪音频播放位置?

Html:播放没有控件的音频?

audio - 网络音频声音未播放

audio - 是否可以在下载整个文件之前知道 MP3 的持续时间?

linux - 如何从 Linux 中的用户空间访问物理地址?

c - 这个C union 的成员有什么区别吗?