aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-03-26 17:14:21 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-03-26 17:14:21 +0000
commitcc13c79696f2a6e8e74311c148a74bfc569b6786 (patch)
tree58936c295291e4b08f42c04dab34a2ed024e162c
parent7ee2669b4c809731bb538e530b7dd3665c97e708 (diff)
downloadsrc-cc13c79696f2a6e8e74311c148a74bfc569b6786.tar.gz
src-cc13c79696f2a6e8e74311c148a74bfc569b6786.zip
Pass configured irq and ports number back to isa
Notes
Notes: svn path=/head/; revision=24297
-rw-r--r--sys/i386/isa/sound/sb16_dsp.c5
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 98c985b13167..5052bf354ed3 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