diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-03 01:25:26 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-03 01:25:26 +0000 |
commit | aa1bf8b0b32c122e7edac62650ee078fd65e1d6d (patch) | |
tree | 3106c0a041140e4c2839c605442aad03e64000bf /sys/dev/sound/pcm | |
parent | 93d6e1eee351f7d8aa7c42169cfbf1dc4ba978ac (diff) | |
download | FreeBSD-src-aa1bf8b0b32c122e7edac62650ee078fd65e1d6d.zip FreeBSD-src-aa1bf8b0b32c122e7edac62650ee078fd65e1d6d.tar.gz |
Create a new sysctl node 'hw.snd' and move 'hw.sndunit' to
'hw.snd.unit'.
Reviewed by: cg
Diffstat (limited to 'sys/dev/sound/pcm')
-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); |