Skip to contentSkip to conversation

What is /dev/snd/hwC0D0 used for ?

DISCUSSION Carlos Munoz 4 participants 5 messages Mar 30, 2006 – Mar 31, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Carlos Munoz

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.

Quoted 3 lines

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

#2 lore raw
Quoted 10 lines · Lee Revell
Quoted 4 lines · Carlos Munoz

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.

Quoted 6 lines
Quoted 3 lines

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

#3 lore raw
Quoted 10 lines · Paul Davis
Quoted 6 lines · Lee Revell
Quoted 3 lines

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.

Quoted 4 lines

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

#4 lore raw

At Thu, 30 Mar 2006 21:47:10 -0500,

Quoted 7 lines · Lee Revell
Quoted 5 lines · Paul Davis
Quoted 4 lines · Lee Revell
Quoted 3 lines

Is there a document explaining what all the devices are used for ? I searched but didn't find anything.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

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 :)

Quoted 7 lines
Quoted 4 lines

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