From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antonio Orefice Subject: [PATCH 1/2] HID: add support for force feedback in 'Thrustmaster F430 Force Feedback' steering wheel Date: Wed, 17 Nov 2010 09:41:17 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-iw0-f174.google.com ([209.85.214.174]:56664 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932288Ab0KQIlS (ORCPT ); Wed, 17 Nov 2010 03:41:18 -0500 Received: by iwn35 with SMTP id 35so1846189iwn.19 for ; Wed, 17 Nov 2010 00:41:17 -0800 (PST) Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: linux-input@vger.kernel.org This patch add supports for force feedback Thrustmaster "F430 Force Feedback" steering wheel. I just added the right usb device id to the existing hid-tmff driver by Zinx Verituse and to the exceptions list in hid-core.c After the patches, the device correctly supports constant forces. For example, the wheel will move correctly accordingly to the mouse position when using ffmvforce from ffutils; ffset is able to set autocenter strenght and ff gain. I tested the patches over a 2.6.35 kernel, but the changes are so minimal that they should work flawlessy on newer ones. --- hid-tmff.c-2.6.35 2010-11-16 13:54:29.563224822 +0100 +++ hid-tmff.c 2010-11-16 13:46:42.549871515 +0100 @@ -251,8 +252,12 @@ .driver_data = (unsigned long)ff_rumble }, { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651), /* FGT Rumble Force Wheel */ .driver_data = (unsigned long)ff_rumble }, { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654), /* FGT Force Feedback Wheel */ .driver_data = (unsigned long)ff_joystick }, + { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb65a), /* F430 Force Feedback */ + .driver_data = (unsigned long)ff_joystick }, { } }; MODULE_DEVICE_TABLE(hid, tm_devices);