Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/xscale Don't lock sc->sc_intr_lock at halt_outp...
details: https://anonhg.NetBSD.org/src/rev/ade9bc6fa5dd
branches: trunk
changeset: 772767:ade9bc6fa5dd
user: nonaka <nonaka%NetBSD.org@localhost>
date: Sun Jan 15 10:59:50 2012 +0000
description:
Don't lock sc->sc_intr_lock at halt_output(), halt_input().
sc->sc_intr_lock is already locked by audio_close().
diffstat:
sys/arch/arm/xscale/pxa2x0_i2s.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (62 lines):
diff -r 387215fc9207 -r ade9bc6fa5dd sys/arch/arm/xscale/pxa2x0_i2s.c
--- a/sys/arch/arm/xscale/pxa2x0_i2s.c Sun Jan 15 10:51:12 2012 +0000
+++ b/sys/arch/arm/xscale/pxa2x0_i2s.c Sun Jan 15 10:59:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pxa2x0_i2s.c,v 1.10 2011/11/23 23:07:29 jmcneill Exp $ */
+/* $NetBSD: pxa2x0_i2s.c,v 1.11 2012/01/15 10:59:50 nonaka Exp $ */
/* $OpenBSD: pxa2x0_i2s.c,v 1.7 2006/04/04 11:45:40 pascoe Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pxa2x0_i2s.c,v 1.10 2011/11/23 23:07:29 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pxa2x0_i2s.c,v 1.11 2012/01/15 10:59:50 nonaka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -322,12 +322,10 @@
{
struct pxa2x0_i2s_softc *sc = hdl;
- mutex_spin_enter(sc->sc_intr_lock);
if (sc->sc_txdma) {
pxa2x0_dmac_abort_xfer(sc->sc_txdma->dx);
sc->sc_txdma = NULL;
}
- mutex_spin_exit(sc->sc_intr_lock);
return 0;
}
@@ -337,12 +335,10 @@
{
struct pxa2x0_i2s_softc *sc = hdl;
- mutex_spin_enter(sc->sc_intr_lock);
if (sc->sc_rxdma) {
pxa2x0_dmac_abort_xfer(sc->sc_rxdma->dx);
sc->sc_rxdma = NULL;
}
- mutex_spin_exit(sc->sc_intr_lock);
return 0;
}
@@ -368,7 +364,7 @@
}
if (p == NULL) {
aprint_error("pxa2x0_i2s_start_output: "
- "request with bad start address: %p, size: %d)\n",
+ "request with bad start address: %p, size: %d\n",
block, bsize);
return ENXIO;
}
@@ -418,7 +414,7 @@
}
if (p == NULL) {
aprint_error("pxa2x0_i2s_start_input: "
- "request with bad start address: %p, size: %d)\n",
+ "request with bad start address: %p, size: %d\n",
block, bsize);
return ENXIO;
}
Home |
Main Index |
Thread Index |
Old Index