hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/joystick/xpad.c
....@@ -262,7 +262,6 @@
262262 { 0x1430, 0xf801, "RedOctane Controller", 0, XTYPE_XBOX360 },
263263 { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 },
264264 { 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
265
- { 0x1532, 0x0037, "Razer Sabertooth", 0, XTYPE_XBOX360 },
266265 { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
267266 { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE },
268267 { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 },
....@@ -488,6 +487,9 @@
488487 .len = ARRAY_SIZE(_data), \
489488 }
490489
490
+
491
+#define GIP_WIRED_INTF_DATA 0
492
+#define GIP_WIRED_INTF_AUDIO 1
491493
492494 /*
493495 * This packet is required for all Xbox One pads with 2015
....@@ -1813,7 +1815,7 @@
18131815 }
18141816
18151817 if (xpad->xtype == XTYPE_XBOXONE &&
1816
- intf->cur_altsetting->desc.bInterfaceNumber != 0) {
1818
+ intf->cur_altsetting->desc.bInterfaceNumber != GIP_WIRED_INTF_DATA) {
18171819 /*
18181820 * The Xbox One controller lists three interfaces all with the
18191821 * same interface class, subclass and protocol. Differentiate by