Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev More debuging output - if mix or hw ring inserts sil...
details: https://anonhg.NetBSD.org/src/rev/b51a0e920b99
branches: trunk
changeset: 353373:b51a0e920b99
user: nat <nat%NetBSD.org@localhost>
date: Tue May 02 06:37:11 2017 +0000
description:
More debuging output - if mix or hw ring inserts silence.
This is to help identify the cause of PR kern/52175.
diffstat:
sys/dev/audio.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 6161a8e26c1d -r b51a0e920b99 sys/dev/audio.c
--- a/sys/dev/audio.c Tue May 02 06:25:05 2017 +0000
+++ b/sys/dev/audio.c Tue May 02 06:37:11 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.330 2017/05/02 06:25:05 nat Exp $ */
+/* $NetBSD: audio.c,v 1.331 2017/05/02 06:37:11 nat Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.330 2017/05/02 06:25:05 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.331 2017/05/02 06:37:11 nat Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -3616,6 +3616,7 @@
vc->sc_mpr.s.outp, blksize);
if (audio_stream_get_used(&sc->sc_pr.s) < blksize) {
+ DPRINTFN(3, ("HW RING - INSERT SILENCE\n"));
used = blksize;
while (used > 0) {
cc = sc->sc_pr.s.end - sc->sc_pr.s.inp;
@@ -3805,9 +3806,10 @@
cb = &sc->sc_pr;
inp = cb->s.inp;
cc = blksize - (inp - cb->s.start) % blksize;
- if (sc->sc_writeme == false)
+ if (sc->sc_writeme == false) {
+ DPRINTFN(3, ("MIX RING EMPTY - INSERT SILENCE\n"));
audio_fill_silence(&vc->sc_mpr.s.param, inp, cc);
- else
+ } else
cc = blksize;
cb->s.inp = audio_stream_add_inp(&cb->s, cb->s.inp, cc);
mutex_exit(sc->sc_intr_lock);
Home |
Main Index |
Thread Index |
Old Index