summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorsoren <soren@NetBSD.org>2004-01-03 14:11:36 +0000
committersoren <soren@NetBSD.org>2004-01-03 14:11:36 +0000
commit04fd7f93832adbfa96ebcb3c0224da1231c34bed (patch)
tree4723f2a81d9c475c980485bd3181f13916a74f4d /sys/dev
parent986979b8c9e3494856a2198e0ccfa4dfcb0e383b (diff)
Only report codec readiness if DEBUG to avoid printing it on every resume.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/auich.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c
index d7c97ffa6c9..3556f8c6a5d 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $NetBSD: auich.c,v 1.56 2003/12/28 12:31:30 kent Exp $ */
+/* $NetBSD: auich.c,v 1.57 2004/01/03 14:11:36 soren Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.56 2003/12/28 12:31:30 kent Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.57 2004/01/03 14:11:36 soren Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -628,12 +628,14 @@ auich_reset_codec(void *v)
printf("%s: auich_reset_codec: time out\n", sc->sc_dev.dv_xname);
/* XXX: should not attach the audio device */
} else {
+#ifdef DEBUG
if (status & ICH_SCR)
printf("%s: The 2nd codec is ready.\n",
sc->sc_dev.dv_xname);
if (status & ICH_S2CR)
printf("%s: The 3rd codec is ready.\n",
sc->sc_dev.dv_xname);
+#endif
}
}