From: Takashi Iwai Subject: Re: alsa problems Date: Tue, 28 Mar 2006 16:21:48 +0200 Message-ID: References: <1143547835.13615.25.camel@localhost> <1143551506.13615.48.camel@localhost> <1143552082.13615.51.camel@localhost> <1143553451.13615.57.camel@localhost> <1143555036.13615.68.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 00EB81A0 for ; Tue, 28 Mar 2006 16:21:48 +0200 (MEST) In-Reply-To: <1143555036.13615.68.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 16:10:36 +0200, Johannes Berg wrote: > > On Tue, 2006-03-28 at 16:06 +0200, Takashi Iwai wrote: > > > A relatively easy workaround is to create two PCM instances, each of > > which is dedicated for only a single direction. Then you can define > > appropriate configuration in alsa-lib to choose the right PCM number. > > The drawbacks are about the kernel OSS emulator, as usual. > > Ok I guess that would work. But my current workaround with just defining > both directions and refusing access to those that don't work seems to do > fine too. Ah, that sounds OK, too. The driver can return -ENOENT, so basically it looks same from the user-space as if there is no real device file. > > Alternatively, we can create a new function, > > e.g. snd_pcm_register_stream(), for doing what snd_pcm_dev_register() > > does for a single stream. It's an exception only for PCM which may > > have multiple device files. > > Yes, that'd be good to have, indeed it would essentially be a code move > and the old code would call the new function. OK, I'll pass you a patch later. I think, however, this won't go to 2.6.17 kernel since we have no caller yet. > > I have a rough design of new PCM middle layer in my head to reduce > > snd_pcm struct, and it would work fine in your case. Nevertheless, > > it's still a vaporware :) > > Heh :) Make sure to include some compressed content stuff, it could just > be a different format or something... A good point. The handling of compressed formats is still under considration. Any comments about preferred behavior are welcome. 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