From 390c36aab07cbefd3431dcaf2e7def68bd6e75fb Mon Sep 17 00:00:00 2001 From: netchild Date: Sun, 31 Jul 2005 13:51:04 +0000 Subject: - Fixup the locking. - Don't mark MPSAFE (yet). Submitted by: Ariff Abdullah --- sys/dev/sound/isa/ess.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/dev/sound/isa/ess.c') diff --git a/sys/dev/sound/isa/ess.c b/sys/dev/sound/isa/ess.c index 248aebe..64d617c 100644 --- a/sys/dev/sound/isa/ess.c +++ b/sys/dev/sound/isa/ess.c @@ -361,8 +361,11 @@ ess_intr(void *arg) rirq = (src & sc->rch.hwch)? 1 : 0; if (pirq) { - if (sc->pch.run) + if (sc->pch.run) { + ess_unlock(sc); chn_intr(sc->pch.channel); + ess_lock(sc); + } if (sc->pch.stopping) { sc->pch.run = 0; sndbuf_dma(sc->pch.buffer, PCMTRIG_STOP); @@ -375,8 +378,11 @@ ess_intr(void *arg) } if (rirq) { - if (sc->rch.run) + if (sc->rch.run) { + ess_unlock(sc); chn_intr(sc->rch.channel); + ess_lock(sc); + } if (sc->rch.stopping) { sc->rch.run = 0; sndbuf_dma(sc->rch.buffer, PCMTRIG_STOP); -- cgit v1.1