From: Frank Mori Hess Date: Tue, 1 May 2007 20:12:21 +0000 (+0000) Subject: Handle stop_src TRIG_COUNT with more than one channel correctly X-Git-Tag: r0_7_74~93 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0cb0953e29c508cec519c2248ab8389f1c7b3010;p=comedi.git Handle stop_src TRIG_COUNT with more than one channel correctly when doing output dma. --- diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index 29a980b0..6b4f3e82 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -519,7 +519,8 @@ int mite_sync_output_dma(struct mite_channel *mite_chan, comedi_async *async) int count; u32 nbytes_ub, nbytes_lb; unsigned int old_alloc_count; - u32 stop_count = async->cmd.stop_arg * bytes_per_sample(async->subdevice); + u32 stop_count = async->cmd.stop_arg * bytes_per_sample(async->subdevice) * + async->cmd.chanlist_len; old_alloc_count = async->buf_read_alloc_count; // read alloc as much as we can