From 0cb0953e29c508cec519c2248ab8389f1c7b3010 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 1 May 2007 20:12:21 +0000 Subject: [PATCH] Handle stop_src TRIG_COUNT with more than one channel correctly when doing output dma. --- comedi/drivers/mite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2