@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.256 2011/12/09 05:08:25 mrg Exp $ */
+/* $NetBSD: audio.c,v 1.257 2011/12/13 12:26:32 mrg Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -155,7 +155,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.256 2011/12/09 05:08:25 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.257 2011/12/13 12:26:32 mrg Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -492,9 +492,9 @@
return;
}
- sc->sc_sih_rd = softint_establish(SOFTINT_NET | SOFTINT_MPSAFE,
+ sc->sc_sih_rd = softint_establish(SOFTINT_SERIAL | SOFTINT_MPSAFE,
audio_softintr_rd, sc);
- sc->sc_sih_wr = softint_establish(SOFTINT_NET | SOFTINT_MPSAFE,
+ sc->sc_sih_wr = softint_establish(SOFTINT_SERIAL | SOFTINT_MPSAFE,
audio_softintr_wr, sc);
iclass = mclass = oclass = rclass = -1;
@@ -1,4 +1,4 @@
-/* $NetBSD: uaudio.c,v 1.125 2011/12/09 05:03:18 mrg Exp $ */
+/* $NetBSD: uaudio.c,v 1.126 2011/12/13 12:26:32 mrg Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.125 2011/12/09 05:03:18 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.126 2011/12/13 12:26:32 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2465,10 +2465,8 @@
DPRINTFN(5,"which=%d chan=%d\n", which, chan);
KERNEL_LOCK(1, curlwp);
- mutex_exit(&sc->sc_lock);
val = uaudio_get(sc, which, UT_READ_CLASS_INTERFACE, mc->wValue[chan],
mc->wIndex, MIX_SIZE(mc->type));
- mutex_enter(&sc->sc_lock);
KERNEL_UNLOCK_ONE(curlwp);
return uaudio_value2bsd(mc, val);
}
@@ -2480,10 +2478,8 @@
val = uaudio_bsd2value(mc, val);
KERNEL_LOCK(1, curlwp);
- mutex_exit(&sc->sc_lock);
uaudio_set(sc, which, UT_WRITE_CLASS_INTERFACE, mc->wValue[chan],
mc->wIndex, MIX_SIZE(mc->type), val);
- mutex_enter(&sc->sc_lock);
KERNEL_UNLOCK_ONE(curlwp);
}