Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Call audio_mix for a third time - thus ensuring ther...



details:   https://anonhg.NetBSD.org/src/rev/a09522c45fe3
branches:  trunk
changeset: 826735:a09522c45fe3
user:      nat <nat%NetBSD.org@localhost>
date:      Tue Sep 26 04:34:59 2017 +0000

description:
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.

diffstat:

 sys/dev/audio.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 19073e3c0303 -r a09522c45fe3 sys/dev/audio.c
--- a/sys/dev/audio.c   Mon Sep 25 23:19:31 2017 +0000
+++ b/sys/dev/audio.c   Tue Sep 26 04:34:59 2017 +0000
@@ -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 <nathanialsloss%yahoo.com.au@localhost>
@@ -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 @@
        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)



Home | Main Index | Thread Index | Old Index