diff options
author | netchild <netchild@FreeBSD.org> | 2006-06-18 14:14:41 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2006-06-18 14:14:41 +0000 |
commit | 9a0a1c68845bc88e1b7600d635f8dcda0c45f0dc (patch) | |
tree | 8b67c4ac2d3277d428aa4bedc603b397a5a6027e /sys/dev/sound/pcm/feeder_rate.c | |
parent | 254be6b7c4407cf97c68858b0875bf0a2fcb8cc4 (diff) | |
download | FreeBSD-src-9a0a1c68845bc88e1b7600d635f8dcda0c45f0dc.zip FreeBSD-src-9a0a1c68845bc88e1b7600d635f8dcda0c45f0dc.tar.gz |
- Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious.
- Enable 4 automatic vchan's by default.
- Add some comments which provide ides/questions for improvement.
- Prefix some temporary sysctl's with an underscore to denote that it is not
an official API but a workaround until the real solution is implemented.
Diffstat (limited to 'sys/dev/sound/pcm/feeder_rate.c')
-rw-r--r-- | sys/dev/sound/pcm/feeder_rate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/feeder_rate.c b/sys/dev/sound/pcm/feeder_rate.c index 525f28c..b4496d1 100644 --- a/sys/dev/sound/pcm/feeder_rate.c +++ b/sys/dev/sound/pcm/feeder_rate.c @@ -222,7 +222,9 @@ sysctl_hw_snd_feeder_rate_buffersize(SYSCTL_HANDLER_ARGS) feeder_rate_buffersize = val & ~1; return err; } -SYSCTL_PROC(_hw_snd, OID_AUTO, feeder_rate_buffersize, CTLTYPE_INT | CTLFLAG_RW, +/* XXX: this should be settable by an user via a control tool, the sysadmin + needs a max and min sysctl to limit what an user can do */ +SYSCTL_PROC(_hw_snd, OID_AUTO, _feeder_rate_buffersize, CTLTYPE_INT | CTLFLAG_RW, 0, sizeof(int), sysctl_hw_snd_feeder_rate_buffersize, "I", ""); static void |