Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "ECE497 Lab11 Using ALSA"

From eLinux.org
Jump to: navigation, search
m (Lab 11/6 - Using ALSA: Added link to ti wiki)
m (Setup: Adding more notes on how to setup.)
Line 11: Line 11:
 
== Problems and Solutions ==  
 
== Problems and Solutions ==  
  
=== Killing pulseaudio ===
+
=== Setup ===
  
Be sure to run:
+
There are a couple of things you need to after booting up before running the ALSA stuff.
<pre>
+
 
killall -9 pulseaudio
+
* Run <code>$ killall -9 pulseaudio</code> to stop pulseaudio.
</pre>
+
* Run <code>alsamixer</code> and turn up '''DAC Analog''' and turn down '''Left Dig''' and '''Right Dig'''.  Do this by using the right arrow key to move to the slider you want to adjust and use the up and down keys to adjust.
before using ALSA.
+
  
 
=== Some notes on ALSA ===
 
=== Some notes on ALSA ===

Revision as of 16:22, 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

Setup

There are a couple of things you need to after booting up before running the ALSA stuff.

  • Run $ killall -9 pulseaudio to stop pulseaudio.
  • Run alsamixer and turn up DAC Analog and turn down Left Dig and Right Dig. Do this by using the right arrow key to move to the slider you want to adjust and use the up and down keys to adjust.

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.