unsigned short d;
u32 packed_data;
int range;
- int err = 1;
chan = async->cur_chan;
for (i = 0; i < n; i++) {
- err &= comedi_buf_get(s, &d);
- if (err == 0)
- break;
+ comedi_buf_read_samples(s, &d, 1);
range = CR_RANGE(cmd->chanlist[chan]);
packed_data = d & 0xffff;
/* 6711 only has 16 bit wide ao fifo */
if (!devpriv->is_6711) {
- err &= comedi_buf_get(s, &d);
- if (err == 0)
- break;
+ comedi_buf_read_samples(s, &d, 1);
chan++;
i++;
packed_data |= (d << 16) & 0xffff0000;
chan %= cmd->chanlist_len;
}
async->cur_chan = chan;
- if (err == 0)
- async->events |= COMEDI_CB_OVERFLOW;
}
/*
ni_ao_fifo_load(dev, s, n);
- s->async->events |= COMEDI_CB_BLOCK;
-
return 1;
}