Re: [PATCH] HID: add absolute axis resolution calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Sep 2010, Nikolai Kondrashov wrote:

> Add absolute axis resolution calculation to the core HID layer, according to HID
> specification v1.11 6.2.2.7 Global Items. Only exponent 1 length units for
> X/Y/Z/RX/RY/RZ axis are supported for now.
> 
> Signed-off-by: Nikolai Kondrashov <spbnick@xxxxxxxxx>
> ---
> 
> The code tries to preserve the precision at the cost of possible overflow.
> That's why radians are chosen for rotation resolution. The code is tested using
> synthetic report descriptors and it remains to be seen how it will behave in the
> wild.
> 
> Though devices correctly specifying their physical extents are pretty rare, this
> code could also be used to decode resolution from fixed report descriptors of
> such HID drivers as waltop and uclogic.
> 
> I plan to use it for retrieving tablet resolution in the xf86-input-wacom
> driver.
> 
>  drivers/hid/hid-input.c |   80 +++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 80 insertions(+), 0 deletions(-)

Now applied, thanks Nikolai!

-- 
Jiri Kosina
SUSE Labs, Novell Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux