Skip to content

Commit 7a84b13

Browse files
rubenatchJiri Kosina
authored andcommitted
HID: add rumble support for Thrustmaster Dual Trigger 3-in-1
This patch enables rumble in Thrustmaster Dual 3-in-1 trigger gamepads (in both PC and PS3 modes). It uses the same code as Thrustmaster FireStorm Dual Power 2, so it only adds new USB IDs to hid-core.c and hid-tmff.c Signed-off-by: Ruben Aos Garralda <rubenatch@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 837b475 commit 7a84b13

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎drivers/hid/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ config THRUSTMASTER_FF
315315
depends on HID_THRUSTMASTER
316316
select INPUT_FF_MEMLESS
317317
---help---
318-
Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or
319-
a THRUSTMASTER Ferrari GT Rumble Force or Force Feedback Wheel and
320-
want to enable force feedback support for it.
318+
Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or 3,
319+
a THRUSTMASTER Dual Trigger 3-in-1 or a THRUSTMASTER Ferrari GT
320+
Rumble Force or Force Feedback Wheel.
321321

322322
config HID_WACOM
323323
tristate "Wacom Bluetooth devices support" if EMBEDDED

‎drivers/hid/hid-core.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,8 @@ static const struct hid_device_id hid_blacklist[] = {
13121312
{ HID_USB_DEVICE(USB_VENDOR_ID_SUNPLUS, USB_DEVICE_ID_SUNPLUS_WDESKTOP) },
13131313
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300) },
13141314
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb304) },
1315+
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb323) },
1316+
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb324) },
13151317
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651) },
13161318
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654) },
13171319
{ HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED, USB_DEVICE_ID_TOPSEED_CYBERLINK) },

‎drivers/hid/hid-tmff.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ static int tm_probe(struct hid_device *hdev, const struct hid_device_id *id)
243243
static const struct hid_device_id tm_devices[] = {
244244
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300),
245245
.driver_data = (unsigned long)ff_rumble },
246-
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb304),
246+
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb304), /* FireStorm Dual Power 2 (and 3) */
247+
.driver_data = (unsigned long)ff_rumble },
248+
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb323), /* Dual Trigger 3-in-1 (PC Mode) */
249+
.driver_data = (unsigned long)ff_rumble },
250+
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb324), /* Dual Trigger 3-in-1 (PS3 Mode) */
247251
.driver_data = (unsigned long)ff_rumble },
248252
{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651), /* FGT Rumble Force Wheel */
249253
.driver_data = (unsigned long)ff_rumble },

0 commit comments

Comments
 (0)