Difference between revisions of "Raspberry Pi ALSA"

From WA2IAC Wiki
Jump to: navigation, search
m (Introduction)
m (Enabling Audio Output)
Line 34: Line 34:
 
By default, the RPi audio output is set to automatically select the digital HDMI interface if its being used, otherwise the analog audio output. You can force it to use a specific interface via the sound mixer controls.  [http://linux.die.net/man/1/amixer amixer] allows command-line control of the mixer for the ALSA driver.
 
By default, the RPi audio output is set to automatically select the digital HDMI interface if its being used, otherwise the analog audio output. You can force it to use a specific interface via the sound mixer controls.  [http://linux.die.net/man/1/amixer amixer] allows command-line control of the mixer for the ALSA driver.
  
You can force the RPi to use a specific interface using the command amixer cset numid=3 N where the N parameter means the following: 0=auto, 1=analog, 2=hdmi.  Therefore, to force the Raspberry Pi to use the analog output:
+
You can force the RPi to use a specific interface using the command amixer cset numid=3 N where the N parameter means the following: 0=auto, 1=analog, 2=hdmi.  Therefore, to force the Raspberry Pi to use the analog output (note root prompt!):
  
<pre>amixer cset numid=3 1</pre>
+
<pre># amixer cset numid=3 1</pre>
  
 
== Sound Check ==
 
== Sound Check ==

Revision as of 00:47, 2 May 2013