diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2016-07-02 16:28:51 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2016-07-02 16:28:51 +0000 |
commit | 34e2c4c2ed23434dbce04c3030d9dbeec8e8da85 (patch) | |
tree | c11ce38449da3cedb186cde9485c985bb91ef239 /sys/arch/macppc/dev | |
parent | 94c6e4b6cf36c7bf3338bbbc04b2566cfc38d00e (diff) |
Get 'AOAShasta' soundchip working found on PowerMac9,1.
ok deraadt
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r-- | sys/arch/macppc/dev/aoa.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/aoa.c b/sys/arch/macppc/dev/aoa.c index 3204107a1c4..990104f46c5 100644 --- a/sys/arch/macppc/dev/aoa.c +++ b/sys/arch/macppc/dev/aoa.c @@ -1,4 +1,4 @@ -/* $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. @@ -55,6 +55,7 @@ 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 *); @@ -123,6 +124,8 @@ aoa_match(struct device *parent, void *match, void *aux) return (1); if (strcmp(compat, "AOAK2") == 0) return (1); + if (strcmp(compat, "AOAShasta") == 0) + return (1); return (0); } @@ -135,7 +138,16 @@ aoa_attach(struct device *parent, struct device *self, void *aux) 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 |