Module Name: src
Committed By: nat
Date: Tue Sep 26 04:34:59 UTC 2017
Modified Files:
src/sys/dev: audio.c
Log Message:
Call audio_mix for a third time - thus ensuring there is a block of data
in the mix ring before the audio interrupt occurs.
This addresses the instability seen in the audio atf tests.
To generate a diff of this commit:
cvs rdiff -u -r1.407 -r1.408 src/sys/dev/audio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/audio.c
diff -u src/sys/dev/audio.c:1.407 src/sys/dev/audio.c:1.408
--- src/sys/dev/audio.c:1.407 Sun Sep 24 23:40:41 2017
+++ src/sys/dev/audio.c Tue Sep 26 04:34:59 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.407 2017/09/24 23:40:41 nat Exp $ */
+/* $NetBSD: audio.c,v 1.408 2017/09/26 04:34:59 nat Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <[email protected]>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.407 2017/09/24 23:40:41 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.408 2017/09/26 04:34:59 nat Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -3466,6 +3466,7 @@ audiostartp(struct audio_softc *sc, stru
if (sc->sc_trigger_started == false) {
audio_mix(sc);
audio_mix(sc);
+ audio_mix(sc);
mutex_enter(sc->sc_intr_lock);
error = mix_write(sc);
if (error)