Audio output can be set to automatic, headset output, and HDMI output. The default value is automatic.
Pi @ aborn ~ $ Sudo apt-get install alsa-utilspi @ aborn ~ $ Sudo modprobe snd-bcm2835 # Add the sound module to the kernel pi @ aborn ~ $ Sudo aplay/usr/share/sounds/alsa/Front_Center.wav pi @ aborn/opt/vc $ sudo amixer cset numid = 3 2 numid = 3, iface = MIXER, name = 'PCM Playback Route '; type = INTEGER, access = rw ------, values = 1, min = 0, max = 2, step = 0: values = 2pi @ aborn/opt/vc $ sudo aplay/usr/share/sounds/alsa/Front_Center.wav Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav ': signed 16 bit Little Endian, Rate 48000Hz, Monopi @ aborn/opt/vc $ sudo amixer cset numid = 3 numid = 3, iface = MIXER, name = 'PCM Playback Route '; type = INTEGER, access = rw ------, values = 1, min = 0, max = 2, step = 0: values = 0pi @ aborn/opt/vc $ 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
Different values are taken to indicate:
0 = auto (auto), 1 = headphones (headset), 2 = hdmi
I found that playing videos consumes a lot of cpu resources.
Reference: http://raspberrypi.stackexchange.com/questions/44/why-is-my-audio-sound-output-not-working