From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Courtier-Dutton Subject: Re: Alsa-lib problem Date: Tue, 09 Aug 2005 23:18:43 +0100 Message-ID: <42F92BC3.90809@superbug.demon.co.uk> References: <6A09F73E2878E447BF6B87C43162C827021545A4@excwa1b2.sharpsec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6A09F73E2878E447BF6B87C43162C827021545A4@excwa1b2.sharpsec.com> 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: "Nambiar, Anil" Cc: "'alsa-devel@lists.sourceforge.net'" List-Id: alsa-devel@alsa-project.org Nambiar, Anil wrote: > Hi, > > I am developing ALSA based sound driver for our arm based soc. > The driver is built as part of the kernel rather than as a loadable module. > If I run a simple wave player which has OSS based interface, it works fine. > Even mplayer works fine in OSS emulation mode. But if I run any native alsa > based player it gives error opening the device. For eg: running 'aplay -D > default demo.wav" give the following error: > > ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default > > aplay: main:533: audio open error: No such file or directory > You probably do not have a "default" device defined for your card due to the lack of a config file. But, in order to test it, even though you don't have a config file, try speaker-test -c2 -Dplughw:0,0 if that works, all you then need is a config file for your card. cat /proc/asound/cards and note down whatever is in the [.... ] bit. Here I get: 0 [Audigy2 ]: Audigy2 - Audigy 4 PRO [SB0380] Audigy 4 PRO [SB0380] (rev.4, serial:0x20071102) at 0x9800, irq 20 So I have an "Audigy2" file in /usr/share/alsa/cards You will need to create one for your card. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf