Skip to contentSkip to conversation

HID: sony: add support for Rock Band 4 PS4 and PS5 guitars

PATCH Applied Rosalie Wanders 2 participants 2 messages Jan 2 – Jan 10 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: sony: add support for Rock Band 4 PS4 and PS5 guitars

This commit adds support for the PDP RiffMaster and the CRKD Gibson SG in both their PS4 and PS5 modes.

These devices aren't mapped correctly without these changes, they also lack support for their whammy and tilt functionality which this patch adds support for by binding them to the left and right triggers.

---
 drivers/hid/Kconfig    |   4 +-
 drivers/hid/hid-ids.h  |   8 +++
 drivers/hid/hid-sony.c | 119 ++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 127 insertions(+), 4 deletions(-)
drivers/hid/Kconfig +2 -2
index 920a64b66b25..932e4110bb38 100644
@@ -1084,7 +1084,7 @@ config HID_SIGMAMICRO
 	  - Rapoo V500
 
 config HID_SONY
-	tristate "Sony PS2/3/4 accessories"
+	tristate "Sony PS2/3/4/5 accessories"
 	depends on USB_HID
 	depends on NEW_LEDS
 	depends on LEDS_CLASS
@@ -1094,12 +1094,12 @@ config HID_SONY
 	Support for
 
 	  * Sony PS3 6-axis controllers
-	  * Sony PS4 DualShock 4 controllers
 	  * Buzz controllers
 	  * Sony PS3 Blue-ray Disk Remote Control (Bluetooth)
 	  * Logitech Harmony adapter for Sony Playstation 3 (Bluetooth)
 	  * Guitar Hero Live PS3, Wii U and PS4 guitar dongles
 	  * Guitar Hero PS3 and PC guitar dongles
+	  * Rock Band 4 PS4 and PS5 guitars
 
 config SONY_FF
 	bool "Sony PS2/3/4 accessories force feedback support"
drivers/hid/hid-ids.h +8 -0
index d31711f1aaec..d95768c8fe06 100644
@@ -363,6 +363,10 @@
 #define USB_DEVICE_ID_PRODIKEYS_PCMIDI	0x2801
 #define USB_DEVICE_ID_CREATIVE_SB0540	0x3100
 
+#define USB_VENDOR_ID_CRKD	0x3651
+#define USB_DEVICE_ID_CRKD_PS4_GIBSON_SG	0x1500
+#define USB_DEVICE_ID_CRKD_PS5_GIBSON_SG	0x1600
+
 #define USB_VENDOR_ID_CVTOUCH		0x1ff7
 #define USB_DEVICE_ID_CVTOUCH_SCREEN	0x0013
 
@@ -1145,6 +1149,10 @@
 #define USB_VENDOR_ID_POWERCOM		0x0d9f
 #define USB_DEVICE_ID_POWERCOM_UPS	0x0002
 
+#define USB_VENDOR_ID_PDP	0x0e6F
+#define USB_DEVICE_ID_PDP_PS4_RIFFMASTER	0x024a
+#define USB_DEVICE_ID_PDP_PS5_RIFFMASTER	0x0249
+
 #define USB_VENDOR_ID_PRODIGE		0x05af
 #define USB_DEVICE_ID_PRODIGE_CORDLESS	0x3062
 
drivers/hid/hid-sony.c +117 -2

185 lines not on this page · raw message

Signature · 1 line
2.52.0
maintainer Applied
#1 lore raw
Quoted 8 lines · Rosalie Wanders

This commit adds support for the PDP RiffMaster and the CRKD Gibson SG in both their PS4 and PS5 modes.

These devices aren't mapped correctly without these changes, they also lack support for their whammy and tilt functionality which this patch adds support for by binding them to the left and right triggers.

Applied to hid.git#for-6.20/sony. Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs