技術討論區 > Embedded 討論版

[config] Enable Audio On Raspberry Pi2

(1/1)

netman:

--- 代碼: ---sudo amixer cset numid=3 1
numid=3,iface=MIXER,name='PCM Playback Route'
; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0
: values=1

values取不同的值分别代表:
0=auto(自动), 1=headphones(耳机), 2=hdmi

sudo alsactl store   # to save
sudo /etc/init.d/alsa-utils reset # to reset

--- 程式碼結尾 ---

Ref:
http://blog.scphillips.com/posts/2013/01/sound-configuration-on-raspberry-pi-with-alsa/


if no sound after stoping a play, then try to get rid of the pulseaudio:

--- 代碼: ---sudo apt-get remove PulseAudio
--- 程式碼結尾 ---

duncanlo:
Pi2要另外開才能用?
還是你不是走HDMI?

netman:
我是HDMI轉VGA

導覽

[0] 文章列表

前往完整版本