From 006882d03eae0bd4245bbbb52b4775fd30b3cbe2 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 17 Mar 2005 14:53:02 +0000 Subject: [PATCH] add SDF_DITHER flag to analog input subdevice --- comedi/drivers/cb_pcidas64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index ba9e546d..e473ad29 100644 --- a/comedi/drivers/cb_pcidas64.c +++ b/comedi/drivers/cb_pcidas64.c @@ -1356,7 +1356,7 @@ static int setup_subdevices(comedi_device *dev) /* analog input subdevice */ dev->read_subdev = s; s->type = COMEDI_SUBD_AI; - s->subdev_flags = SDF_READABLE | SDF_GROUND; + s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_DITHER; if(board(dev)->layout == LAYOUT_60XX) s->subdev_flags |= SDF_COMMON | SDF_DIFF; else if(board(dev)->layout == LAYOUT_64XX) @@ -1846,7 +1846,7 @@ static int ai_rinsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *insn,lsa disable_ai_pacing( dev ); comedi_spin_lock_irqsave( &dev->spinlock, flags ); - if( insn->chanspec & CR_DITHER ) + if( insn->chanspec & CR_ALT_FILTER ) priv(dev)->adc_control1_bits |= ADC_DITHER_BIT; else priv(dev)->adc_control1_bits &= ~ADC_DITHER_BIT; -- 2.26.2