summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/pcm/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index ec6d1db..f12571f 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -318,7 +318,7 @@ chn_rdfeed(struct pcm_channel *c)
c->xruns++;
ret = (amt > 0)? sndbuf_feed(b, bs, c, c->feeder, amt) : 0;
- amt -= sndbuf_getready(b);
+ amt = sndbuf_getready(b);
if (amt > 0)
chn_rddump(c, amt);
OpenPOWER on IntegriCloud