diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-04-28 09:43:13 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-04-28 09:43:13 -0400 |
commit | 35dca5b4a67a93bbb75c2753d6dc432dc8f82e5d (patch) | |
tree | d276d30e13ecce486f5381ae832a59d60524048f /drivers/hid | |
parent | 4b5730fafb6287bdeed6af914fe90ed9e114d9a6 (diff) |
HID: add support for Sony Navigation Controller
Sony Navigation Controller needs a special report to be sent to it
before it is able to operate, the same way as other Sony controllers
do.
Tested-by: Jacek Lukas Wotka <jlw@team-fatal.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-core.c | 1 | ||||
-rw-r--r-- | drivers/hid/hid-ids.h | 1 | ||||
-rw-r--r-- | drivers/hid/hid-sony.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index c3d66269ed7d..b1986b954ac5 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c | |||
@@ -1449,6 +1449,7 @@ static const struct hid_device_id hid_have_special_driver[] = { | |||
1449 | { HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) }, | 1449 | { HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) }, |
1450 | { HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE) }, | 1450 | { HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE) }, |
1451 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) }, | 1451 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) }, |
1452 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER) }, | ||
1452 | { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) }, | 1453 | { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) }, |
1453 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE) }, | 1454 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE) }, |
1454 | { HID_USB_DEVICE(USB_VENDOR_ID_STANTUM, USB_DEVICE_ID_MTP) }, | 1455 | { HID_USB_DEVICE(USB_VENDOR_ID_STANTUM, USB_DEVICE_ID_MTP) }, |
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index be5cf24401bf..087a5a436598 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h | |||
@@ -524,6 +524,7 @@ | |||
524 | #define USB_VENDOR_ID_SONY 0x054c | 524 | #define USB_VENDOR_ID_SONY 0x054c |
525 | #define USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE 0x024b | 525 | #define USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE 0x024b |
526 | #define USB_DEVICE_ID_SONY_PS3_CONTROLLER 0x0268 | 526 | #define USB_DEVICE_ID_SONY_PS3_CONTROLLER 0x0268 |
527 | #define USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER 0x042f | ||
527 | 528 | ||
528 | #define USB_VENDOR_ID_SOUNDGRAPH 0x15c2 | 529 | #define USB_VENDOR_ID_SOUNDGRAPH 0x15c2 |
529 | #define USB_DEVICE_ID_SOUNDGRAPH_IMON_FIRST 0x0034 | 530 | #define USB_DEVICE_ID_SOUNDGRAPH_IMON_FIRST 0x0034 |
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 93819a08121a..936c911fdca6 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c | |||
@@ -178,6 +178,8 @@ static void sony_remove(struct hid_device *hdev) | |||
178 | static const struct hid_device_id sony_devices[] = { | 178 | static const struct hid_device_id sony_devices[] = { |
179 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER), | 179 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER), |
180 | .driver_data = SIXAXIS_CONTROLLER_USB }, | 180 | .driver_data = SIXAXIS_CONTROLLER_USB }, |
181 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER), | ||
182 | .driver_data = SIXAXIS_CONTROLLER_USB }, | ||
181 | { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER), | 183 | { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER), |
182 | .driver_data = SIXAXIS_CONTROLLER_BT }, | 184 | .driver_data = SIXAXIS_CONTROLLER_BT }, |
183 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE), | 185 | { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE), |