diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1994-02-21 14:20:45 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1994-02-21 14:20:45 +0000 |
commit | 2816b4dcc8f8a24b5b70d54429ca8afba173f99d (patch) | |
tree | de8356dd1864a8cf8ba8ab143c8365aa188b2de2 /sys/i386/isa/sound/sb_dsp.c | |
parent | b88ba1eedf8551f31f86b3b62b4c02e72e811289 (diff) | |
download | FreeBSD-src-2816b4dcc8f8a24b5b70d54429ca8afba173f99d.zip FreeBSD-src-2816b4dcc8f8a24b5b70d54429ca8afba173f99d.tar.gz |
>From: "Andrew A. Chernov" <ache@freefall.cdrom.com>
Subject: Bugfix for SB16 with DSP version 4 and above
No description sent, but it appears to fix a major number problem
with certain models of the SB16.
Diffstat (limited to 'sys/i386/isa/sound/sb_dsp.c')
-rw-r--r-- | sys/i386/isa/sound/sb_dsp.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/i386/isa/sound/sb_dsp.c b/sys/i386/isa/sound/sb_dsp.c index a6e49ca..4c27364 100644 --- a/sys/i386/isa/sound/sb_dsp.c +++ b/sys/i386/isa/sound/sb_dsp.c @@ -1262,8 +1262,7 @@ sb_dsp_init (long mem_start, struct address_info *hw_config) } } } - if (major == 2) - dsp_model = 2; + dsp_model = major; #ifndef EXCLUDE_SBPRO if (detect_mixer ()) @@ -1271,14 +1270,9 @@ sb_dsp_init (long mem_start, struct address_info *hw_config) dsp_mono = 0; sprintf (sb_dsp_operations.name, "SoundBlaster Pro %d.%d", major, minor); init_mixer (); -#if SBC_DMA < 4 - /* This is a kludge for SB16 cards */ - if (major == 3) - dsp_model = 2; /* Do not enable if SB16 */ -#endif mixer_devs[num_mixers++] = &sb_mixer_operations; - if (major == 2 || major == 3) + if (major >= 2) duplex_midi = 1; #ifndef EXCLUDE_YM8312 |