HID: wiimote: add 2nd generation Wii Remote IDs
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 2 Apr 2013 17:58:35 +0000 (19:58 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 4 Apr 2013 07:38:43 +0000 (09:38 +0200)
This adds the 2nd generation Wii Remote IDs. They have a different
Bluetooth chipset (CSR instead of Broadcom) and are more restrictive in
what they accept as input. Hence, you need up-to-date BlueZ and
Bluetooth HIDP modules to use these devices.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-ids.h
drivers/hid/hid-wiimote-core.c

index 512b01c04ea7610bcb6466208255a9d83a36cb1d..eb0309eae7b976f6a1fb781f24c7cb699a1214d0 100644 (file)
@@ -1747,6 +1747,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 
        { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_PRESENTER_8K_BT) },
        { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_NINTENDO, USB_DEVICE_ID_NINTENDO_WIIMOTE) },
+       { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_NINTENDO, USB_DEVICE_ID_NINTENDO_WIIMOTE2) },
        { }
 };
 
index c4388776f4e470ae527470fb47357c220bbf9624..4905346b03f8c4eb15d408e0c671840f6d16635f 100644 (file)
 
 #define USB_VENDOR_ID_NINTENDO         0x057e
 #define USB_DEVICE_ID_NINTENDO_WIIMOTE 0x0306
+#define USB_DEVICE_ID_NINTENDO_WIIMOTE2        0x0330
 
 #define USB_VENDOR_ID_NOVATEK          0x0603
 #define USB_DEVICE_ID_NOVATEK_PCT      0x0600
index f1c7a113b61494ca2d24959c10eec5f7b694bb7d..f7b521aa1b3d8124ebeca7e80cb18370d49d81ad 100644 (file)
@@ -1291,6 +1291,8 @@ static void wiimote_hid_remove(struct hid_device *hdev)
 static const struct hid_device_id wiimote_hid_devices[] = {
        { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_NINTENDO,
                                USB_DEVICE_ID_NINTENDO_WIIMOTE) },
+       { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_NINTENDO,
+                               USB_DEVICE_ID_NINTENDO_WIIMOTE2) },
        { }
 };
 MODULE_DEVICE_TABLE(hid, wiimote_hid_devices);