Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/dev Make this work with AUDIO_C_HANDLER.



details:   https://anonhg.NetBSD.org/src/rev/2f712f6e0999
branches:  trunk
changeset: 532718:2f712f6e0999
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Thu Jun 13 21:02:45 2002 +0000

description:
Make this work with AUDIO_C_HANDLER.

diffstat:

 sys/arch/sparc/dev/audioamd.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r a637048f1cf4 -r 2f712f6e0999 sys/arch/sparc/dev/audioamd.c
--- a/sys/arch/sparc/dev/audioamd.c     Thu Jun 13 20:57:03 2002 +0000
+++ b/sys/arch/sparc/dev/audioamd.c     Thu Jun 13 21:02:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audioamd.c,v 1.8 2002/03/11 16:27:01 pk Exp $  */
+/*     $NetBSD: audioamd.c,v 1.9 2002/06/13 21:02:45 gmcgarry Exp $    */
 /*     NetBSD: am7930_sparc.c,v 1.44 1999/03/14 22:29:00 jonathan Exp  */
 
 /*
@@ -391,9 +391,10 @@
 
 #ifdef AUDIO_C_HANDLER
 int
-am7930hwintr(sc)
-       struct audioamd_softc *au0;
+am7930hwintr(v)
+       void *v;
 {
+       struct audioamd_softc *sc = v;
        struct auio *au = &sc->sc_au;
        u_int8_t *d, *e;
        int k;
@@ -425,7 +426,7 @@
                }
        }
 
-       *(au->au_intrcnt)++;
+       au->au_intrcnt.ev_count++;
        return (1);
 }
 #endif /* AUDIO_C_HANDLER */



Home | Main Index | Thread Index | Old Index