Module: xenomai-abe
Branch: comedi
Commit: c65c3ce37edfcf6179d4c0b43e2460e52584d9e1
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=c65c3ce37edfcf6179d4c0b43e2460e52584d9e1

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Thu Oct  1 23:41:11 2009 +0200

Fix a problem in the mite configuration (only for AI)

---

 .../comedi/national_instruments/mio_common.c       |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ksrc/drivers/comedi/national_instruments/mio_common.c 
b/ksrc/drivers/comedi/national_instruments/mio_common.c
index 8e9b5e1..68e87ff 100644
--- a/ksrc/drivers/comedi/national_instruments/mio_common.c
+++ b/ksrc/drivers/comedi/national_instruments/mio_common.c
@@ -1367,8 +1367,13 @@ static int ni_ai_setup_MITE_dma(comedi_dev_t *dev)
                break;
        };
 
+       /* Huge hack */
+       mite_buf_change(devpriv->ai_mite_chan->ring, 
+                       dev->transfer.bufs[NI_AI_SUBDEV]);
+
        /* start the MITE */
        mite_dma_arm(devpriv->ai_mite_chan);
+
        return 0;
 }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to