Blah, doing 32 pci transfers causes the channel order to get swapped,
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 6 Nov 2006 21:10:10 +0000 (21:10 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 6 Nov 2006 21:10:10 +0000 (21:10 +0000)
switching back to 16 bit.

comedi/drivers/ni_mio_common.c

index 4d8678b62926d15b2f018299ad80a8d76999320d..ee016feebf51061e3be31e119067cbdfb32c3097 100644 (file)
@@ -1219,9 +1219,9 @@ static void ni_ao_setup_MITE_dma(comedi_device *dev,comedi_cmd *cmd)
                mite_prep_dma(mite, AO_DMA_CHAN, 32, 32);
        }else
        {
-               /* doing 32 instead of 16 bit wide transfers from memory 
+               /* doing 32 instead of 16 bit wide transfers from memory
                 makes the mite do 32 bit pci transfers, doubling pci bandwidth. */
-               mite_prep_dma(mite, AO_DMA_CHAN, 16, 32);
+               mite_prep_dma(mite, AO_DMA_CHAN, 16, 16);
        }
        /*start the MITE*/
        mite_dma_arm(mite, AO_DMA_CHAN);