Module: xenomai-abe
Branch: analogy
Commit: 4fd49fb1dd6ebe982ca4e6d5ef697425ca4c144f
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=4fd49fb1dd6ebe982ca4e6d5ef697425ca4c144f

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Sat Feb 20 17:34:14 2010 +0100

analogy: make a4l_config_subd support open drain configuration

---

 src/drvlib/analogy/sync.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/drvlib/analogy/sync.c b/src/drvlib/analogy/sync.c
index 73f1dd6..4bcde62 100644
--- a/src/drvlib/analogy/sync.c
+++ b/src/drvlib/analogy/sync.c
@@ -315,7 +315,7 @@ int a4l_sync_dio(a4l_desc_t *dsc,
                return -EINVAL;
        }
 
-       /* Send the config instruction */
+       /* Send the insn_bits instruction */
        ret = a4l_snd_insn(dsc, &insn);
 
        /* Update the buffer if need be */
@@ -375,6 +375,7 @@ int a4l_config_subd(a4l_desc_t * dsc,
        switch (type) {
        case A4L_INSN_CONFIG_DIO_OUTPUT:
        case A4L_INSN_CONFIG_DIO_INPUT:
+       case A4L_INSN_CONFIG_DIO_OPENDRAIN:
        {
                unsigned int idx_chan = va_arg(args, unsigned int);
                insn.chan_desc = CHAN(idx_chan);


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

Reply via email to