Let opl attach to ess.

WARNING: it doesn't work yet.
This commit is contained in:
augustss 1998-08-22 22:55:09 +00:00
parent f2ff59edc5
commit c7e036f6e2
2 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ess.c,v 1.23 1998/08/17 21:16:13 augustss Exp $ */
/* $NetBSD: ess.c,v 1.24 1998/08/22 22:55:09 augustss Exp $ */
/*
* Copyright 1997
@ -779,6 +779,7 @@ void
essattach(sc)
struct ess_softc *sc;
{
struct audio_attach_args arg;
struct audio_params pparams, rparams;
int i;
u_int v;
@ -877,6 +878,11 @@ essattach(sc)
audio_attach_mi(&ess_hw_if, sc, &sc->sc_dev);
arg.type = AUDIODEV_TYPE_OPL;
arg.hwif = 0;
arg.hdl = 0;
(void)config_found(&sc->sc_dev, &arg, audioprint);
#ifdef AUDIO_DEBUG
ess_printsc(sc);
#endif

View File

@ -1,4 +1,4 @@
# $NetBSD: files.isa,v 1.72 1998/08/17 21:16:14 augustss Exp $
# $NetBSD: files.isa,v 1.73 1998/08/22 22:55:09 augustss Exp $
#
# Config file and device description for machine-independent ISA code.
# Included by ports that need it. Requires that the SCSI files be
@ -294,12 +294,16 @@ attach wss at isa with wss_isa
file dev/isa/wss_isa.c wss_isa needs-flag
# ESS Technology ES1887/ES888/ES1888
device ess: audio, isadma, mulaw, auconv
define ess { }
device ess: ess, audio, isadma, mulaw, auconv, midibus
file dev/isa/ess.c ess needs-flag
attach ess at isa with ess_isa
file dev/isa/ess_isa.c ess_isa needs-flag
attach opl at ess with opl_ess
file dev/isa/opl_ess.c opl_ess
# Yamaha OPL3-SA3
device ym: audio, isadma, ad1848, auconv
file dev/isa/ym.c ym needs-flag