From: Takashi Iwai Subject: Re: alsa problems Date: Tue, 28 Mar 2006 15:16:37 +0200 Message-ID: References: <1143547835.13615.25.camel@localhost> <1143551506.13615.48.camel@localhost> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx1.suse.de (mx1.suse.de [195.135.220.2]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id E66BE199 for ; Tue, 28 Mar 2006 15:16:37 +0200 (MEST) In-Reply-To: <1143551506.13615.48.camel@localhost> 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: Johannes Berg Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 28 Mar 2006 15:11:46 +0200, Johannes Berg wrote: > > [1 ] > On Tue, 2006-03-28 at 15:08 +0200, Takashi Iwai wrote: > > > > 1) > > > #include > > > doesn't compile because it requires sound/driver.h *before* it. > > > > Yes. And what's the point? > > Well, that's pretty dumb. If it requires sound/driver.h it could just as > well include it itself. It's so in order to process the many compatible wrappers. You'll see how many things are hidden there in include/adriver.h. > > I don't understand what's the problem. You can create an empty PCM > > via snd_pcm_new(), then add each stream, playback or capture, can be > > assigned appropriately via snd_pcm_new_stream() later on. > > Right. > snd_pcm_new() > snd_device_register(card, pcm) > snd_pcm_new_stream(...) <--- this stream never shows up as a chardev!! Why do you need to register the device before creating instances? It means that apps are allowed to access the driver even though it's not ready. This looks like a wrong design. Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642