summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2006-07-17 17:28:44 +0000
committernetchild <netchild@FreeBSD.org>2006-07-17 17:28:44 +0000
commite3e18f6aa5dc73cb52799f498201226b56f2f131 (patch)
tree25512ebb0d226b1fa2bbb9003bfe3b20b5782ff4 /sys/dev
parentf126d3e34beec1532f5572dc351de803173bf594 (diff)
downloadFreeBSD-src-e3e18f6aa5dc73cb52799f498201226b56f2f131.zip
FreeBSD-src-e3e18f6aa5dc73cb52799f498201226b56f2f131.tar.gz
Prepend temporary sysctls with an underscore.
Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sound/pci/emu10kx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/emu10kx.c b/sys/dev/sound/pci/emu10kx.c
index dcc5322..8071efa 100644
--- a/sys/dev/sound/pci/emu10kx.c
+++ b/sys/dev/sound/pci/emu10kx.c
@@ -1430,15 +1430,20 @@ static int
emu_addefxmixer(struct emu_sc_info *sc, const char *mix_name, const int mix_id, uint32_t defvolume)
{
int volgpr;
+ char sysctl_name[32];
volgpr = emu_rm_gpr_alloc(sc->rm, 1);
emumix_set_fxvol(sc, volgpr, defvolume);
/* Mixer controls with NULL mix_name are handled by AC97 emulation
code or PCM mixer. */
if (mix_name != NULL) {
+ /* Temporary sysctls should start with underscore,
+ * see freebsd-current mailing list, emu10kx driver
+ * discussion around May, 24th. */
+ snprintf(sysctl_name, 32, "_%s", mix_name);
SYSCTL_ADD_PROC(sc->ctx,
SYSCTL_CHILDREN(sc->root),
- OID_AUTO, mix_name,
+ OID_AUTO, sysctl_name,
CTLTYPE_INT | CTLFLAG_RW, sc, mix_id,
sysctl_emu_mixer_control, "I","");
}
OpenPOWER on IntegriCloud