From 12bad248838b404a5c0e743beb2c550613fc19c9 Mon Sep 17 00:00:00 2001 From: rh Date: Mon, 6 Sep 1999 18:31:45 +0000 Subject: [PATCH] Add opl at wss for isapnp devices w/o MAD chip. --- sys/dev/isapnp/wss_isapnp.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sys/dev/isapnp/wss_isapnp.c b/sys/dev/isapnp/wss_isapnp.c index b5a552e9c3f9..d9227aacfe5a 100644 --- a/sys/dev/isapnp/wss_isapnp.c +++ b/sys/dev/isapnp/wss_isapnp.c @@ -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 @@ wss_isapnp_attach(parent, self, aux) 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); + } }