Raspberry Pi (Raspberry Pi) sound output can be set to automatic, headset output, three types of output from HDMI, the default is automatic
Pi @ aborn ~ $ Sudo apt-get install alsa-utils
Pi @ 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 = 2
Pi @ 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, Mono
Pi @ 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 = 0
Pi @ 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
Values is represented by different values:
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
Recommended reading:
Raspberry Pi build LAMP Server
Install a game simulator on Raspberry Pi
Install Weston on Raspberry Pi
Linux OS for Raspberry Pi is available
Raspberry Pi (Raspberry Pi) trial note
Introduction to Raspberry Pi (Raspberry Pi) installation, IP configuration, and software source