All of lore.kernel.org
 help / color / mirror / Atom feed
* Setting up Alsa by hand on an embedded system
@ 2005-12-22  1:36 David Smoot
  2005-12-22  9:05 ` Clemens Ladisch
  2005-12-22 15:26 ` Asbjørn Sæbø
  0 siblings, 2 replies; 6+ messages in thread
From: David Smoot @ 2005-12-22  1:36 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]

OK, I tried this question about a month ago but I did not make it clear I
think.

I need to add the ability to record and playback audio on the embedded linux
platform my company uses.  Being embedded, I do not have a full Linux
distribution.  I have to set up ALSA by hand.  I can't simply untar the alsa
package and do ./configure followed by make.

Here's what I have done so far:
Rebuilt the kernel to have support for alsa and my chipset (an Intel ICH5
that uses the AC97 codec).
added the /dev/snd/ device nodes (I skipped the midi nodes because I do not
need them
copied libasound.so.2.0.0. from my host development box to the lib path on
my embedded box.  I added all the symlinks pointing to this library.

So I started by compiling some of the simple test programs, specifically the
ones from the LinuxJournal article on ALSA (
http://www.linuxjournal.com/article/6735).  The 4 sample programs run just
fine on my host system.  On my embedded system the command to open the PCM
device fails with:
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
unable to open pcm device: No such file or directory

So I changed device name in the code from "default" to "plug:0,0" and it
still fails with the same message (but reads "plug:0,0" instead of default).

So what am I doing wrong?  Do I need a configuration file somewhere?  Do I
need to use a different argument for the PCM open?  Any suggestions?
David

[-- Attachment #2: Type: text/html, Size: 1622 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: Setting up Alsa by hand on an embedded system
@ 2005-12-22  2:47 Steve DeRosier
  0 siblings, 0 replies; 6+ messages in thread
From: Steve DeRosier @ 2005-12-22  2:47 UTC (permalink / raw)
  To: David Smoot, alsa-devel

[-- Attachment #1: Type: text/plain, Size: 2107 bytes --]

Try an asound.conf file in /etc
 
To start, I'd try: 
---cutline---
default
{
  type hw
  card 0
  device 0 
}
---cutline---
 
But, you'll need it to match your specs.  Examine /proc/asound for your particular card and device params.  Also, refer to the asound.conf instructions on the website.  I'm not an asound.conf expert so ask again after experimenting, if you still can't get it to work.
 
- Steve

-----Original Message-----
From: David Smoot [mailto:davidsmoot@gmail.com]
Sent: Wednesday, December 21, 2005 5:36 PM
To: alsa-devel@lists.sourceforge.net
Subject: [Alsa-devel] Setting up Alsa by hand on an embedded system


OK, I tried this question about a month ago but I did not make it clear I think.

I need to add the ability to record and playback audio on the embedded linux platform my company uses.  Being embedded, I do not have a full Linux distribution.  I have to set up ALSA by hand.  I can't simply untar the alsa package and do ./configure followed by make. 

Here's what I have done so far:
Rebuilt the kernel to have support for alsa and my chipset (an Intel ICH5 that uses the AC97 codec).
added the /dev/snd/ device nodes (I skipped the midi nodes because I do not need them 
copied libasound.so.2.0.0. from my host development box to the lib path on my embedded box.  I added all the symlinks pointing to this library.

So I started by compiling some of the simple test programs, specifically the ones from the LinuxJournal article on ALSA ( http://www.linuxjournal.com/article/6735).  The 4 sample programs run just fine on my host system.  On my embedded system the command to open the PCM device fails with: 
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
unable to open pcm device: No such file or directory

So I changed device name in the code from "default" to "plug:0,0" and it still fails with the same message (but reads "plug:0,0" instead of default). 

So what am I doing wrong?  Do I need a configuration file somewhere?  Do I need to use a different argument for the PCM open?  Any suggestions?
David




[-- Attachment #2: Type: text/html, Size: 4297 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-22 17:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-22  1:36 Setting up Alsa by hand on an embedded system David Smoot
2005-12-22  9:05 ` Clemens Ladisch
2005-12-22 15:26 ` Asbjørn Sæbø
2005-12-22 15:53   ` David Smoot
2005-12-22 17:46     ` Steve deRosier
  -- strict thread matches above, loose matches on Subject: below --
2005-12-22  2:47 Steve DeRosier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.