Create a new sysctl node 'hw.snd' and move 'hw.sndunit' to

'hw.snd.unit'.

Reviewed by:	cg
This commit is contained in:
John Baldwin 2001-01-03 01:25:26 +00:00
parent a5eccf28a8
commit b3b7ccfe38
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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);