All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexis Berlemont <berlemont.hauw@domain.hid>
To: "Alessio Margan @ IIT" <alessio.margan@domain.hid>
Cc: Xenomai-core@domain.hid
Subject: Re: [Xenomai-core] [PATCH] Sensoray 526 analogy driver
Date: Tue, 05 Jan 2010 00:10:16 +0100	[thread overview]
Message-ID: <4B427558.9020505@domain.hid> (raw)
In-Reply-To: <4B42113B.7060304@domain.hid>

Alessio Margan @ IIT wrote:
> Hi,
> 
>> The irq parameter is not used. It's not used in comedi either.
>> For the io_port, the command analogy_config analogy0 analogy_s526 0xdc0 
>> works for me...
>>
>>   
> not for me ... driver arg 0xdc0 when red by sscanf(opts, "%u",
> &res[(*nb) - 1]) in analogy_config.c in function compute_opts is set to
> 0 due to %u
> if I use the decimal value of ioport it works ... analogy_config
> analogy0 analogy_s526 3520

It seems the version you are using is not up to date, this bug was fixed
two months ago:

commit 01bcfd898555425e96350b306155cba429a65539
Author: Alexis Berlemont <alexis.berlemont@domain.hid>
Date: Sun Nov 8 02:10:20 2009 +0100

analogy: fix a bug in the attach procedure

The options to be sent to the driver at attach time were badly handled
if the values were hexadecimal-based.

>> Did you try to acquire data?
>>   
> I try with insn_read command find in src/utils/analogy but seems that
> subdevice should have commands enabled subd->flags |= A4L_SUBD_CMD;
> 
> Alessio
> 
Regards,

Alexis.



  reply	other threads:[~2010-01-04 23:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-26 14:54 [Xenomai-core] [PATCH] Sensoray 526 analogy driver Simon Boulay
2009-12-28 20:44 ` Alexis Berlemont
     [not found] ` <4B3917BF.5070600@domain.hid>
2009-12-29  1:40   ` Simon Boulay
2009-12-29  8:32     ` Alessio Margan @ IIT
2009-12-30 14:53       ` Alessio Margan @ IIT
2010-01-02 12:28         ` Simon Boulay
2010-01-04 16:03           ` Alessio Margan @ IIT
2010-01-04 23:10             ` Alexis Berlemont [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-01-07 19:15 Alessio Margan @ IIT
2010-01-07 20:52 ` Alexis Berlemont
2010-01-11 16:08 Alessio Margan @ IIT
2010-01-11 16:22 ` Alexis Berlemont

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B427558.9020505@domain.hid \
    --to=berlemont.hauw@domain.hid \
    --cc=Xenomai-core@domain.hid \
    --cc=alessio.margan@domain.hid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.