From d743220d9b53b357f2dbad6ddf83c5a5c9ad18b4 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Fri, 31 Aug 2012 17:44:16 +0100 Subject: [PATCH] das08: Correct AO output for das08jr-16-ao Don't zero out bits 15..12 of the data value in das08jr_ao_winsn() as that knobbles the upper three quarters of the output range for the "das08jr-16-ao" board. Signed-off-by: Ian Abbott --- comedi/drivers/das08.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/das08.c b/comedi/drivers/das08.c index 2a8cc0af..e923d36d 100644 --- a/comedi/drivers/das08.c +++ b/comedi/drivers/das08.c @@ -645,7 +645,7 @@ static int das08jr_ao_winsn(comedi_device * dev, comedi_subdevice * s, for (n = 0; n < insn->n; n++) { lsb = data[n] & 0xff; - msb = (data[n] >> 8) & 0xf; + msb = (data[n] >> 8) & 0xff; #if 0 outb(lsb, dev->iobase + devpriv->ao_offset_lsb[chan]); outb(msb, dev->iobase + devpriv->ao_offset_msb[chan]); -- 2.26.2