使用aplay -l或cat /proc/asound/cards 得到声卡号
root@freescale /$ aplay -l**** List of PLAYBACK Hardware Devices ****
card 0: wm8962audio [wm8962-audio], device 0: HiFi wm8962-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: imxhdmisoc [imx-hdmi-soc], device 0: IMX HDMI TX mxc-hdmi-soc-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
把usb声卡card 2设置为默认声卡, 修改/etc/asound.conf (如果此文件不存在,自己创建即可)
pcm.!default {
type hw
card 2
}
ctl.!default {
type hw
card 2
}以上条目 如果/etc/asound.conf中有 就修改 没有就添加即可。