Module: xenomai-3
Branch: next
Commit: c39b74040ab085a03ec9078baffecab7bed758d1
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c39b74040ab085a03ec9078baffecab7bed758d1

Author: Jorge Ramirez-Ortiz <j...@xenomai.org>
Date:   Wed Aug 20 15:58:07 2014 -0400

drivers/analogy: disable chanlist check on calibration instructions

---

 kernel/drivers/analogy/instruction.c |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/kernel/drivers/analogy/instruction.c 
b/kernel/drivers/analogy/instruction.c
index 95c4419..7e7704f 100644
--- a/kernel/drivers/analogy/instruction.c
+++ b/kernel/drivers/analogy/instruction.c
@@ -228,10 +228,12 @@ int a4l_do_insn(struct a4l_device_context * cxt, struct 
a4l_kernel_instruction *
        }
 
        /* Checks the channel descriptor */
-       ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
-                                1, &dsc->chan_desc);
-       if (ret < 0)
-               return ret;
+       if ((subd->flags & A4L_SUBD_TYPES) != A4L_SUBD_CALIB) {
+               ret = a4l_check_chanlist(dev->transfer.subds[dsc->idx_subd],
+                                        1, &dsc->chan_desc);
+               if (ret < 0)
+                       return ret;
+       }
 
        /* Choose the proper handler, we can check the pointer because
           the subdevice was memset to 0 at allocation time */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to