oops, undid my last change. no more continuous DMA, but much more stable.
authorTim Ousley <tim.ousley@ni.com>
Mon, 7 May 2001 22:04:13 +0000 (22:04 +0000)
committerTim Ousley <tim.ousley@ni.com>
Mon, 7 May 2001 22:04:13 +0000 (22:04 +0000)
comedi/drivers/mite.c

index 2cc5948ee72ce07bf45f24b543299a03c87ab50c..fd3b598d362294373f4f6a47ad903a9754911f93 100644 (file)
@@ -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_len<len) {
@@ -336,13 +336,13 @@ unsigned long mite_ll_from_kvmem(struct mite_struct *mite,comedi_async *async,in
        To make a looping ring for continuous acquisition, 
        mite->ring[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);