summaryrefslogtreecommitdiff
path: root/sys/dev/isa/wss.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-04-24 16:51:17 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-04-24 16:51:17 +0000
commit8ff0d5db49985373e4caa373fd6a26d84ca156d0 (patch)
tree52c6594609011181f59a0ed68f66c89e0a9b6b74 /sys/dev/isa/wss.c
parentd26781b754db6580efdc46fc1dff567c5e53d57f (diff)
Add OPTi 82C929 chipset support for sound(wss,sb)/cd(mcd,scd,pcd,atapi)
card. This is software programable card. Missing: SB support (no srcs available, and dos's exe is too big ;) Not tested: pcd(panasonic cd)(no driver); mcd,atapi(have no hw).
Diffstat (limited to 'sys/dev/isa/wss.c')
-rw-r--r--sys/dev/isa/wss.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/isa/wss.c b/sys/dev/isa/wss.c
index ba0b2fb7df2..7e9b14296bf 100644
--- a/sys/dev/isa/wss.c
+++ b/sys/dev/isa/wss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wss.c,v 1.8 1996/04/21 22:24:49 deraadt Exp $ */
+/* $OpenBSD: wss.c,v 1.9 1996/04/24 16:51:15 mickey Exp $ */
/* $NetBSD: wss.c,v 1.11 1996/04/11 22:30:46 cgd Exp $ */
/*
@@ -57,6 +57,7 @@
#include <dev/ic/ad1848reg.h>
#include <dev/isa/ad1848var.h>
#include <dev/isa/wssreg.h>
+#include <dev/isa/opti.h>
/*
* Mixer devices
@@ -194,11 +195,16 @@ wssprobe(parent, match, aux)
return 0;
}
+ if( !opti_snd_setup( OPTI_WSS, iobase, ia->ia_irq, ia->ia_drq ) )
+ printf("ad_detect_A: could not setup OPTi chipset.\n");
+
sc->sc_ad1848.sc_iobase = iobase;
/* Is there an ad1848 chip at the WSS iobase ? */
- if (ad1848_probe(&sc->sc_ad1848) == 0)
+ if (ad1848_probe(&sc->sc_ad1848) == 0) {
+ printf("ad_detect_A: no ad1848 found.\n");
return 0;
+ }
ia->ia_iosize = WSS_NPORT;