]> 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)
commita28e6960b9fb69138da43111cc5c03914c5ad620
treed7b931b5526d86d1cb0b4d6f7b09e8451bf8bb2c
parent6ccbf718aa09772ca3ee4f0fcd415a95c5c02b63
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