Module: xenomai-abe Branch: analogy Commit: 40688520780542e638dce63c1eca1188cbe99885 URL: http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=40688520780542e638dce63c1eca1188cbe99885
Author: Alexis Berlemont <alexis.berlem...@gmail.com> Date: Mon Jun 21 00:36:44 2010 +0200 analogy: [ni_pcimio] really minor changes --- .../analogy/national_instruments/mio_common.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c b/ksrc/drivers/analogy/national_instruments/mio_common.c index ead64b8..de1c570 100644 --- a/ksrc/drivers/analogy/national_instruments/mio_common.c +++ b/ksrc/drivers/analogy/national_instruments/mio_common.c @@ -3413,6 +3413,7 @@ int ni_cdio_cmd(a4l_subd_t *subd, a4l_cmd_t *cmd) if (cmd->scan_begin_arg & CR_INVERT) cdo_mode_bits |= CDO_Polarity_Bit; ni_writel(cdo_mode_bits, M_Offset_CDO_Mode); + if (devpriv->io_bits) { ni_writel(devpriv->dio_state, M_Offset_CDO_FIFO_Data); ni_writel(CDO_SW_Update_Bit, M_Offset_CDIO_Command); @@ -3423,10 +3424,10 @@ int ni_cdio_cmd(a4l_subd_t *subd, a4l_cmd_t *cmd) "output command with no lines configured as outputs"); return -EIO; } + retval = ni_request_cdo_mite_channel(dev); - if (retval < 0) { + if (retval < 0) return retval; - } return 0; } _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git