Module: xenomai-head
Branch: master
Commit: 8491f8ac1f4bcb88ed17ade8f20f9400f88015cd
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=8491f8ac1f4bcb88ed17ade8f20f9400f88015cd

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Tue Nov  3 23:40:24 2009 +0100

analogy: fix a bug in NI PCIMIO driver

The MITE configuration in the analog output configuration was not
properly done.

---

 .../analogy/national_instruments/mio_common.c      |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c 
b/ksrc/drivers/analogy/national_instruments/mio_common.c
index 860ba90..ebab716 100644
--- a/ksrc/drivers/analogy/national_instruments/mio_common.c
+++ b/ksrc/drivers/analogy/national_instruments/mio_common.c
@@ -1391,7 +1391,9 @@ static int ni_ao_setup_MITE_dma(a4l_dev_t *dev)
        if (retval)
                return retval;
 
-       /* TODO: mite_buf_change should be called */
+       /* Huge hack */
+       mite_buf_change(devpriv->ao_mite_chan->ring, 
+                       dev->transfer.bufs[NI_AO_SUBDEV]);
 
        a4l_lock_irqsave(&devpriv->mite_channel_lock, flags);
        if (devpriv->ao_mite_chan) {


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

Reply via email to