试着使用ShairPort来做Airplay服务器,测试时使用一个USB声卡来播放声音,完全正常。但是换到板载的Line out接口时候却遇到了问题,死活没有声音播出来,aplay和speaker-test也都不行。
Ubuntu Core 16.04 Alsa 1.0.25
aplay -l似乎显示一切正常
**** List of PLAYBACK Hardware Devices ****
card 0: Pcm5102a [Pcm5102a], device 0: Playback pcm5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
使用amixer命令时,什么都没有返回,而HDMI接口的信息却能正常显示。
root@Friendly
ARM:/# amixer
root@FriendlyARM:/# amixer -c 0
alsamixer如下
另外是aplay -L的信息
root@FriendlyARM:/# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=Pcm5102a
Pcm5102a,
Default Audio Device
dmix:CARD=Pcm5102a,DEV=0
Pcm5102a,
Direct sample mixing device
dsnoop:CARD=Pcm5102a,DEV=0
Pcm5102a,
Direct sample snooping device
hw:CARD=Pcm5102a,DEV=0
Pcm5102a,
Direct hardware device without any conversions
plughw:CARD=Pcm5102a,DEV=0
Pcm5102a,
Hardware device with all software conversions
sysdefault:CARD=sndhdmi
sndhdmi,
Default Audio Device
dmix:CARD=sndhdmi,DEV=0
sndhdmi,
Direct sample mixing device
dsnoop:CARD=sndhdmi,DEV=0
sndhdmi,
Direct sample snooping device
hw:CARD=sndhdmi,DEV=0
sndhdmi,
Direct hardware device without any conversions
plughw:CARD=sndhdmi,DEV=0
sndhdmi,
Hardware device with all software conversions
附上接线图,大概是正确的吧…
另外注意到一个细节,在翻
论坛的时候发现之前有人NEO的测试帖子,其中的声卡名称和我这显示的貌似有一些区别,不知道有没有影响。
第一次接触,没啥经验,希望各位大佬指点…