全志v3s荔枝派zero对usb声卡的支持
淘宝7元买的usb声卡
_____________________________________________________________________
效果
视频声音小了,请将电脑声音调置最大
_____________________________________________________________________
内核
Device Drivers -->
Sound card support -->
--- Sound card support Preclaim OSS device numbers
<*> Advanced Linux Sound Architecture -->
--- Advanced Linux Sound Architecture
[ *] Enable OSS Emulation
< *> OSS Mixer API
< *> OSS PCM (digital audio) API
[ *] OSS PCM (digital audio) API - Include plugin system
[ *] USB sound devices --->
<*>USB Audio /MIDI drive
_____________________________________________________________________
设备树
/*
&codec {
allwinner,audio-routing =
"Headphone", "HP",
"Headphone", "HPCOM",
"MIC1", "Mic",
"Mic", "HBIAS";
status = "okay";
};
*/
我去除了原来的声卡配置,因为用不上,自己画的板子,耳机口还没焊接
_____________________________________________________________________
根文件
开启alsa
_____________________________________________________________________
验证
ls/dev
查看有没有audio设备
root@lzq:/129# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@lzq:/129#
_____________________________________________________________________
问题
mp3格式无法用aplay播放(都是噪声),估计是采样率不匹配,用mplayer就好了
aplay只能播放wav格式的音乐
最近编辑记录 资本家大善人 (2021-07-21 22:24:13)
离线