From: Anssi Hannula <anssi.hannula@gmail.com>
To: Dmitriy Geels <dmitriy.geels@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: hid-pidff bug: fails to find all required reports of saitek gamepad
Date: Tue, 10 Feb 2009 18:06:58 +0200 [thread overview]
Message-ID: <4991A622.7020101@gmail.com> (raw)
In-Reply-To: <78f5d6bf0902092146x2abaf45an79e4546e75a80356@mail.gmail.com>
Dmitriy Geels wrote:
> Thanks Anssi!
>
> Your patch helped, device is passing pidff_find_reports().
>
> Now stuck in pidff_find_fields(), with "unknown set_effect report layout".
> Looks like, device doesn't implement PID specs completely, as there is
> no gain and direction usages in set_effect report:
>> The minimal Effect parameter block must contain (Effect) Parameter Block Index, Effect Type, Duration,
>> Sample Period, Gain, Trigger Button, Trigger Repeat Interval, Axis Direction, and Type Specific Block
>> Handle values.
There is also no Sample Period nor Effect Type values.
> But, looking into pidff_set_effect_report(), I think, it's possible to
> add two if's to check if these fields present. And need to make check
> for these fields optional somehow.
> These two usages are not fully utilized anyway, gain is always set to
> it's logical_maximum (actually it's used only in pidff_autocenter())
> and direction is always set to 1.
Direction enable is set to 1. However, the direction value itself is
required for the force direction.
I really can't see how the direction could be transmitted, as the Axis
Enable fields (alternative way of specifying direction) are missing as
well. Unless you can figure it out with some creative testing, I guess
we need a usb dump of constant force with a windows driver.
For Effect Type, that can also be made optional in set_effect_report()
(it has already been sent in the upload request, so it is redundant).
> There is also some problem with pidff_find_special_fields() ("effect
> lists not found"), i'll add more debug messages and tell about that
> later.
See above, it is because of the missing Effect Type field.
--
Anssi Hannula
next prev parent reply other threads:[~2009-02-10 16:15 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-30 19:45 hid-pidff bug: fails to find all required reports of saitek gamepad Dmitriy Geels
2009-02-02 15:50 ` Anssi Hannula
2009-02-02 18:29 ` Dmitriy Geels
2009-02-02 18:48 ` Dmitriy Geels
2009-02-07 12:28 ` Anssi Hannula
[not found] ` <78f5d6bf0902092146x2abaf45an79e4546e75a80356@mail.gmail.com>
2009-02-10 7:49 ` Dmitriy Geels
2009-02-10 7:49 ` Fwd: " Dmitriy Geels
2009-02-10 16:06 ` Anssi Hannula [this message]
2009-02-11 9:12 ` Dmitriy Geels
2009-02-11 16:27 ` Anssi Hannula
2009-02-12 18:06 ` Dmitriy Geels
2009-02-12 18:42 ` Anssi Hannula
2009-02-13 8:33 ` Dmitriy Geels
2009-02-13 19:43 ` Anssi Hannula
[not found] ` <78f5d6bf0902141125m1bf9ac00xb2b414e81d81b869@mail.gmail.com>
[not found] ` <49972478.3060207@gmail.com>
2009-02-14 22:33 ` Dmitriy Geels
2009-02-17 12:16 ` Dmitriy Geels
2009-02-18 15:45 ` Anssi Hannula
2009-02-19 6:56 ` Dmitriy Geels
[not found] ` <78f5d6bf0902182254v191cc485x62eb211baaddd36@mail.gmail.com>
[not found] ` <499D7C66.6090000@gmail.com>
2009-02-26 21:21 ` Dmitriy Geels
2009-02-27 16:24 ` Anssi Hannula
2009-03-02 18:41 ` Dmitriy Geels
2009-03-02 20:35 ` Anssi Hannula
2009-03-03 6:28 ` Dmitriy Geels
2009-03-03 18:35 ` Dmitriy Geels
2009-03-07 14:38 ` Anssi Hannula
2009-03-08 5:18 ` Dmitriy Geels
2009-03-08 10:16 ` Anssi Hannula
2009-03-09 19:08 ` Dmitriy Geels
2009-05-07 23:45 ` Anssi Hannula
2009-05-07 23:57 ` Anssi Hannula
[not found] ` <78f5d6bf0906041227w3a58bde0u554a3d3336e17fa6@mail.gmail.com>
2009-06-06 12:14 ` Anssi Hannula
2009-06-09 5:02 ` Dmitriy Geels
2009-06-09 6:09 ` Alek Du
2009-06-09 7:37 ` Dmitriy Geels
2009-06-11 9:38 ` Dmitriy Geels
2009-06-11 20:11 ` Dmitriy Geels
2009-07-09 17:41 ` Dmitriy Geels
2009-07-09 17:58 ` Anssi Hannula
2009-11-06 9:06 ` Dmitriy Geels
2009-11-09 12:00 ` Dmitriy Geels
2009-11-20 14:17 ` Dmitriy Geels
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=4991A622.7020101@gmail.com \
--to=anssi.hannula@gmail.com \
--cc=dmitriy.geels@gmail.com \
--cc=linux-input@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).