From 50de7c95959c89a8041d297eb5a0f3606a755a68 Mon Sep 17 00:00:00 2001 From: uwe Date: Thu, 3 Oct 2002 03:02:11 +0000 Subject: [PATCH] If we don't get record drq from pnpbios, set it to play drq. Otherwise attaching half-duplex device will trigger panic. NB: ad1848_isa_get_props should probably check for recdrq == -1 as well. --- sys/arch/i386/pnpbios/wss_pnpbios.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/i386/pnpbios/wss_pnpbios.c b/sys/arch/i386/pnpbios/wss_pnpbios.c index a349a78fe6c0..8baa2da41af1 100644 --- a/sys/arch/i386/pnpbios/wss_pnpbios.c +++ b/sys/arch/i386/pnpbios/wss_pnpbios.c @@ -1,4 +1,4 @@ -/* $NetBSD: wss_pnpbios.c,v 1.10 2002/10/02 05:47:18 thorpej Exp $ */ +/* $NetBSD: wss_pnpbios.c,v 1.11 2002/10/03 03:02:11 uwe Exp $ */ /* * Copyright (c) 1999 * Matthias Drochner. All rights reserved. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wss_pnpbios.c,v 1.10 2002/10/02 05:47:18 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wss_pnpbios.c,v 1.11 2002/10/03 03:02:11 uwe Exp $"); #include #include @@ -145,7 +145,7 @@ wss_pnpbios_attach(parent, self, aux) } if (pnpbios_getdmachan(aa->pbt, aa->resc, 1, &sc->wss_recdrq)) { printf(": can't get recording DMA channel"); - sc->wss_recdrq = -1; + sc->wss_recdrq = sc->wss_playdrq; } sc->sc_ad1848.sc_ad1848.sc_iot = sc->sc_iot;