[PATCH] Saitek X-52 Pro - Add HID quirk

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

 



Hello!

I've been using a Saitek X-52 Pro, and it has the same quirk as the
X52 in which it has duplicate HID descriptors for some of its
controls.  This patch adds the X52 Pro to the hid quirks list
accordingly.

Signed-off-by: Bryon Roche <kain@xxxxxxxx>

diff --cc drivers/hid/hid-ids.h
index 7e1689ef35f5,bdb4fefb683c..000000000000
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@@ -1002,7 -979,7 +1002,8 @@@
  #define USB_DEVICE_ID_SAITEK_RAT7	0x0cd7
  #define USB_DEVICE_ID_SAITEK_RAT9	0x0cfa
  #define USB_DEVICE_ID_SAITEK_MMO7	0x0cd0
 +#define USB_DEVICE_ID_SAITEK_X52	0x075c
+ #define USB_DEVICE_ID_SAITEK_X52PRO     0x0762
  
  #define USB_VENDOR_ID_SAMSUNG		0x0419
  #define USB_DEVICE_ID_SAMSUNG_IR_REMOTE	0x0001
diff --cc drivers/hid/hid-quirks.c
index d1b39c29e353,8c1f8b0ecf8b..000000000000
--- a/drivers/hid/hid-quirks.c
+++ b/drivers/hid/hid-quirks.c
@@@ -144,7 -140,7 +144,8 @@@ static const struct hid_device_id hid_q
  	{ HID_USB_DEVICE(USB_VENDOR_ID_RETROUSB, USB_DEVICE_ID_RETROUSB_SNES_RETROPAD), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE },
  	{ HID_USB_DEVICE(USB_VENDOR_ID_RETROUSB, USB_DEVICE_ID_RETROUSB_SNES_RETROPORT), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE },
  	{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD), HID_QUIRK_BADPAD },
 +	{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_X52), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE },
+ 	{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_X52PRO), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE },
  	{ HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD2), HID_QUIRK_NO_INIT_REPORTS },
  	{ HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD), HID_QUIRK_NO_INIT_REPORTS },
  	{ HID_USB_DEVICE(USB_VENDOR_ID_SENNHEISER, USB_DEVICE_ID_SENNHEISER_BTD500USB), HID_QUIRK_NOGET },




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux