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

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Tue Jun 22 00:25:51 2010 +0200

analogy: [ni_pcimio] fix timeout value in digital trigger

---

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

diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c 
b/ksrc/drivers/analogy/national_instruments/mio_common.c
index de1c570..55e0bc2 100644
--- a/ksrc/drivers/analogy/national_instruments/mio_common.c
+++ b/ksrc/drivers/analogy/national_instruments/mio_common.c
@@ -3451,7 +3451,7 @@ int ni_cdo_inttrig(a4l_subd_t *subd, lsampl_t trignum)
        unsigned long flags;
        int retval = 0;
        unsigned i;
-       const unsigned timeout = 100;
+       const unsigned timeout = 1000;
 
        /* TODO: disable trigger until a command is recorded.
           Null trig at beginning prevent ao start trigger from executing
@@ -3476,6 +3476,7 @@ int ni_cdo_inttrig(a4l_subd_t *subd, lsampl_t trignum)
                        break;
                a4l_udelay(10);
        }
+
        if (i == timeout) {
                a4l_err(dev, "ni_cdo_inttrig: dma failed to fill cdo fifo!");
                ni_cdio_cancel(subd);


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

Reply via email to