diff options
| author | nia <nia@NetBSD.org> | 2020-05-26 15:20:16 +0000 |
|---|---|---|
| committer | nia <nia@NetBSD.org> | 2020-05-26 15:20:16 +0000 |
| commit | 0fa237a0f6d50df8f2ccbe4fbc111ff92d62564d (patch) | |
| tree | 41c9571b0eeb70b6035b0f87e2de1b51df733542 /sys/dev/audio | |
| parent | 048f437fbf205ab206300a1b343ff40e60d689ce (diff) | |
audio: Only restart recording mixer on resume if it's already been started
Diffstat (limited to 'sys/dev/audio')
| -rw-r--r-- | sys/dev/audio/audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/audio/audio.c b/sys/dev/audio/audio.c index 7340aa65590..fad1086473a 100644 --- a/sys/dev/audio/audio.c +++ b/sys/dev/audio/audio.c @@ -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 @@ audio_resume(device_t dv, const pmf_qual_t *qual) 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); |
