Toybrick
标题:
aplay播放没有声音
[打印本页]
作者:
petershen
时间:
2021-3-13 12:00
标题:
aplay播放没有声音
我刚入手TB-RK3399ProD开发板,可以运行debian10 系统,通过aplay -l
card 0: rockchiprk809co [rockchip,rk809-codec], device 0: ff890000.i2s-rk817-hifi rk817-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: rockchiphdmi [rockchip,hdmi], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
运行命令
aplay -D hw:0,0 -t raw -r 48000 -c 2 -f s16_le 48000_2.pcm
Playing raw data '48000_2.pcm' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
程序没有报错,但是耳机接入Headphone,听不到声音
请问是什么原因
作者:
jefferyzhang
时间:
2021-3-13 17:38
请先看下教程:
http://t.rock-chips.com/forum.ph ... &extra=page%3D1
作者:
petershen
时间:
2021-3-13 18:18
hi, jeffery
非常感谢,按照你的指导,已经可以采集和播放音频了。目前的问题是,是否支持用amixer设置播放或者采集的音量呢?
amixer -D HeadphoneNormal cget name='Playback Path'
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
numid=1,iface=MIXER,name='Playback Path'
; type=ENUMERATED,access=rw------,values=1,items=11
; Item #0 'OFF'
; Item #1 'RCV'
; Item #2 'SPK'
; Item #3 'HP'
; Item #4 'HP_NO_MIC'
; Item #5 'BT'
; Item #6 'SPK_HP'
; Item #7 'RING_SPK'
; Item #8 'RING_HP'
; Item #9 'RING_HP_NO_MIC'
; Item #10 'RING_SPK_HP'
: values=0
欢迎光临 Toybrick (https://t.rock-chips.com/)
Powered by Discuz! X3.3