From 15dd100ec1a671548533ce97e2d8ef3c6e9ad59c Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 15 Dec 2000 18:27:22 +0000 Subject: [PATCH] bugfix from Luke Stras --- comedi/drivers/das08.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/das08.c b/comedi/drivers/das08.c index 275c2bbd..9f0d5d63 100644 --- a/comedi/drivers/das08.c +++ b/comedi/drivers/das08.c @@ -205,7 +205,9 @@ static int das08_ai(comedi_device *dev,comedi_subdevice *s,comedi_trig *it) #endif /* set multiplexer */ - outb_p(chan | devpriv->dio,dev->iobase+STATUS_REG); + devpriv->dio &= ~0xf; + devpriv->dio |= chan; + outb_p(devpriv->dio,dev->iobase+STATUS_REG); /* XXX do we have to wait for MUX to settle? how long? */ @@ -263,7 +265,9 @@ static int das08_do(comedi_device *dev,comedi_subdevice *s,comedi_trig *it) { do_pack(&s->state,it); - outb_p(s->state<<4,dev->iobase+STATUS_REG); + devpriv->dio &= ~0xf0; + devpriv->dio |= s->state << 4; + outb_p(devpriv->dio,dev->iobase+STATUS_REG); return it->n_chan; } -- 2.26.2