On 10/01/2010 08:00 PM, Antonio Ospite wrote:
But again, I haven't checked yet what the specs say about byte 0 in the
returned buffer.
The HID spec is not crystal clear. The best I found was the following:
The bit length of an item's data is obtained through the Report
descriptor
(Report Size * Report Count). Item data is ordered just as items are
ordered in
the Report descriptor. If a Report ID tag was used in the Report
descriptor, all
reports include a single byte ID prefix. If the Report ID tag was
not used, all
values are returned in a single report and a prefix ID is not
included in that report.
I take it to mean, yes. It says "all reports." It doesn't specifically
say "all reports on the interrupt endpoint," and it doesn't say "all
reports on the control endpoint only." It seems to me like it's
redundant to send it on the control endpoint, which is why I didn't
originally implement it that way, but Amit Nagal had a device which
required the report ID in byte zero on the control endpoint, so and
that's why it sends it that way now.
Alan.
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html