From: Takashi Iwai Subject: Re: What is /dev/snd/hwC0D0 used for ? Date: Fri, 31 Mar 2006 11:53:30 +0200 Message-ID: References: <442C2CCE.5070207@kenati.com> <1143754662.22530.9.camel@mindpipe> <1143769524.7539.54.camel@localhost.localdomain> <1143773231.22771.15.camel@mindpipe> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1143773231.22771.15.camel@mindpipe> 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: Lee Revell Cc: paul@linuxaudiosystems.com, Carlos Munoz , alsa-devel List-Id: alsa-devel@alsa-project.org At Thu, 30 Mar 2006 21:47:10 -0500, Lee Revell wrote: > > On Thu, 2006-03-30 at 20:45 -0500, Paul Davis wrote: > > On Thu, 2006-03-30 at 16:37 -0500, Lee Revell wrote: > > > > Is there a document explaining what all the devices are used for ? I > > > > searched but didn't find anything. > > > > > > > > > > No because these interfaces are intended to be private to alsa-lib. The > > > source code is authoritative. > > > > is this confirmed policy? > > > > Nope, just my understanding of the situation. Corrections are welcome. It's right about the access to the "device file". They can be all accessed gracefully via alsa-lib, and that's preferred. But it's not intentional that there are no documents about that. Just no time and interest for such a thing :) > > what happens about support for devices that have classes of control > > that do not fit into the existing ALSA schema and have traditionally > > been handled via device-specific ioctl's on /dev/snd/hwFOO ? > > > > Good question. I know the upstream kernel policy is "no new ioctls, > period"... The hwdep can have its own reads, writes, ioctls, whatever. Iit's the very reason of this device. The hwdep-specific methods can be issued from alsa-lib such as snd_hwdep_read(), snd_hwdep_write(), snd_hwdep_ioctl(). The mmap is not implmented as alsa-lib's method, so you'd need to do it manually using snd_hwdep_poll_descriptor(). Maybe this should be properly implemented, too. 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