From 88bbadf749d9185ea7ced4be6ced97feed694f7a Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 26 Mar 1997 16:07:20 +0000 Subject: [PATCH] Return ports number in probe now --- sys/i386/isa/sound/adlib_card.c | 5 ++++- sys/i386/isa/sound/sb16_midi.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/i386/isa/sound/adlib_card.c b/sys/i386/isa/sound/adlib_card.c index aabd8379cde2..a2e7b05368e7 100644 --- a/sys/i386/isa/sound/adlib_card.c +++ b/sys/i386/isa/sound/adlib_card.c @@ -45,7 +45,10 @@ attach_adlib_card (long mem_start, struct address_info *hw_config) int probe_adlib (struct address_info *hw_config) { - return opl3_detect (FM_MONO); + if (opl3_detect (FM_MONO)) + return 4; + else + return 0; } #endif diff --git a/sys/i386/isa/sound/sb16_midi.c b/sys/i386/isa/sound/sb16_midi.c index aaf607fdf1b7..27955b2f0739 100644 --- a/sys/i386/isa/sound/sb16_midi.c +++ b/sys/i386/isa/sound/sb16_midi.c @@ -307,7 +307,10 @@ probe_sb16midi (struct address_info *hw_config) ok = reset_sb16midi (); sb16midi_detected = ok; - return ok; + if (ok) + return 2; + else + return 0; } #endif