diff options
author | Ruben Aos Garralda <rubenatch@gmail.com> | 2009-06-29 03:41:29 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-07-22 19:28:01 -0400 |
commit | 7a84b1336a145d683fb8cdfd6c2c67545a58b126 (patch) | |
tree | 83975c536bf70a236c14e5b5d4436bbfd0a10d04 /drivers | |
parent | 837b47533a6476ab3fb96b1f52edd3ce9f3162b8 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/Kconfig | 6 | ||||
-rw-r--r-- | drivers/hid/hid-core.c | 2 | ||||
-rw-r--r-- | drivers/hid/hid-tmff.c | 6 |
3 files changed, 10 insertions, 4 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index d3910c64bf01..a66ffe747d9c 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig | |||
@@ -315,9 +315,9 @@ config THRUSTMASTER_FF | |||
315 | depends on HID_THRUSTMASTER | 315 | depends on HID_THRUSTMASTER |
316 | select INPUT_FF_MEMLESS | 316 | select INPUT_FF_MEMLESS |
317 | ---help--- | 317 | ---help--- |
318 | Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or | 318 | Say Y here if you have a THRUSTMASTER FireStore Dual Power 2 or 3, |
319 | a THRUSTMASTER Ferrari GT Rumble Force or Force Feedback Wheel and | 319 | a THRUSTMASTER Dual Trigger 3-in-1 or a THRUSTMASTER Ferrari GT |
320 | want to enable force feedback support for it. | 320 | Rumble Force or Force Feedback Wheel. |
321 | 321 | ||
322 | config HID_WACOM | 322 | config HID_WACOM |
323 | tristate "Wacom Bluetooth devices support" if EMBEDDED | 323 | tristate "Wacom Bluetooth devices support" if EMBEDDED |
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index d51091df5c1f..5601a1432e00 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
@@ -1312,6 +1312,8 @@ static const struct hid_device_id hid_blacklist[] = { | |||
1312 | { HID_USB_DEVICE(USB_VENDOR_ID_SUNPLUS, USB_DEVICE_ID_SUNPLUS_WDESKTOP) }, | 1312 | { HID_USB_DEVICE(USB_VENDOR_ID_SUNPLUS, USB_DEVICE_ID_SUNPLUS_WDESKTOP) }, |
1313 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300) }, | 1313 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300) }, |
1314 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb304) }, | 1314 | { 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) }, | ||
1315 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651) }, | 1317 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651) }, |
1316 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654) }, | 1318 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654) }, |
1317 | { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED, USB_DEVICE_ID_TOPSEED_CYBERLINK) }, | 1319 | { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED, USB_DEVICE_ID_TOPSEED_CYBERLINK) }, |
diff --git a/drivers/hid/hid-tmff.c b/drivers/hid/hid-tmff.c index fcd6ccd02fee..6589a7c790e8 100644 --- a/drivers/hid/hid-tmff.c +++ b/drivers/hid/hid-tmff.c | |||
@@ -243,7 +243,11 @@ err: | |||
243 | static const struct hid_device_id tm_devices[] = { | 243 | static const struct hid_device_id tm_devices[] = { |
244 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300), | 244 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb300), |
245 | .driver_data = (unsigned long)ff_rumble }, | 245 | .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) */ | ||
247 | .driver_data = (unsigned long)ff_rumble }, | 251 | .driver_data = (unsigned long)ff_rumble }, |
248 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651), /* FGT Rumble Force Wheel */ | 252 | { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651), /* FGT Rumble Force Wheel */ |
249 | .driver_data = (unsigned long)ff_rumble }, | 253 | .driver_data = (unsigned long)ff_rumble }, |