Module Name:    src
Committed By:   nat
Date:           Sun Aug  6 10:07:31 UTC 2017

Modified Files:
        src/sys/dev: audio.c

Log Message:
Ensure to call mix write if inserting silence into the hw ring.

Addresses PR kern/52459.

Patch provided and tested by isaki@.


To generate a diff of this commit:
cvs rdiff -u -r1.386 -r1.387 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.386 src/sys/dev/audio.c:1.387
--- src/sys/dev/audio.c:1.386	Sat Aug  5 13:34:06 2017
+++ src/sys/dev/audio.c	Sun Aug  6 10:07:31 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: audio.c,v 1.386 2017/08/05 13:34:06 nat Exp $	*/
+/*	$NetBSD: audio.c,v 1.387 2017/08/06 10:07:31 nat Exp $	*/
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <nathanialsl...@yahoo.com.au>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.386 2017/08/05 13:34:06 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.387 2017/08/06 10:07:31 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -3682,12 +3682,10 @@ audio_pint(void *v)
 			    vc->sc_mpr.s.inp, cc);
 			used -= cc;
 		}
-		goto wake_mix;
 	}
 
 	mix_write(sc);
 
-wake_mix:
 	cv_broadcast(&sc->sc_condvar);
 }
 

Reply via email to