Re: usb/101775: [libusbhid] [patch] possible error in report descriptor parsing

[ Available lists | Index of freebsd-usb | Month of Sep 2006 | Week of 24 Sep 2006 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Rene Ladan <r.c.ladan@gmail.com>
Date
24 Sep 2006 19:50:24
Subject
Re: usb/101775: [libusbhid] [patch] possible error in report descriptor parsing
Message-ID
200609241950.k8OJoOv2096935@freefall.freebsd.org


[ Hide this part ]
The following reply was made to PR usb/101775; it has been noted by GNATS.

From: Rene Ladan <r.c.ladan@gmail.com>
To: bug-followup@FreeBSD.org, amdmi3@mail.ru
Cc:
Subject: Re: usb/101775: [libusbhid] [patch] possible error in report descriptor
parsing
Date: Sun, 24 Sep 2006 21:43:32 +0200

I saw this error too (it is an error, see section 6.2.2.7, page 35, of
the USB HID 1.11 specification), but fixing this gave a physical minimum
of 32768 (no minus sign) instead of -32768 (with minus sign) for
"Generic_Desktop.{Rx,Ry,X,Y}" when plugging in an Xbox 360 controller.

/usr/src/sys/dev/usb/uxb360gp_rdesc.h (RELENG_6) shows (line 110):

0x36, 0x00, 0x80, /* PHYSICAL MINIMUM (-32768) */

so -32768 (with minus sign) is the correct value. I could not see any
sign error in the sources of libusbhid or usbhidctl though.

Any clues?

Regards,
Rene
--
GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6
(subkeys.pgp.net)

"It won't fit on the line."
-- me, 2001



Elapsed time: 0.065 seconds