Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Correct test for busy-ness when setting parameters.



details:   https://anonhg.NetBSD.org/src/rev/a5063d5e9108
branches:  trunk
changeset: 537825:a5063d5e9108
user:      kristerw <kristerw%NetBSD.org@localhost>
date:      Sun Oct 06 10:01:08 2002 +0000

description:
Correct test for busy-ness when setting parameters.

diffstat:

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

diffs (29 lines):

diff -r 433174ef87ef -r a5063d5e9108 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c      Sun Oct 06 09:48:29 2002 +0000
+++ b/sys/dev/usb/uaudio.c      Sun Oct 06 10:01:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uaudio.c,v 1.60 2002/05/18 15:14:39 kent Exp $ */
+/*     $NetBSD: uaudio.c,v 1.61 2002/10/06 10:01:08 kristerw Exp $     */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.60 2002/05/18 15:14:39 kent Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.61 2002/10/06 10:01:08 kristerw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2352,8 +2352,8 @@
        if (sc->sc_dying)
                return (EIO);
 
-       if ((mode == AUMODE_RECORD && sc->sc_recchan.pipe != NULL)
-           || (mode == AUMODE_PLAY && sc->sc_playchan.pipe != NULL))
+       if ((usemode == AUMODE_RECORD && sc->sc_recchan.pipe != NULL)
+           || (usemode == AUMODE_PLAY && sc->sc_playchan.pipe != NULL))
                return (EBUSY);
 
        if (usemode & AUMODE_PLAY && sc->sc_playchan.altidx != -1)



Home | Main Index | Thread Index | Old Index