{
comedi_subdevice *s = dev->subdevices + NI_AI_SUBDEV;
int retval;
+ unsigned long flags;
retval = ni_request_ai_mite_channel(dev);
if (retval)
/* write alloc the entire buffer */
comedi_buf_write_alloc(s->async, s->async->prealloc_bufsz);
+
+ comedi_spin_lock_irqsave(&devpriv->mite_channel_lock, flags);
switch (boardtype.reg_type) {
case ni_reg_611x:
case ni_reg_6143:
};
/*start the MITE */
mite_dma_arm(devpriv->ai_mite_chan);
+ comedi_spin_unlock_irqrestore(&devpriv->mite_channel_lock, flags);
+
return 0;
}