]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/hid/hid-dr.c
HID: hid-dr: add input mapping for axis selection
authorIoan-Adrian Ratiu <adi@adirat.com>
Tue, 27 Sep 2016 18:41:38 +0000 (21:41 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 10 Oct 2016 08:52:00 +0000 (10:52 +0200)
commite15944099870f374ca7efc62f98cf23ba272ef43
tree143de2a9a03a73bf91b6fd29ad0e8c157d92b819
parent3d1355b3cfad53feba76a73b052c757a7de7f4de
HID: hid-dr: add input mapping for axis selection

Commit 79346d620e9d ("HID: input: force generic axis to be mapped to their
user space axis") made mapping generic axes to their userspace equivalents
mandatory and some lower end gamepads which were depending on the previous
behaviour suffered severe regressions because they were reusing axes and
expecting hid-input to multiplex their map to the respective userspace axis
by always searching for and using the next available axis.

One solution is to add a hid quirk for this type of "previous" behaviour in
hid-input to bypass the new axes policy in favour of the old one, but since
only one hardware vendor seems to be affected negatively we're better off
making and exception and mapping in the driver for now; if more vendors or
drivers turn out to experience the problem we should reconsider the quirk
solution.

Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-dr.c