From 6e7f94ce78bb2fe37059d14b32738888d5baa8f5 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 6 Nov 2006 21:10:10 +0000 Subject: [PATCH] Blah, doing 32 pci transfers causes the channel order to get swapped, switching back to 16 bit. --- comedi/drivers/ni_mio_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.26.2