Difference between revisions of "ECE497 Lab11 Using ALSA"

From eLinux.org
Jump to: navigation, search
(Initial copy from the OSS lab)
 
m (Lab 11/6 - Using ALSA: Added link to ti wiki)
Line 6: Line 6:
  
 
This is a placeholder...
 
This is a placeholder...
 +
 +
There are ALSA examples [http://processors.wiki.ti.com/index.php/OMAP%E2%84%A2/DaVinci%E2%84%A2_System_Integration_using_Linux_Workshop here] that are built on DMAI.
  
 
== Problems and Solutions ==  
 
== Problems and Solutions ==  

Revision as of 15:24, 12 May 2011


Be sure you have done Lab 10 before this lab so all your software is set up.

Lab 11/6 - Using ALSA

This is a placeholder...

There are ALSA examples here that are built on DMAI.

Problems and Solutions

Killing pulseaudio

Be sure to run:

killall -9 pulseaudio

before using ALSA.

Some notes on ALSA

I've gotten this example working. I'm also looking here.

On the Beagle you need to:

# opkg install alsa-dev

On the host:

$ sudo apt-get install libasound2-dev

Go to the class dfs site and get alsaWrite.c. Compile it with

# gcc -lasound alsaWrite.c
# ./a.out

It runs on the Beagle and desktop and produces a sound.

It's shouldn't be hard to convert alsaWrite.c to alsaRead.c. See the sites above for hints.