summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Grant <cg@FreeBSD.org>2000-04-05 05:54:02 +0000
committerCameron Grant <cg@FreeBSD.org>2000-04-05 05:54:02 +0000
commit7c7f2a4a81737e01c68428e9074bcd8bcbec90f9 (patch)
treeee51dd3f1928d9b1342a725ece1eb474a3196d8e
parentd0482be8852e349994cea880a88ac260ba93291b (diff)
Notes
-rw-r--r--sys/dev/sound/pcm/channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index c95db45854f8..91a5cd63ebed 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -120,7 +120,7 @@ chn_polltrigger(pcm_channel *c)
if (c->flags & CHN_F_MAPPED)
trig = ((bs->int_count > bs->prev_int_count) || bs->first_poll);
- else trig = (((c->direction == PCMDIR_PLAY)? bs->rl : bs->fl) < lim);
+ else trig = (((c->direction == PCMDIR_PLAY)? bs->fl : bs->rl) > lim);
return trig;
}
@@ -487,7 +487,7 @@ chn_write(pcm_channel *c, struct uio *buf)
/* Wait for new free space to write new pcm samples. */
splx(s);
- timeout = (buf->uio_resid >= b->dl)? hz / 20 : 1;
+ timeout = 1; /*(buf->uio_resid >= b->dl)? hz / 20 : 1; */
ret = tsleep(b, PRIBIO | PCATCH, "pcmwr", timeout);
s = spltty();
/* if (ret == EINTR) chn_abort(c); */