Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio audio: Only restart recording mixer on resume ...



details:   https://anonhg.NetBSD.org/src/rev/8eb24b48b8d0
branches:  trunk
changeset: 933528:8eb24b48b8d0
user:      nia <nia%NetBSD.org@localhost>
date:      Tue May 26 15:20:16 2020 +0000

description:
audio: Only restart recording mixer on resume if it's already been started

diffstat:

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

diffs (27 lines):

diff -r de53f05f9800 -r 8eb24b48b8d0 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Tue May 26 14:03:21 2020 +0000
+++ b/sys/dev/audio/audio.c     Tue May 26 15:20:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.73 2020/05/26 11:43:00 nia Exp $   */
+/*     $NetBSD: audio.c,v 1.74 2020/05/26 15:20:16 nia Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.73 2020/05/26 11:43:00 nia Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.74 2020/05/26 15:20:16 nia Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -7789,7 +7789,7 @@
 
        if (!sc->sc_pbusy)
                audio_pmixer_start(sc, true);
-       if (!sc->sc_rbusy)
+       if (!sc->sc_rbusy && sc->sc_ropens > 0)
                audio_rmixer_start(sc);
 
        audio_exlock_mutex_exit(sc);



Home | Main Index | Thread Index | Old Index