1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Allow low level probe routine pass configured information back to isa

This commit is contained in:
Andrey A. Chernov 1997-03-26 17:12:31 +00:00
parent 27aa98671d
commit 7ee2669b4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24296

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: soundcard.c,v 1.48 1997/02/22 09:38:16 peter Exp $
*/
#include <i386/isa/sound/sound_config.h>
@ -300,9 +300,7 @@ sndprobe (struct isa_device *dev)
hw_config.dma = dev->id_drq;
hw_config.dma_read = dev->id_flags; /* misuse the flags field for read dma*/
if(unit)
#ifdef PC98
if(unit == SNDCARD_PCM86) {
if(unit) {
int result;
result = sndtable_probe (unit, &hw_config);
@ -311,12 +309,8 @@ sndprobe (struct isa_device *dev)
dev->id_drq = hw_config.dma;
return result;
}
else
#endif
return sndtable_probe (unit, &hw_config);
else
return 0;
} else
return 0;
}
static int