Module: xenomai-3 Branch: next Commit: 32bc5654e088eb6204886a889951fac008676d2f URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=32bc5654e088eb6204886a889951fac008676d2f
Author: Jorge Ramirez-Ortiz <[email protected]> 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 [email protected] http://www.xenomai.org/mailman/listinfo/xenomai-git
