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