From 46d8712cf118b07fe02c2abae942ec8701cf57ff Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 4 Nov 2006 02:39:46 +0000 Subject: [PATCH] Do 32 bit dma transfers for analog output. --- comedi/drivers/ni_mio_common.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 08e16860..4d8678b6 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -1215,10 +1215,14 @@ static void ni_ao_setup_MITE_dma(comedi_device *dev,comedi_cmd *cmd) mite_chan->current_link = 0; mite_chan->dir = COMEDI_OUTPUT; if(boardtype.reg_type & (ni_reg_611x | ni_reg_6713)) + { mite_prep_dma(mite, AO_DMA_CHAN, 32, 32); - else - mite_prep_dma(mite, AO_DMA_CHAN, 16, 16); - + }else + { + /* 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); + } /*start the MITE*/ mite_dma_arm(mite, AO_DMA_CHAN); } -- 2.26.2