summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/sound.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2001-07-02 15:27:28 +0000
committergreen <green@FreeBSD.org>2001-07-02 15:27:28 +0000
commit9243c4f1a8f9d9e3568d0f943ae5147a24e62e46 (patch)
tree023577fe7d9f79128cbd9ba190280135ebf61495 /sys/dev/sound/pcm/sound.c
parentfd2fcd17ee2995f9eec606ef9b918fe0e766545f (diff)
downloadFreeBSD-src-9243c4f1a8f9d9e3568d0f943ae5147a24e62e46.zip
FreeBSD-src-9243c4f1a8f9d9e3568d0f943ae5147a24e62e46.tar.gz
Make all this compile on 4.3, modulus sbuf.
Diffstat (limited to 'sys/dev/sound/pcm/sound.c')
-rw-r--r--sys/dev/sound/pcm/sound.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index bd85220..c96151f 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -38,9 +38,14 @@ int snd_unit = 0;
TUNABLE_INT("hw.snd.unit", &snd_unit);
#endif
int snd_autovchans = 0;
-TUNABLE_INT("hw.snd.autovchans", &snd_autovchans);
int snd_maxvchans = 0;
+#if __FreeBSD > 50000
+TUNABLE_INT("hw.snd.autovchans", &snd_autovchans);
TUNABLE_INT("hw.snd.maxvchans", &snd_maxvchans);
+#else
+TUNABLE_INT("hw.snd.autovchans", 0, snd_autovchans);
+TUNABLE_INT("hw.snd.maxvchans", 0, snd_maxvchans);
+#endif
SYSCTL_NODE(_hw, OID_AUTO, snd, CTLFLAG_RD, 0, "Sound driver");
OpenPOWER on IntegriCloud