From: David Smoot Subject: Setting up Alsa by hand on an embedded system Date: Wed, 21 Dec 2005 19:36:06 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9936_10775566.1135215366309" Return-path: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org ------=_Part_9936_10775566.1135215366309 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 linu= x 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 als= a 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 th= e 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 ------=_Part_9936_10775566.1135215366309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline OK, I tried this question about a month ago but I did not make it clear I t= hink.

I need to add the ability to record and playback audio on the = embedded linux platform my company uses.  Being embedded, I do not hav= e a full Linux distribution.  I have to set up ALSA by hand.  I c= an'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 suppo= rt for alsa and my chipset (an Intel ICH5 that uses the AC97 codec).
add= ed the /dev/snd/ device nodes (I skipped the midi nodes because I do not ne= ed 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 librar= y.

So I started by compiling some of the simple test programs, speci= fically the ones from the LinuxJournal article on ALSA ( http://www.linuxjourna= l.com/article/6735).  The 4 sample programs run just fine on my ho= st system.  On my embedded system the command to open the PCM device f= ails with:
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
unab= le 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 s= till 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 some= where?  Do I need to use a different argument for the PCM open?  = Any suggestions?
David

------=_Part_9936_10775566.1135215366309-- ------------------------------------------------------- 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