From: Frank Mori Hess Date: Mon, 6 Nov 2006 21:10:10 +0000 (+0000) Subject: Blah, doing 32 pci transfers causes the channel order to get swapped, X-Git-Tag: r0_7_74~162 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6e7f94ce78bb2fe37059d14b32738888d5baa8f5;p=comedi.git Blah, doing 32 pci transfers causes the channel order to get swapped, switching back to 16 bit. --- diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 4d8678b6..ee016fee 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -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);