|
【应用开发】
ROC-3308-CC 錄音測試__VAD使用__GPIO__問題
发表于 2019-1-12 21:58:07
浏览:20260
|
回复:14
打印
只看该作者
[复制链接]
楼主
請問
(一)
查看RK3308上的版本:
# uname -a
Linux rockchip 4.4.143 #1 SMP PREEMPT Tue Nov 13 10:30:07 CST 2018 aarch64 GNU/Linux
接上麥克風陣列配件 錄音測試
#arecord --list-devices
#arecord -f S16_LE -c 2 -r 16000 -D plughw:1,0 -d 10 test.wav
#aplay test.wav
有執行成功, 但撥放時都沒聲音 (錄音音量很大, 且撥放範例音檔有聲音, 排除輸入音量及輸出音量問題)
請問可能是什麼原因?
檢查device如下 :
# arecord --list-devices arecord --list-devices
**** List of CAPTURE Hardware Devices ****
card 0: rockchiprk3308v [rockchip,rk3308-vad], device 0: dailink-multicodecs multicodec-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: rockchiprk3308p [rockchip,rk3308-pcm], device 0: dailink-multicodecs dummy_codec-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 7: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 7: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 7/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
測了其他plughw也都沒聲音
(二)
文檔中有VAD模組說明, 也試了一些範例, 但都沒成功, 請問有沒有較簡單的vad範例或文檔可參考?
我參考的範例文檔https://github.com/rockchip-linux/docs/tree/master/SoC%20platform%20related/RK3308
(三)
#echo 18 > /sys/class/gpio/export
#echo out > /sys/class/gpio/gpio18/direction
#echo 0 > /sys/class/gpio/gpio18/value
#echo 1 > /sys/class/gpio/gpio18/value
但實際測量腳位電壓不管怎樣都是0.1xx, 其他gpio腳也是如此, 請問是何原因?
謝謝
|
|