阅读:2115回复:0
请教usb音频驱动问题
我准备在mpc8313上移植usb音频驱动,在/proc/asound/devices可以看到
2: : timer 3: [ 0- 0]: digital audio playback 4: [ 0- 0]: digital audio capture 5: [ 0] : control 在执行完udevstart后,可以在/dev/snd下看到 crw-rw---- 1 root root 116, 5 Jan 1 00:00 controlC0 crw-rw---- 1 root root 116, 4 Jan 1 00:00 pcmC0D0c crw-rw---- 1 root root 116, 3 Jan 1 00:00 pcmC0D0p crw-rw---- 1 root root 116, 2 Jan 1 00:00 timer 说明设备已经被识别 我的内核采用的是alsa-driver 1.0.17 alsa-lib和alsa-utils同样都是1.0.17 执行aplay -l 显示: card 0: default [USB Audio CODEC ], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 执行aplay -L 显示 default:CARD=default USB Audio CODEC , USB Audio Default Audio Device front:CARD=default,DEV=0 USB Audio CODEC , USB Audio Front speakers surround40:CARD=default,DEV=0 USB Audio CODEC , USB Audio 4.0 Surround output to Front and Rear speakers surround41:CARD=default,DEV=0 USB Audio CODEC , USB Audio 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=default,DEV=0 USB Audio CODEC , USB Audio 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=default,DEV=0 USB Audio CODEC , USB Audio 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=default,DEV=0 USB Audio CODEC , USB Audio 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=default,DEV=0 USB Audio CODEC , USB Audio IEC958 (S/PDIF) Digital Audio Output null Discard all samples (playback) or generate zero samples (capture) 都应该是正确的 但每次执行aplay test.wav的时候,就会提示 2:1:2: usb_set_interface failed 2:1:2: usb_set_interface failed aplay: set_params:1015: Unable to install hw params: 请教各位,这应该不是usb音频驱动本身的问题吧,那会是什么问题呢,alsa.conf我没有配置过,采用的是默认的方式 采用aplay -Dhw:0,0 test.wav或者aplay -Dplughw:0,0 test.wav也会是同样的错误,到底是什么原因呢。大家有没有作过 这方面的,或者有好的建议,谢谢 |
|