if (!(cmd->flags & CMDF_WAKE_EOS)) {
s->async->events |= COMEDI_CB_EOS;
- comedi_event(dev, s);
+ comedi_handle_events(dev, s);
}
}
if (cmd->stop_src == TRIG_COUNT)
if (devpriv->ui_AiActualScan >= cmd->stop_arg) {
/* all data sampled */
- apci3120_cancel(dev, s);
s->async->events |= COMEDI_CB_EOA;
- comedi_event(dev, s);
+ comedi_handle_events(dev, s);
return;
}
if (err == 0)
s->async->events |= COMEDI_CB_OVERFLOW;
- comedi_event(dev, s);
+ comedi_handle_events(dev, s);
return 0;
}
outw(devpriv->us_OutputRegister,
dev->iobase + APCI3120_WR_ADDRESS);
- /* stop timer 0 and timer 1 */
- apci3120_cancel(dev, s);
-
- /* UPDATE-0.7.57->0.7.68comedi_done(dev,s); */
s->async->events |= COMEDI_CB_EOA;
- comedi_event(dev, s);
+ comedi_handle_events(dev, s);
break;