aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Therien <frtherien@gmail.com>2018-03-26 18:59:00 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-03-26 20:06:08 -0400
commitc6c848572f4da0e34ffe0a35364b4db871e13e42 (patch)
tree23db3a9fbf3d43a147f746c01f9eecdfe8e3742b
parent3993a16309c7efc93dee772a9279a34bc88cdcb5 (diff)
Input: xpad - add PDP device id 0x02a4
Adds support for a PDP Xbox One controller with device ID (0x06ef:0x02a4). The Product string for this device is "PDP Wired Controller for Xbox One - Stealth Series | Phantom Black". Signed-off-by: Francis Therien <frtherien@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/joystick/xpad.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 9d2688f3f961..06e9650b3b30 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -227,6 +227,7 @@ static const struct xpad_device {
227 { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 }, 227 { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
228 { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE }, 228 { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE },
229 { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE }, 229 { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE },
230 { 0x0e6f, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
230 { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 }, 231 { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 },
231 { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE }, 232 { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE },
232 { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 }, 233 { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 },
@@ -475,7 +476,8 @@ static const u8 xboxone_hori_init[] = {
475 476
476/* 477/*
477 * This packet is required for some of the PDP pads to start 478 * This packet is required for some of the PDP pads to start
478 * sending input reports. One of those pads is (0x0e6f:0x02ab). 479 * sending input reports. These pads include: (0x0e6f:0x02ab),
480 * (0x0e6f:0x02a4).
479 */ 481 */
480static const u8 xboxone_pdp_init1[] = { 482static const u8 xboxone_pdp_init1[] = {
481 0x0a, 0x20, 0x00, 0x03, 0x00, 0x01, 0x14 483 0x0a, 0x20, 0x00, 0x03, 0x00, 0x01, 0x14
@@ -483,7 +485,8 @@ static const u8 xboxone_pdp_init1[] = {
483 485
484/* 486/*
485 * This packet is required for some of the PDP pads to start 487 * This packet is required for some of the PDP pads to start
486 * sending input reports. One of those pads is (0x0e6f:0x02ab). 488 * sending input reports. These pads include: (0x0e6f:0x02ab),
489 * (0x0e6f:0x02a4).
487 */ 490 */
488static const u8 xboxone_pdp_init2[] = { 491static const u8 xboxone_pdp_init2[] = {
489 0x06, 0x20, 0x00, 0x02, 0x01, 0x00 492 0x06, 0x20, 0x00, 0x02, 0x01, 0x00
@@ -521,6 +524,8 @@ static const struct xboxone_init_packet xboxone_init_packets[] = {
521 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_fw2015_init), 524 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_fw2015_init),
522 XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init1), 525 XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init1),
523 XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init2), 526 XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init2),
527 XBOXONE_INIT_PKT(0x0e6f, 0x02a4, xboxone_pdp_init1),
528 XBOXONE_INIT_PKT(0x0e6f, 0x02a4, xboxone_pdp_init2),
524 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init), 529 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init),
525 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init), 530 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init),
526 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init), 531 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),