summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-04-29 02:31:02 +0000
committercg <cg@FreeBSD.org>2001-04-29 02:31:02 +0000
commit92d7ad4004a51f2ffc4e8141df3233065f426cfd (patch)
tree107412c7558e6985e1039938a1ed0f95c57bc471 /sys/dev
parent9ae1854b2c721494d66f5cc74fc59a35f53ab3b5 (diff)
downloadFreeBSD-src-92d7ad4004a51f2ffc4e8141df3233065f426cfd.zip
FreeBSD-src-92d7ad4004a51f2ffc4e8141df3233065f426cfd.tar.gz
don't unlock the channel in chn_read, msleep will do it for us.
PR: kern/26430
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sound/pcm/channel.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index 83a98d1..8eec528 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -380,9 +380,7 @@ chn_read(struct pcm_channel *c, struct uio *buf)
timeout = (hz * sndbuf_getblksz(bs)) / (sndbuf_getspd(bs) * sndbuf_getbps(bs));
if (timeout < 1)
timeout = 1;
- CHN_UNLOCK(c);
ret = chn_sleep(c, "pcmrd", timeout);
- CHN_LOCK(c);
if (ret == EWOULDBLOCK) {
count -= timeout;
ret = 0;
OpenPOWER on IntegriCloud