diff options
author | ache <ache@FreeBSD.org> | 1997-03-26 17:14:21 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-26 17:14:21 +0000 |
commit | 662f18df9628e8dafe0d2e6742cc3c28cf8f8cd2 (patch) | |
tree | bec50e6207ebac059a5a47fcc786a00ff4688b20 /sys | |
parent | a3dd619a17726612c29359bd1c426b22fa6fa083 (diff) | |
download | FreeBSD-src-662f18df9628e8dafe0d2e6742cc3c28cf8f8cd2.zip FreeBSD-src-662f18df9628e8dafe0d2e6742cc3c28cf8f8cd2.tar.gz |
Pass configured irq and ports number back to isa
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/isa/sound/sb16_dsp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/isa/sound/sb16_dsp.c b/sys/i386/isa/sound/sb16_dsp.c index 98c985b..5052bf3 100644 --- a/sys/i386/isa/sound/sb16_dsp.c +++ b/sys/i386/isa/sound/sb16_dsp.c @@ -511,7 +511,7 @@ sb16_dsp_detect (struct address_info *hw_config) struct address_info *sb_config; if (sb16_dsp_ok) - return 1; /* Can't drive two cards */ + return 0; /* Can't drive two cards */ if (!(sb_config = sound_getconf (SNDCARD_SB))) { @@ -530,6 +530,7 @@ sb16_dsp_detect (struct address_info *hw_config) return 0; /* Not a SB16 */ hw_config->io_base = sb_config->io_base; + hw_config->irq = sb_config->irq; #ifdef PC98 hw_config->dma = sb_config->dma; #else @@ -557,7 +558,7 @@ sb16_dsp_detect (struct address_info *hw_config) * dsp_showmessage(0xe3,99); */ sb16_dsp_ok = 1; - return 1; + return 0x10; } void |