Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Ignore the interrupt if playback or recording has no...



details:   https://anonhg.NetBSD.org/src/rev/b7dc76c87ab4
branches:  trunk
changeset: 823675:b7dc76c87ab4
user:      nat <nat%NetBSD.org@localhost>
date:      Tue May 02 07:25:50 2017 +0000

description:
Ignore the interrupt if playback or recording has not started vs not open
for recording or playback.

diffstat:

 sys/dev/audio.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1f5172523d31 -r b7dc76c87ab4 sys/dev/audio.c
--- a/sys/dev/audio.c   Tue May 02 06:37:11 2017 +0000
+++ b/sys/dev/audio.c   Tue May 02 07:25:50 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.331 2017/05/02 06:37:11 nat Exp $  */
+/*     $NetBSD: audio.c,v 1.332 2017/05/02 07:25:50 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.331 2017/05/02 06:37:11 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.332 2017/05/02 07:25:50 nat Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -3604,7 +3604,7 @@
        vc = chan->vc;
        blksize = vc->sc_mpr.blksize;
 
-       if (sc->sc_dying == true || sc->sc_opens == 0)
+       if (sc->sc_dying == true || sc->sc_trigger_started == false)
                return;
 
        if (vc->sc_draining == true) {
@@ -3838,7 +3838,7 @@
 
        KASSERT(mutex_owned(sc->sc_intr_lock));
 
-       if (sc->sc_dying == true || sc->sc_recopens == 0)
+       if (sc->sc_dying == true || sc->sc_rec_started == false)
                return;
 
        blksize = audio_stream_get_used(&sc->sc_rr.s);



Home | Main Index | Thread Index | Old Index