]> git.baikalelectronics.ru Git - kernel.git/commit
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for all Saitek X52 devices
authorNirenjan Krishnan <nirenjan@gmail.com>
Mon, 31 Aug 2020 00:48:59 +0000 (17:48 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 31 Aug 2020 06:56:51 +0000 (08:56 +0200)
commit942bdf6626676b51e6b120854de929376d116f3e
treed7b931b5526d86d1cb0b4d6f7b09e8451bf8bb2c
parenta48decd901c2eacbad2593fabb0aa315109f6c5f
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for all Saitek X52 devices

The Saitek X52 family of joysticks has a pair of axes that were
originally (by the Windows driver) used as mouse pointer controls. The
corresponding usage page is the Game Controls page, which is not
recognized by the generic HID driver, and therefore, both axes get
mapped to ABS_MISC. The quirk makes the second axis get mapped to
ABS_MISC+1, and therefore made available separately.

One Saitek X52 device is already fixed. This patch fixes the other two
known devices with VID/PID 06a3:0255 and 06a3:0762.

Signed-off-by: Nirenjan Krishnan <nirenjan@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c