作者 主題: [config] Enable Audio On Raspberry Pi2  (閱讀 3765 次)

0 會員 與 1 訪客 正在閱讀本文。

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17484
    • 檢視個人資料
    • http://www.study-area.org
[config] Enable Audio On Raspberry Pi2
« 於: 2015-05-27 15:06 »
代碼: [選擇]
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
« 上次編輯: 2015-05-27 17:04 由 netman »

duncanlo

  • SA 苦力組
  • 俺是博士!
  • *****
  • 文章數: 7312
    • 檢視個人資料
Re: [config] Enable Audio On Raspberry Pi2
« 回覆 #1 於: 2015-05-28 10:16 »
Pi2要另外開才能用?
還是你不是走HDMI?

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17484
    • 檢視個人資料
    • http://www.study-area.org
Re: [config] Enable Audio On Raspberry Pi2
« 回覆 #2 於: 2015-05-28 22:34 »
我是HDMI轉VGA