fixed hosing of ao_mode2 register.
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Nov 2006 19:52:47 +0000 (19:52 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Nov 2006 19:52:47 +0000 (19:52 +0000)
comedi/drivers/ni_mio_common.c

index f235c0f3c16e7b317fb248914c6120b5cf9d69e8..44b664db9262d9dd497ceb43e292b70c66940265 100644 (file)
@@ -2604,7 +2604,7 @@ static int ni_ao_cmd(comedi_device *dev,comedi_subdevice *s)
        devpriv->ao_mode3|=AO_Stop_On_Overrun_Error;
        devpriv->stc_writew(dev, devpriv->ao_mode3,AO_Mode_3_Register);
 
-       devpriv->ao_mode2 &= AO_FIFO_Mode_Mask;
+       devpriv->ao_mode2 &= ~AO_FIFO_Mode_Mask;
 #ifdef PCIDMA
        devpriv->ao_mode2 |= AO_FIFO_Mode_HF_to_F;
 #else