Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/isapnp Add opl at wss for isapnp devices w/o MAD chip.
details: https://anonhg.NetBSD.org/src/rev/26a10047c46b
branches: trunk
changeset: 476106:26a10047c46b
user: rh <rh%NetBSD.org@localhost>
date: Mon Sep 06 18:31:45 1999 +0000
description:
Add opl at wss for isapnp devices w/o MAD chip.
diffstat:
sys/dev/isapnp/wss_isapnp.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r d138d82f6f51 -r 26a10047c46b sys/dev/isapnp/wss_isapnp.c
--- a/sys/dev/isapnp/wss_isapnp.c Mon Sep 06 17:16:47 1999 +0000
+++ b/sys/dev/isapnp/wss_isapnp.c Mon Sep 06 18:31:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wss_isapnp.c,v 1.9 1999/03/22 14:29:14 mycroft Exp $ */
+/* $NetBSD: wss_isapnp.c,v 1.10 1999/09/06 18:31:45 rh Exp $ */
/*
* Copyright (c) 1997, 1999 The NetBSD Foundation, Inc.
@@ -172,4 +172,16 @@
ipa->ipa_devclass);
wssattach(sc);
+
+ /* set up OPL I/O handle for ISAPNP boards w/o MAD */
+ if (ipa->ipa_nio > 1 && sc->mad_chip_type == MAD_NONE) {
+ struct audio_attach_args arg;
+
+ sc->sc_opl_ioh = ipa->ipa_io[1].h;
+
+ arg.type = AUDIODEV_TYPE_OPL;
+ arg.hwif = 0;
+ arg.hdl = 0;
+ (void)config_found(&ac->sc_dev, &arg, audioprint);
+ }
}
Home |
Main Index |
Thread Index |
Old Index