diff options
author | jmg <jmg@FreeBSD.org> | 1997-09-15 06:35:13 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 1997-09-15 06:35:13 +0000 |
commit | 130c7bee5c488aa3c51a2fbd042f556666891880 (patch) | |
tree | 58e4991e16379e94f957d3d9366d5aebab01521f /sys/i386/isa/snd/sound.c | |
parent | 3e054bd532f1154eb73b0440092447c23c8557c9 (diff) | |
download | FreeBSD-src-130c7bee5c488aa3c51a2fbd042f556666891880.zip FreeBSD-src-130c7bee5c488aa3c51a2fbd042f556666891880.tar.gz |
add some preprocessor lines to prevent both controler snd0 and
device pcm0 from being loaded into the kernel at the same time. As
this generates compilation errors, I just error out.
Requested-by: Jordan
Diffstat (limited to 'sys/i386/isa/snd/sound.c')
-rw-r--r-- | sys/i386/isa/snd/sound.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/i386/isa/snd/sound.c b/sys/i386/isa/snd/sound.c index a9b5fd5..fcd5e39 100644 --- a/sys/i386/isa/snd/sound.c +++ b/sys/i386/isa/snd/sound.c @@ -54,6 +54,11 @@ #if NPCM > 0 /* from "snd.h" */ +#include "snd.h" +#if NSND > 0 +#error Can't have both Luigi's (pcm0) and voxware (snd0) at the same time. +#endif + #define SNDSTAT_BUF_SIZE 4000 static char status_buf[SNDSTAT_BUF_SIZE] ; static int status_len = 0 ; |