Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Don't return EIO falsely when dealing with the hardw...



details:   https://anonhg.NetBSD.org/src/rev/4518011e377b
branches:  trunk
changeset: 357547:4518011e377b
user:      nat <nat%NetBSD.org@localhost>
date:      Wed Nov 15 01:45:57 2017 +0000

description:
Don't return EIO falsely when dealing with the hardware vc.
Draining of the hardware vc on close is now possible.

diffstat:

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

diffs (27 lines):

diff -r 8368103d074f -r 4518011e377b sys/dev/audio.c
--- a/sys/dev/audio.c   Wed Nov 15 00:48:42 2017 +0000
+++ b/sys/dev/audio.c   Wed Nov 15 01:45:57 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.431 2017/11/07 09:26:55 nat Exp $  */
+/*     $NetBSD: audio.c,v 1.432 2017/11/15 01:45:57 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.431 2017/11/07 09:26:55 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.432 2017/11/15 01:45:57 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -1605,7 +1605,7 @@
        /* Wait for pending I/O to complete. */
        error = cv_wait_sig(chan, sc->sc_lock);
 
-       if (!sc->sc_usemixer)
+       if (!sc->sc_usemixer || vc == sc->sc_hwvc)
                return error;
 
        found = false;



Home | Main Index | Thread Index | Old Index