/* N.B. The value read will not be valid if the DAC channel has never been written successfully since the device was attached or since the channel has been used by an AO streaming write command.  */
static int pci224_ao_insn_read(struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
/* N.B. The value read will not be valid if the DAC channel has never been written successfully since the device was attached or since the channel has been used by an AO streaming write command.  */
static int pci224_ao_insn_read(struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
{
	int i;
	int chan;
	chan = CR_CHAN(insn->chanspec);
	for (i = 0; i < insn->n; i++) {
		data[i] = devpriv->ao_readback[chan];
	}
	return i;
}