summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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