Module Name:    src
Committed By:   nat
Date:           Fri Oct 14 20:29:45 UTC 2016

Modified Files:
        src/sys/arch/arm/broadcom: bcm2835_vcaudio.c

Log Message:
Only run interrupt during playback.

OK skrll@


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/broadcom/bcm2835_vcaudio.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/arch/arm/broadcom/bcm2835_vcaudio.c
diff -u src/sys/arch/arm/broadcom/bcm2835_vcaudio.c:1.10 src/sys/arch/arm/broadcom/bcm2835_vcaudio.c:1.11
--- src/sys/arch/arm/broadcom/bcm2835_vcaudio.c:1.10	Tue Jul 28 21:24:43 2015
+++ src/sys/arch/arm/broadcom/bcm2835_vcaudio.c	Fri Oct 14 20:29:45 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_vcaudio.c,v 1.10 2015/07/28 21:24:43 skrll Exp $ */
+/* $NetBSD: bcm2835_vcaudio.c,v 1.11 2016/10/14 20:29:45 nat Exp $ */
 
 /*-
  * Copyright (c) 2013 Jared D. McNeill <jmcne...@invisible.ca>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_vcaudio.c,v 1.10 2015/07/28 21:24:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_vcaudio.c,v 1.11 2016/10/14 20:29:45 nat Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -436,7 +436,7 @@ vcaudio_service_callback(void *priv, con
 				sched = true;
 			}
 
-			if (sched) {
+			if (sched && sc->sc_pint) {
 				intr(intrarg);
 				sc->sc_abytes += sc->sc_pblksize;
 				cv_signal(&sc->sc_datacv);

Reply via email to