From: Frank Mori Hess Date: Sat, 4 Nov 2006 02:39:46 +0000 (+0000) Subject: Do 32 bit dma transfers for analog output. X-Git-Tag: r0_7_74~163 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=46d8712cf118b07fe02c2abae942ec8701cf57ff;p=comedi.git Do 32 bit dma transfers for analog output. --- 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); }