Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/pnpbios If we don't get record drq from pnpbio...
details: https://anonhg.NetBSD.org/src/rev/b7da32c5c0b8
branches: trunk
changeset: 537603:b7da32c5c0b8
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Oct 03 03:02:11 2002 +0000
description:
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.
diffstat:
sys/arch/i386/pnpbios/wss_pnpbios.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bdcfa300b9f6 -r b7da32c5c0b8 sys/arch/i386/pnpbios/wss_pnpbios.c
--- a/sys/arch/i386/pnpbios/wss_pnpbios.c Thu Oct 03 02:56:47 2002 +0000
+++ b/sys/arch/i386/pnpbios/wss_pnpbios.c Thu Oct 03 03:02:11 2002 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
#include <sys/systm.h>
@@ -145,7 +145,7 @@
}
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;
Home |
Main Index |
Thread Index |
Old Index