diff options
author | cg <cg@FreeBSD.org> | 2000-12-27 04:04:36 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2000-12-27 04:04:36 +0000 |
commit | 798d2297a8b3e7fe2dec06b988b0a28f5ff483c6 (patch) | |
tree | a0f405e0427ffed2d50fba3d6ef518b60327e984 | |
parent | 9df0aaf2c16074fa0105c2e70e268a985b85e6bb (diff) | |
download | FreeBSD-src-798d2297a8b3e7fe2dec06b988b0a28f5ff483c6.zip FreeBSD-src-798d2297a8b3e7fe2dec06b988b0a28f5ff483c6.tar.gz |
change irq handler slightly, get rid of superflous messages
-rw-r--r-- | sys/dev/sound/isa/ess.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/sound/isa/ess.c b/sys/dev/sound/isa/ess.c index b9c8362..6aaf242 100644 --- a/sys/dev/sound/isa/ess.c +++ b/sys/dev/sound/isa/ess.c @@ -354,8 +354,8 @@ ess_intr(void *arg) rirq = (src & sc->rch.hwch)? 1 : 0; if (pirq) { - if (!sc->pch.run) - printf("ess: play intr while not running\n"); + if (sc->pch.run) + chn_intr(sc->pch.channel); if (sc->pch.stopping) { sc->pch.run = 0; sndbuf_isadma(sc->pch.buffer, PCMTRIG_STOP); @@ -365,12 +365,11 @@ ess_intr(void *arg) else ess_setmixer(sc, 0x78, ess_getmixer(sc, 0x78) & ~0x03); } - chn_intr(sc->pch.channel); } if (rirq) { - if (!sc->rch.run) - printf("ess: record intr while not running\n"); + if (sc->rch.run) + chn_intr(sc->rch.channel); if (sc->rch.stopping) { sc->rch.run = 0; sndbuf_isadma(sc->rch.buffer, PCMTRIG_STOP); @@ -378,7 +377,6 @@ ess_intr(void *arg) /* XXX: will this stop audio2? */ ess_write(sc, 0xb8, ess_read(sc, 0xb8) & ~0x01); } - chn_intr(sc->rch.channel); } if (src & 2) |