Call for testing: emu10kx driver for Creative sound cards
des at des.no
Wed May 24 07:38:50 PDT 2006
"Yuriy Tsibizov" <Yuriy.Tsibizov at gfk.ru> writes:
> Should sound drivers (pcm* device) be documented as an exception
> from this? They use snd_sysctl_tree_top() to get tree OID under
> hw.snd.pcmX and snd_sysctl_tree() to get their context.
They should probably switch to device_get_sysctl_*(), with some compat
glue to ease the transition.
If you remember to always pass the device's sysctl context to
SYSCTL_ADD_*() when you create the nodes, they will be GCed when the
device detaches (even if they are outside the device's sysctl subtree)
We should probably have per-class contexts as well, so stuff like
hw.snd.unit can be placed directly under dev.pcm.
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-multimedia