summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2016-11-08 06:04:25 +0000
committerratchov <ratchov@openbsd.org>2016-11-08 06:04:25 +0000
commite6f81cb1db76f0bfa1cb388f4019d62e92f11ffc (patch)
treeeaa60ac56ff514edd25804e107ef8a83bb167d2e /sys
parentReduce the ternary operator abuse (diff)
downloadwireguard-openbsd-e6f81cb1db76f0bfa1cb388f4019d62e92f11ffc.tar.xz
wireguard-openbsd-e6f81cb1db76f0bfa1cb388f4019d62e92f11ffc.zip
Log start/stop of DMA if AUDIO_DEBUG is defined and be less verbose
about buffer parameters. No behaviour change.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/audio.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index 6859d71e6d9..5a90142a32d 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.156 2016/10/09 11:37:23 kettenis Exp $ */
+/* $OpenBSD: audio.c,v 1.157 2016/11/08 06:04:25 ratchov Exp $ */
/*
* Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org>
*
@@ -499,16 +499,7 @@ audio_start_do(struct audio_softc *sc)
unsigned char *ptr;
size_t count;
- DPRINTFN(1, "%s: start play: "
- "start = %zu, used = %zu, "
- "len = %zu, blksz = %zu\n",
- DEVNAME(sc), sc->play.start, sc->play.used,
- sc->play.len, sc->play.blksz);
- DPRINTFN(1, "%s: start rec: "
- "start = %zu, used = %zu, "
- "len = %zu, blksz = %zu\n",
- DEVNAME(sc), sc->rec.start, sc->rec.used,
- sc->rec.len, sc->rec.blksz);
+ DPRINTF("%s: starting\n", DEVNAME(sc));
error = 0;
sc->offs = 0;
@@ -568,6 +559,7 @@ audio_stop_do(struct audio_softc *sc)
sc->ops->halt_output(sc->arg);
if (sc->mode & AUMODE_RECORD)
sc->ops->halt_input(sc->arg);
+ DPRINTF("%s: stopped\n", DEVNAME(sc));
return 0;
}