* 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
* Re: Setting up Alsa by hand on an embedded system
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ø
1 sibling, 0 replies; 6+ messages in thread
From: Clemens Ladisch @ 2005-12-22 9:05 UTC (permalink / raw)
To: David Smoot; +Cc: alsa-devel
David Smoot wrote:
> 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.
Have a look into alsa-lib's Makefile.am files to see what gets installed.
> ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
I guess the configuration files in /use/share/alsa/ are missing.
HTH
Clemens
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Setting up Alsa by hand on an embedded system
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
1 sibling, 1 reply; 6+ messages in thread
From: Asbjørn Sæbø @ 2005-12-22 15:26 UTC (permalink / raw)
To: alsa-devel
On Wed, Dec 21, 2005 at 07:36:06PM -0600, David Smoot wrote:
> [...]
> 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).
You noticed the comment about the bug in some of the listings? The
variable "dir" must be initialized to zero, or segfaults may occur.
Asbj.S.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Setting up Alsa by hand on an embedded system
2005-12-22 15:26 ` Asbjørn Sæbø
@ 2005-12-22 15:53 ` David Smoot
2005-12-22 17:46 ` Steve deRosier
0 siblings, 1 reply; 6+ messages in thread
From: David Smoot @ 2005-12-22 15:53 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 807 bytes --]
I don't the dir variable is the issue because I am not getting segfaults.
The code compiles and works on my "host machine" (full debian box) but does
not on my embedded.
It appears that combining the two suggestions from Clements and Steve have
gotten me further. It appears that the file /usr/share/alsa.conf loads the
default configuration and also loads the file in /etc/asound.conf. I get a
different error now, I think I need to tweak the files in /usr/share/alsa to
match the correct chipset.
Does the alsa configuration environment require python? My embedded system
does not have python. I'm sure I will have to hack it in someday but it is
not there yet.
I've gotten further but a few more errors but I think you all have gotten me
on the correct track. Thank you.
David
[-- Attachment #2: Type: text/html, Size: 863 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Setting up Alsa by hand on an embedded system
2005-12-22 15:53 ` David Smoot
@ 2005-12-22 17:46 ` Steve deRosier
0 siblings, 0 replies; 6+ messages in thread
From: Steve deRosier @ 2005-12-22 17:46 UTC (permalink / raw)
To: David Smoot; +Cc: alsa-devel
Hm, yeah, I missed the /usr/share/alsa stuff. Whoops.
We don't have python on our box, so I'd guess you'd be fine.
- Steve
David Smoot wrote:
> I don't the dir variable is the issue because I am not getting
> segfaults. The code compiles and works on my "host machine" (full
> debian box) but does not on my embedded.
>
> It appears that combining the two suggestions from Clements and Steve
> have gotten me further. It appears that the file /usr/share/alsa.conf
> loads the default configuration and also loads the file in
> /etc/asound.conf. I get a different error now, I think I need to tweak
> the files in /usr/share/alsa to match the correct chipset.
>
> Does the alsa configuration environment require python? My embedded
> system does not have python. I'm sure I will have to hack it in someday
> but it is not there yet.
>
> I've gotten further but a few more errors but I think you all have
> gotten me on the correct track. Thank you.
>
> David
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ 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.