* What is /dev/snd/hwC0D0 used for ? @ 2006-03-30 19:09 Carlos Munoz 2006-03-30 21:37 ` Lee Revell 0 siblings, 1 reply; 5+ messages in thread From: Carlos Munoz @ 2006-03-30 19:09 UTC (permalink / raw) To: alsa-devel Hi all, Does any anyone know what /dev/snd/hwCxDx and /dev/snd/timer are used for? Is there a document explaining what all the devices are used for ? I searched but didn't find anything. Thanks, Carlos Munoz ------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What is /dev/snd/hwC0D0 used for ? 2006-03-30 19:09 What is /dev/snd/hwC0D0 used for ? Carlos Munoz @ 2006-03-30 21:37 ` Lee Revell 2006-03-31 1:45 ` Paul Davis 0 siblings, 1 reply; 5+ messages in thread From: Lee Revell @ 2006-03-30 21:37 UTC (permalink / raw) To: Carlos Munoz; +Cc: alsa-devel On Thu, 2006-03-30 at 11:09 -0800, Carlos Munoz wrote: > Hi all, > > Does any anyone know what /dev/snd/hwCxDx and /dev/snd/timer are used for? > Yes, these provide the ioctl() interface (specifically the hwdep and timer ioctls, respectively) that alsa-lib uses to communicate with the kernel. They are only intended for use by alsa-lib. > 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. Lee ------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What is /dev/snd/hwC0D0 used for ? 2006-03-30 21:37 ` Lee Revell @ 2006-03-31 1:45 ` Paul Davis 2006-03-31 2:47 ` Lee Revell 0 siblings, 1 reply; 5+ messages in thread From: Paul Davis @ 2006-03-31 1:45 UTC (permalink / raw) To: Lee Revell; +Cc: Carlos Munoz, alsa-devel On Thu, 2006-03-30 at 16:37 -0500, Lee Revell wrote: > On Thu, 2006-03-30 at 11:09 -0800, Carlos Munoz wrote: > > Hi all, > > > > Does any anyone know what /dev/snd/hwCxDx and /dev/snd/timer are used for? > > > > Yes, these provide the ioctl() interface (specifically the hwdep and > timer ioctls, respectively) that alsa-lib uses to communicate with the > kernel. They are only intended for use by alsa-lib. > > > 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? 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 ? --p ------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What is /dev/snd/hwC0D0 used for ? 2006-03-31 1:45 ` Paul Davis @ 2006-03-31 2:47 ` Lee Revell 2006-03-31 9:53 ` Takashi Iwai 0 siblings, 1 reply; 5+ messages in thread From: Lee Revell @ 2006-03-31 2:47 UTC (permalink / raw) To: paul; +Cc: Carlos Munoz, alsa-devel 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. > 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"... Lee ------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What is /dev/snd/hwC0D0 used for ? 2006-03-31 2:47 ` Lee Revell @ 2006-03-31 9:53 ` Takashi Iwai 0 siblings, 0 replies; 5+ messages in thread From: Takashi Iwai @ 2006-03-31 9:53 UTC (permalink / raw) To: Lee Revell; +Cc: paul, Carlos Munoz, alsa-devel 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-03-31 9:53 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-03-30 19:09 What is /dev/snd/hwC0D0 used for ? Carlos Munoz 2006-03-30 21:37 ` Lee Revell 2006-03-31 1:45 ` Paul Davis 2006-03-31 2:47 ` Lee Revell 2006-03-31 9:53 ` Takashi Iwai
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.