diff options
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 4 | ||||
-rw-r--r-- | sys/dev/sound/pcm/sound.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 0aecfb0..45f53d6 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -132,6 +132,8 @@ pcm_makelinks(void *dummy) mixer = make_dev_alias(pdev, "mixer"); } +SYSCTL_NODE(_hw, OID_AUTO, snd, CTLFLAG_RD, 0, "Sound driver"); + static int sysctl_hw_sndunit(SYSCTL_HANDLER_ARGS) { @@ -145,7 +147,7 @@ sysctl_hw_sndunit(SYSCTL_HANDLER_ARGS) } return (error); } -SYSCTL_PROC(_hw, OID_AUTO, sndunit, CTLTYPE_INT | CTLFLAG_RW, +SYSCTL_PROC(_hw_snd, OID_AUTO, unit, CTLTYPE_INT | CTLFLAG_RW, 0, sizeof(int), sysctl_hw_sndunit, "I", ""); int diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index c3e77de..48ed90b 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -63,6 +63,7 @@ #include <sys/mman.h> #include <sys/poll.h> #include <sys/soundcard.h> +#include <sys/sysctl.h> #include <isa/isavar.h> #include <vm/vm.h> #include <vm/pmap.h> @@ -163,6 +164,8 @@ int fkchan_kill(pcm_channel *c); #define DEB(x) #endif +SYSCTL_DECL(_hw_snd); + int pcm_addchan(device_t dev, int dir, kobj_class_t cls, void *devinfo); int pcm_register(device_t dev, void *devinfo, int numplay, int numrec); int pcm_unregister(device_t dev); |