This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
GUI的不是很清楚,不过你可以在liunx的ALSA utils试一下音频,下面是一个loopback的例子:
arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2 | aplay -Dhw:0,1 -r8000 -fS16_LE -c1
arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2 | aplay -Dhw:0,1 -r8000 -fS16_LE -c1
谢谢louis!
root@dvr:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SOUND0 [TI81XX SOUND0], device 1: AIC3X tlv320aic3x-hifi-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: SOUND1 [TI81XX SOUND1], device 0: hdmi HDMI-DAI-CODEC-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dvr:/# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: SOUND0 [TI81XX SOUND0], device 0: TVP-PCM tvp5158-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SOUND0 [TI81XX SOUND0], device 1: AIC3X tlv320aic3x-hifi-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
这是我的具体硬件配置, 我的音频输入接到开发板的音频1口,液晶电视接入开发板的hdmi0口, 运行
1.root@dvr:/# arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2|aplay -Dhw:0,0 -r8000 -fS
16_LE -c1
aplay: main:660: audio open error: No such file or directory
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
root@dvr:/# arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2|aplay -Dhw:0,1 -r8000 -fS
16_LE -c1
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
arecord: pcm_read:1773: read error: Input/output error
2.root@dvr:/usr/share/sounds/alsa# aplay -Dhw:0,0 Side_Right.wav
aplay: main:660: audio open error: No such file or directory
root@dvr:/usr/share/sounds/alsa# aplay -Dhw:0,1 Side_Right.wav
Playing WAVE 'Side_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1065: Channels count non available
以上是我的音频测试信息,麻烦你帮我看看!