From: Frank Mori Hess Date: Sun, 7 Sep 2003 03:44:30 +0000 (+0000) Subject: fix increment of munge_chan X-Git-Tag: r0_7_69~225 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=495f46f233e3c273aab01c36ccc2131d1f4407b2;p=comedi.git fix increment of munge_chan --- diff --git a/comedi/drivers.c b/comedi/drivers.c index a74a236d..526258c2 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -479,7 +479,7 @@ void comedi_buf_munge( comedi_device *dev, comedi_subdevice *s, s->munge( dev, s, s->async->prealloc_buf + offset, block_size, s->async->munge_chan ); - s->async->munge_chan += num_bytes / bytes_per_sample( s ); + s->async->munge_chan += block_size / bytes_per_sample( s ); s->async->munge_chan %= s->async->cmd.chanlist_len; num_bytes -= block_size; offset = 0;