Difference between revisions of "Raspberry Pi ALSA"

From WA2IAC Wiki
Jump to: navigation, search
(Early Observations)
(Introduction)
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
 +
=== Hot off the Press ===
 +
Many problems I've encountered have been caused by known problems in Raspbian (see below). Because fixes are in the pipeline, I choose to wait for them to get into the distro via updates. I'm keeping track of them here for my own benefit, you're welcome to ride along...
 +
==== mmap Kernal Update ====
 +
The mmap method for driver communication is not supported in Raspbian at present. This has been solved thanks to [http://martinezjavier.wordpress.com/2013/04/27/mmap-support-for-raspberry-pi-bcm2835-alsa-driver/ Javier Martinez Canillas]. The preceeding link will take you to the details.
 +
 +
Without this kernel fix, at best, ALSA performance will be "challanged". You may also want to wait on this one.
 +
 +
=== More Introduction ===
 
(Circa 5/2013)
 
(Circa 5/2013)
 
The information on this page assumes the operating system is Raspbian, which is simply a port of Debian for ARM processors recompiled so that the entire distro supports the floating point processor on the Raspberry Pi. See other references to this wiki at the bottom.
 
The information on this page assumes the operating system is Raspbian, which is simply a port of Debian for ARM processors recompiled so that the entire distro supports the floating point processor on the Raspberry Pi. See other references to this wiki at the bottom.
Line 5: Line 13:
 
Googling this topic produces lots of outdated junk, so I'm writing this page to be reliable for me.
 
Googling this topic produces lots of outdated junk, so I'm writing this page to be reliable for me.
  
At Present, most of this is lifted from [http://jeffskinnerbox.wordpress.com/2012/11/15/getting-audio-out-working-on-the-raspberry-pi/ here]. But I'll be adding more fast.
+
At Present, some of this is lifted from [http://jeffskinnerbox.wordpress.com/2012/11/15/getting-audio-out-working-on-the-raspberry-pi/ here]. I've been adding more fast.
  
 
I want to deliver sound from my Raspberry Pi’s (RPi) Audio Output 3.5mm jack.  I’ll need to get audio drivers working on Audio Out, and to test it, I’ll need some sound files and players.  I’m choosing the [http://www.alsa-project.org/main/index.php/Main_Page Advanced Linux Sound Architecture (ALSA)] drivers because its widely supported and because [http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture ALSA] not only provides audio but [http://en.wikipedia.org/wiki/Musical_Instrument_Digital_Interface Musical Instrument Digital Interface (MIDI)] functionality to Linux.  I’ll also be using the popular command line MP3 players, mpg321 and the WAV player that comes with ALSA, aplay.
 
I want to deliver sound from my Raspberry Pi’s (RPi) Audio Output 3.5mm jack.  I’ll need to get audio drivers working on Audio Out, and to test it, I’ll need some sound files and players.  I’m choosing the [http://www.alsa-project.org/main/index.php/Main_Page Advanced Linux Sound Architecture (ALSA)] drivers because its widely supported and because [http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture ALSA] not only provides audio but [http://en.wikipedia.org/wiki/Musical_Instrument_Digital_Interface Musical Instrument Digital Interface (MIDI)] functionality to Linux.  I’ll also be using the popular command line MP3 players, mpg321 and the WAV player that comes with ALSA, aplay.

Revision as of 22:07, 8 May 2013