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) {
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);