Skip to contentSkip to conversation

HID: sony: Add rumble and LED support for Nyko Core Controller

PATCH In review Scott Moreau 2 participants 2 messages Dec 10, 2015 – Dec 28, 2015 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: sony: Add rumble and LED support for Nyko Core Controller

The Nyko Core Controller, vendor:1345 product:3008, is a usb controller marketed as a PS3 controller. It works as an HID device for input. It has a single left rumble motor and no accelerometers, so it isn't a sixaxis. This patch adds rumble and led support in the hid-sony driver.

---
 drivers/hid/hid-core.c |   1 +
 drivers/hid/hid-ids.h  |   3 ++
 drivers/hid/hid-sony.c | 109 ++++++++++++++++++++++++++++++++++++++++++++++---
 3 files changed, 107 insertions(+), 6 deletions(-)
drivers/hid/hid-core.c +1 -0
index c6f7a69..bcaf96e 100644
@@ -2008,6 +2008,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGP_MOUSE) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SINO_LITE, USB_DEVICE_ID_SINO_LITE_CONTROLLER) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_SRWS1) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SUNPLUS, USB_DEVICE_ID_SUNPLUS_WDESKTOP) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_THINGM, USB_DEVICE_ID_BLINK1) },
drivers/hid/hid-ids.h +3 -0
index 9024a3d..3ce4817 100644
@@ -874,6 +874,9 @@
 #define USB_DEVICE_ID_SONY_BUZZ_CONTROLLER		0x0002
 #define USB_DEVICE_ID_SONY_WIRELESS_BUZZ_CONTROLLER	0x1000
 
+#define USB_VENDOR_ID_SINO_LITE			0x1345
+#define USB_DEVICE_ID_SINO_LITE_CONTROLLER	0x3008
+
 #define USB_VENDOR_ID_SOUNDGRAPH	0x15c2
 #define USB_DEVICE_ID_SOUNDGRAPH_IMON_FIRST	0x0034
 #define USB_DEVICE_ID_SOUNDGRAPH_IMON_LAST	0x0046
drivers/hid/hid-sony.c +103 -6

196 lines not on this page · raw message

Signature · 1 line
2.5.0
maintainer
#1 lore raw
Quoted 4 lines · Scott Moreau

The Nyko Core Controller, vendor:1345 product:3008, is a usb controller marketed as a PS3 controller. It works as an HID device for input. It has a single left rumble motor and no accelerometers, so it isn't a sixaxis. This patch adds rumble and led support in the hid-sony driver.

Scott,

the patch is missing your Signoff; as such, it unfortunately can't be merged. Please see Documentation/SubmittingPatches for details.

Antonio, Frank, I'd like to have your Ack for this one as well is possible.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs