From: Joachim Foerster Subject: Re: can not access the alsa driver Date: Sun, 06 Jan 2008 11:29:44 +0100 Message-ID: <1199615384.5983.24.camel@md40100b.ft> References: <48a1cba90801050642s47db1bcbj6c6624536eda5949@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by alsa0.perex.cz (Postfix) with SMTP id 7ACF324705 for ; Sun, 6 Jan 2008 11:29:47 +0100 (CET) In-Reply-To: <48a1cba90801050642s47db1bcbj6c6624536eda5949@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Ning Zhang Cc: alsa-devel List-Id: alsa-devel@alsa-project.org Hi, On Sat, 2008-01-05 at 22:42 +0800, Ning Zhang wrote: > ( I did not found /dev/snd or /dev/dsp ) > > But when I run the application, I got these errors: > # /tmp/pcm_play_arm_s default > ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default > Playback open error: No such file or directory Well, I think, the /dev/snd/* devices files have to exist. Do you use udevd? If not, I guess you have to create these files manually - or by using the snddevices script in alsa-driver package. If you use udevd, then - perhaps - your are missing some rules files (/etc/udev/rules.d). Have a look at your Linux distributions rules files of your host PC. > Here are my questions: > 1, When we install the alsa-lib, we can get some libs, besides those, do we > also get some config files according to the local linux environment and > alsa-lib will use these config files to access the real driver? If that, how > can I install the alsa-lib to a embedded platform directly or what config > files should I port to embedded platform? > > 2, Must I edit ~/.asoundrc and /etc/alsa/alsa.conf ? In my situation, what > should I do ? Is somebody so kind can give me a simple template? I cannot really say something about your questions - I hadn't to create any special config. files, when I started using my own driver (for a PPC405 based board (ML403)). I just cross-compiled and installed alsa-lib and alsa-tools (to have aplay and arecord). Joachim