From patchwork Tue Aug 28 05:48:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ramses_Ram=C3=ADrez?= X-Patchwork-Id: 10577891 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD5D35A4 for ; Tue, 28 Aug 2018 05:48:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA21229B90 for ; Tue, 28 Aug 2018 05:48:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB5AA29B94; Tue, 28 Aug 2018 05:48:49 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,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 5DA0329B90 for ; Tue, 28 Aug 2018 05:48:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725925AbeH1Jip (ORCPT ); Tue, 28 Aug 2018 05:38:45 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:44755 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbeH1Jip (ORCPT ); Tue, 28 Aug 2018 05:38:45 -0400 Received: by mail-oi0-f65.google.com with SMTP id l82-v6so696598oih.11; Mon, 27 Aug 2018 22:48:45 -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:mime-version :content-transfer-encoding; bh=I9yaeC8o347H9zCYUCuOeyyGHsohJP8MUFWbscsUaTM=; b=Qd8gQH7HS4ExJ9aYGz6BY5Flj+z1DlD2Av61zrQzCO5TZd7E6L1nmBwx3Td5iApyPO KgMWrPQb+B3Rw/wypOlNY71IQjgKS0nRGIEzTGCXMSupUTVnU6HxRfu0rLw8P607chhR /NJ7xRkwczLvXRjW3OmECRsogrxSPuJNHBkKbUzbKIsfF/Jyjld3mZwuOj1Juv3pydcy 8nTSHFANN5ksmKNRuL9TfK5cfmySlmDICUNZIjlbfTgBDfp1yeoH/fXmrw6E5igWloNy HGe9aqcFlpASU5Pze7s3JKEpwT/dCo7iudPee4oQPRsxUuKRAwGacNkqdLz11Xh6DYo4 MyNA== 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:mime-version :content-transfer-encoding; bh=I9yaeC8o347H9zCYUCuOeyyGHsohJP8MUFWbscsUaTM=; b=QGCUKrJtNmzu/0p7r9/sMRmWocK8M5cV9mbkqGJHCsLuluONvoj5e41ZBkoqrbHBRY UbpQ5toqK2+wppHqbgSub0YStOfGB5ZHPLmiJ4lrLNy95DgJJSlg0EL9cvN/wiHO/+lq infL5mPLUWkMTe8zmmBdiW+W1fCgNknV8WCAYzZuWNP8Mmw6Y+MEC2OOgc6i7u4r7L4c AUiYAgRjiF3PUopHO7ddRAdrb14uy/X0erhMbW3mNyf9XxUhGiLLtolQzPIPie2rPg2c 1pMTYP0TvsqKk07X4qpXS45wIvf02NzQI5E94t36DfKbqiZxI9uOQb2UyjBr48MVKt1f V66Q== X-Gm-Message-State: APzg51BbbkVjPNWbuAvEyMLta9lWFOXLA3AgcJPjF0316AF0XwPb960H qMJJ2O+Jyl4bjNNJbeSt/Ck= X-Google-Smtp-Source: ANB0VdYz+yKv6EQ8QQvqLGF0nFMTq8ug6m0VdHDDNfsS40LbEHL+H5D2BzFefp2W5pB2UlbXS49a0g== X-Received: by 2002:aca:4fcd:: with SMTP id d196-v6mr38240oib.51.1535435324629; Mon, 27 Aug 2018 22:48:44 -0700 (PDT) Received: from localhost.localdomain ([187.247.209.67]) by smtp.gmail.com with ESMTPSA id q63-v6sm54307oia.54.2018.08.27.22.48.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 22:48:43 -0700 (PDT) From: =?utf-8?q?Ramses_Ram=C3=ADrez?= Cc: ramzeto@gmail.com, Dmitry Torokhov , Cameron Gutman , Mark Furneaux , Leo Sperling , Enno Boland , Marcus Folkesson , Francis Therien , Julia Lawall , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: Support for Xbox1 PDP Camo series gamepad Date: Tue, 28 Aug 2018 00:48:11 -0500 Message-Id: <20180828054812.14428-1-ramzeto@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) 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 The "Xbox One PDP Wired Controller - Camo series" has a different product-id than the regular PDP controller and the PDP stealth series, but it uses the same initialization sequence. This patch adds the product-id of the camo series to the structures that handle the other PDP Xbox One controllers. Signed-off-by: Ramses Ramírez --- drivers/input/joystick/xpad.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index cd620e009bad..d4b9db487b16 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -231,6 +231,7 @@ static const struct xpad_device { { 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, 0x02a6, "PDP Wired Controller for Xbox One - Camo 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 }, @@ -530,6 +531,8 @@ static const struct xboxone_init_packet xboxone_init_packets[] = { 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(0x0e6f, 0x02a6, xboxone_pdp_init1), + XBOXONE_INIT_PKT(0x0e6f, 0x02a6, 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),