/* Analog output routine. Selects single channel conversion, selects correct channel, converts from 2's compliment to offset binary if necessary, loads the data into the DAC data register, and performs the conversion.  */
static int dt282x_ao_insn_read(struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
/* Analog output routine. Selects single channel conversion, selects correct channel, converts from 2's compliment to offset binary if necessary, loads the data into the DAC data register, and performs the conversion.  */
static int dt282x_ao_insn_read(struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
{
	data[0] = devpriv->ao[CR_CHAN(insn->chanspec)];
	return 1;
}