Raspberry Pi (Raspberry Pi) sound output settings

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.