From: Frank Mori Hess Date: Sun, 4 Apr 2004 16:40:15 +0000 (+0000) Subject: fix initialization of channel, that I broke with last fix X-Git-Tag: r0_7_69~72 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae94b7ba04c23bd8db19cb3e8e0b32d726951157;p=comedi.git fix initialization of channel, that I broke with last fix --- diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index 33169ee0..9f5821b7 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -889,13 +889,14 @@ static int cb_pcidas_ao_nofifo_winsn(comedi_device *dev, comedi_subdevice *s, static int cb_pcidas_ao_fifo_winsn(comedi_device *dev, comedi_subdevice *s, comedi_insn *insn, lsampl_t *data) { - int bits, channel; + int channel; unsigned long flags; // clear dac fifo outw(0, devpriv->ao_registers + DACFIFOCLR); // set channel and range + channel = CR_CHAN(insn->chanspec); comedi_spin_lock_irqsave( &dev->spinlock, flags ); devpriv->ao_control_bits &= ~DAC_MODE_UPDATE_BOTH & ~DAC_RANGE_MASK( channel ) & ~DAC_START & ~DAC_PACER_MASK;