From bc68323a39d7759080d95efc1b816e4381a0ba57 Mon Sep 17 00:00:00 2001 From: kristerw Date: Sun, 6 Oct 2002 10:01:08 +0000 Subject: [PATCH] Correct test for busy-ness when setting parameters. --- sys/dev/usb/uaudio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index 463eed7623cd..2678a9a2a601 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -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 -__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 #include @@ -2352,8 +2352,8 @@ uaudio_set_params(void *addr, int setmode, int usemode, 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)