Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/dev Apply patch (requested by nat in ticket #1433):
details: https://anonhg.NetBSD.org/src/rev/51b788432c42
branches: netbsd-7
changeset: 800242:51b788432c42
user: snj <snj%NetBSD.org@localhost>
date: Sat Jul 08 16:37:54 2017 +0000
description:
Apply patch (requested by nat in ticket #1433):
Fix occasional stuttering that can be caused by ringbuffer overflow.
diffstat:
sys/dev/audio.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 22dea4beba0a -r 51b788432c42 sys/dev/audio.c
--- a/sys/dev/audio.c Sat Jul 08 16:34:35 2017 +0000
+++ b/sys/dev/audio.c Sat Jul 08 16:37:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.263.2.1 2014/11/23 13:07:05 martin Exp $ */
+/* $NetBSD: audio.c,v 1.263.2.2 2017/07/08 16:37:54 snj Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -155,7 +155,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.263.2.1 2014/11/23 13:07:05 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.263.2.2 2017/07/08 16:37:54 snj Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -2960,6 +2960,9 @@
return;
}
+ if (audio_stream_get_used(&cb->s) > (cb->usedhigh - cb->blksize))
+ goto done;
+
#ifdef AUDIO_INTR_TIME
{
struct timeval tv;
@@ -3038,6 +3041,7 @@
}
DPRINTFN(5, ("audio_pint: outp=%p cc=%d\n", cb->s.outp, blksize));
+done:
if (hw->trigger_output == NULL) {
error = hw->start_output(sc->hw_hdl, __UNCONST(cb->s.outp),
blksize, audio_pint, (void *)sc);
Home |
Main Index |
Thread Index |
Old Index