From ebdceea7e18f328fcb9e27e9fcf834323c91ec8e Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 25 Apr 2002 19:22:19 +0000 Subject: [PATCH] removed settling delay from ai read insn --- comedi/drivers/rti800.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/comedi/drivers/rti800.c b/comedi/drivers/rti800.c index d4c48dcf..d4dec273 100644 --- a/comedi/drivers/rti800.c +++ b/comedi/drivers/rti800.c @@ -181,7 +181,8 @@ static void rti800_interrupt(int irq, void *dev, struct pt_regs *regs) } -static int gaindelay[]={10,20,40,80}; +// settling delay times in usec for different gains +//static int gaindelay[]={10,20,40,80}; static int rti800_ai_insn_read(comedi_device *dev,comedi_subdevice *s, comedi_insn *insn,lsampl_t *data) @@ -196,9 +197,6 @@ static int rti800_ai_insn_read(comedi_device *dev,comedi_subdevice *s, outb(chan | (gain << 5), dev->iobase + RTI800_MUXGAIN); - /* contrary to the docs, there needs to be a delay here */ - udelay(gaindelay[gain]); - for(i=0;in;i++){ outb(0, dev->iobase + RTI800_CONVERT); for (t = RTI800_TIMEOUT; t; t--) { -- 2.26.2