From patchwork Sun Mar 25 12:56:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francis Therien X-Patchwork-Id: 10306625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B42E8600CC for ; Sun, 25 Mar 2018 12:56:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 906192913E for ; Sun, 25 Mar 2018 12:56:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 828B229371; Sun, 25 Mar 2018 12:56:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 239DC2913E for ; Sun, 25 Mar 2018 12:56:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752374AbeCYM4u (ORCPT ); Sun, 25 Mar 2018 08:56:50 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:36481 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752146AbeCYM4t (ORCPT ); Sun, 25 Mar 2018 08:56:49 -0400 Received: by mail-qk0-f195.google.com with SMTP id o205so5854257qke.3 for ; Sun, 25 Mar 2018 05:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6s1lIZFWR4XPw0Q8xVaYKpbywBcXe85xMViiI8jZ7kM=; b=X/Fmpqwq0tVhdhJ9h+uqUYd5391qyRJsllVrYLhp9dT8TDbk34uCh02mzL6kaWnWUL 8YMI68lYom3dCwgv0vfCYiWEG6QpI7VBKcSBoXAAH/yfKnUoT60WY3Ie+vWnApOXUMUm NB0cycBj7xBcqAWJo3Gg5hF8cfdOaaI2RVGw7wHZ0VF2iSjd6+xPyBXX5gYhVS8AzaQU XoXnFrxAVgh1/U/qFc2HrSEDdsw9PstqEDiaKyg22NMQs0TjZe0SwDIURBrQBP3+jIfU oKQhjSinL3A017GEiSaqmG0WnzlAGsKyNdKxnUcdF1dCm5q1/d64aUnzRXVn/z8ypXke yvmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6s1lIZFWR4XPw0Q8xVaYKpbywBcXe85xMViiI8jZ7kM=; b=cLhwC0zBtxKsbu8Hp8gKQAmz+jW3oBBqEIdDm8PZ17lYAZP9PAnPWnEE2FhbldanMy xnlDQvbv9Zx11bP2MtsfvoRf3O7yYYOK9fyrSZFW6e8Yo4Cgf1sgziDuesEON9Jxw0Z/ 6eh26QRDgzT4UZ3cuypOj/bJbvgVloRbF3dmJ/FALzDAEpF+EoPqQ2JQdhwWFmsvAMAx +yE32tFVuZ3Fq1+0psT1oWd8s58YsrzVoiEK2YZ7kfdgRge3Xi924M29n2aMO+lWAr82 W80L2/Xo3AFabl51/c6gsxzLTP9yNora4FOWNP4lOpLkL4UOwnvzwGrVG6ua4TKzOrN/ tndw== X-Gm-Message-State: AElRT7EOHFqcsVedJ7pQdWNUZ6Q839H1nloTVSj2BVtaZSN5sxWiDvQL Oaw2ZVyTkYa99Fy9+zcaTNidaAh0mFI= X-Google-Smtp-Source: AG47ELujogzOMOhCodo2wwkC5dsiSqyqn0tHhJtfIzpdpkxSpTz/C0OOM7bAzS3S3WySiI7jaWKYaw== X-Received: by 10.55.155.142 with SMTP id d136mr48500425qke.274.1521982608255; Sun, 25 Mar 2018 05:56:48 -0700 (PDT) Received: from localhost.localdomain (cable-192.222.226.104.electronicbox.net. [192.222.226.104]) by smtp.googlemail.com with ESMTPSA id k123sm9640761qkd.80.2018.03.25.05.56.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Mar 2018 05:56:47 -0700 (PDT) From: Francis Therien To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , Cameron Gutman , Mark Furneaux , Francis Therien Subject: [PATCH] Input: xpad - Add PDP device id 0x02a4 Date: Sun, 25 Mar 2018 08:56:19 -0400 Message-Id: <20180325125619.29191-1-frtherien@gmail.com> X-Mailer: git-send-email 2.16.2 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/input/joystick/xpad.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 9d2688f3f961..5402f488bdb9 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -227,6 +227,7 @@ static const struct xpad_device { { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 }, { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE }, { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE }, { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 }, { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE }, { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 }, @@ -475,7 +476,8 @@ static const u8 xboxone_hori_init[] = { /* * This packet is required for some of the PDP pads to start - * sending input reports. One of those pads is (0x0e6f:0x02ab). + * sending input reports. These pads include : (0x0e6f:0x02ab, + * 0x0e6f:0x02a4). */ static const u8 xboxone_pdp_init1[] = { 0x0a, 0x20, 0x00, 0x03, 0x00, 0x01, 0x14 @@ -483,7 +485,8 @@ static const u8 xboxone_pdp_init1[] = { /* * This packet is required for some of the PDP pads to start - * sending input reports. One of those pads is (0x0e6f:0x02ab). + * sending input reports. These pads include : (0x0e6f:0x02ab, + * 0x0e6f:0x02a4). */ static const u8 xboxone_pdp_init2[] = { 0x06, 0x20, 0x00, 0x02, 0x01, 0x00 @@ -521,6 +524,8 @@ static const struct xboxone_init_packet xboxone_init_packets[] = { XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_fw2015_init), XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init1), XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init2), + XBOXONE_INIT_PKT(0x0e6f, 0x02a4, xboxone_pdp_init1), + XBOXONE_INIT_PKT(0x0e6f, 0x02a4, xboxone_pdp_init2), XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init), XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init), XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),