-.\" $OpenBSD: aoa.4,v 1.8 2015/01/15 20:37:36 schwarze Exp $
+.\" $OpenBSD: aoa.4,v 1.9 2016/07/02 16:28:50 mglocker Exp $
.\"
.\" Copyright (c) 2005 Joris Vink.
.\" Copyright (c) 2004 Dale Rahn.
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"
-.Dd $Mdocdate: January 15 2015 $
+.Dd $Mdocdate: July 2 2016 $
.Dt AOA 4 macppc
.Os
.Sh NAME
.It
PowerMac7,3
.It
+PowerMac9,1
+.It
PowerMac10,1
.It
PowerMac10,2
-/* $OpenBSD: aoa.c,v 1.6 2010/02/26 21:52:14 jasper Exp $ */
+/* $OpenBSD: aoa.c,v 1.7 2016/07/02 16:28:50 mglocker Exp $ */
/*-
* Copyright (c) 2005 Tsubai Masanari. All rights reserved.
int aoa_getdev(void *, struct audio_device *);
int aoa_match(struct device *, void *, void *);
void aoa_attach(struct device *, struct device *, void *);
+void aoa_defer(struct device *);
void aoa_set_volume(struct aoa_softc *, int, int);
void aoa_get_default_params(void *, int, struct audio_params *);
return (1);
if (strcmp(compat, "AOAK2") == 0)
return (1);
+ if (strcmp(compat, "AOAShasta") == 0)
+ return (1);
return (0);
}
sc->sc_setvolume = aoa_set_volume;
i2s_attach(parent, sc, aux);
+ config_defer(self, aoa_defer);
+}
+
+void
+aoa_defer(struct device *dev)
+{
+ struct aoa_softc *sc = (struct aoa_softc *)dev;
+
audio_attach_mi(&aoa_hw_if, sc, &sc->sc_dev);
+ deq_reset(sc);
}
int