From: Frank Mori Hess Date: Thu, 25 Apr 2002 19:22:19 +0000 (+0000) Subject: removed settling delay from ai read insn X-Git-Tag: r0_7_65~88 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ebdceea7e18f328fcb9e27e9fcf834323c91ec8e;p=comedi.git removed settling delay from ai read insn --- 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--) {