From: Tim Ousley Date: Mon, 7 May 2001 22:04:13 +0000 (+0000) Subject: oops, undid my last change. no more continuous DMA, but much more stable. X-Git-Tag: r0_7_59~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=66005be95f06b03c3b9b61de4b4f3042bfcf2f58;p=comedi.git oops, undid my last change. no more continuous DMA, but much more stable. --- diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index 2cc5948e..fd3b598d 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -308,9 +308,9 @@ unsigned long mite_ll_from_kvmem(struct mite_struct *mite,comedi_async *async,in prealloc_bufsz=async->prealloc_bufsz; continuous_aq = (async->cmd.stop_src == TRIG_NONE? 1:0); - if(continuous_aq) { - len = prealloc_bufsz; - } + //if(continuous_aq) { + // len = prealloc_bufsz; + //} //len = min(cmd->scan_end_arg*cmd->stop_arg*sizeof(sampl_t), async->data_len); if(async->data_lenring[i-1].next = virt_to_bus(mite->ring); */ - //mite->ring[i].count=0; + mite->ring[i].count=0; - if (continuous_aq&&(i>0)) { - mite->ring[i-1].next = virt_to_bus(mite->ring+0); - }else { - mite->ring[i].count=0; - } + //if (continuous_aq&&(i>0)) { + // mite->ring[i-1].next = virt_to_bus(mite->ring+0); + //}else { + // mite->ring[i].count=0; + //} MDPRINTK("i was %d, size_so_far was %d\n",i,size_so_far);