summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-03-04 12:42:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-03-04 12:42:24 +0000
commit1e808c7378799a7c3dc61940de832c233bcefdd1 (patch)
tree43a1c0229daa499347332b671efdbe2269af9669 /sys
parent95f5083a90a3231564f7f275a1e2c2b4ee8b9936 (diff)
Internal interrupt counters should be compiled only if option AUDIO_DEBUG
rather than if option DIAGNOSTIC.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/gus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/isa/gus.c b/sys/dev/isa/gus.c
index 0673da05c23..657e07c1286 100644
--- a/sys/dev/isa/gus.c
+++ b/sys/dev/isa/gus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gus.c,v 1.28 2005/10/19 22:52:02 fgsch Exp $ */
+/* $OpenBSD: gus.c,v 1.29 2006/03/04 12:42:23 miod Exp $ */
/* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */
/*-
@@ -652,7 +652,7 @@ gusclose(addr)
* GUS for simple playback/record
*/
-#ifdef DIAGNOSTIC
+#ifdef AUDIO_DEBUG
int gusintrcnt;
int gusdmaintrcnt;
int gusvocintrcnt;
@@ -671,14 +671,14 @@ gusintr(arg)
int retval = 0;
DPRINTF(("gusintr\n"));
-#ifdef DIAGNOSTIC
+#ifdef AUDIO_DEBUG
gusintrcnt++;
#endif
if (HAS_CODEC(sc))
retval = ad1848_intr(&sc->sc_codec);
if ((intr = bus_space_read_1(iot, ioh1, GUS_IRQ_STATUS)) & GUSMASK_IRQ_DMATC) {
DMAPRINTF(("gusintr dma flags=%x\n", sc->sc_flags));
-#ifdef DIAGNOSTIC
+#ifdef AUDIO_DEBUG
gusdmaintrcnt++;
#endif
retval += gus_dmaout_intr(sc);
@@ -692,7 +692,7 @@ gusintr(arg)
}
if (intr & (GUSMASK_IRQ_VOICE | GUSMASK_IRQ_VOLUME)) {
DMAPRINTF(("gusintr voice flags=%x\n", sc->sc_flags));
-#ifdef DIAGNOSTIC
+#ifdef AUDIO_DEBUG
gusvocintrcnt++;
#endif
retval += gus_voice_intr(sc);