Message ID | 1525120366-29304-1-git-send-email-terry.junge@plantronics.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-input-owner@kernel.org> 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 B34BF60116 for <patchwork-linux-input@patchwork.kernel.org>; Mon, 30 Apr 2018 20:33:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A396B285A8 for <patchwork-linux-input@patchwork.kernel.org>; Mon, 30 Apr 2018 20:33:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9811028B2C; Mon, 30 Apr 2018 20:33:19 +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_SIGNED, 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 04148285A8 for <patchwork-linux-input@patchwork.kernel.org>; Mon, 30 Apr 2018 20:33:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751469AbeD3UdQ (ORCPT <rfc822;patchwork-linux-input@patchwork.kernel.org>); Mon, 30 Apr 2018 16:33:16 -0400 Received: from mail-cys01nam02on0112.outbound.protection.outlook.com ([104.47.37.112]:40800 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755867AbeD3UdD (ORCPT <rfc822;linux-input@vger.kernel.org>); Mon, 30 Apr 2018 16:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plantronics.onmicrosoft.com; s=selector1-plantronics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iIvSBAup/aRDPffgcZcrd6TBc1Itu+p85A5ttbsrktc=; b=GDdrCHCVELPBgArGc3XxIFUKYMmF0MeKQamoE3pz6wLhLxUbihnHTUHMWndtevxI9q2BhFRrxYqvcFCONbhZRUP9re/u+vGeTYHWgpVVyc1XCf+XOv07STlLctc7YJqckXNy9DOFChC0pmeB1IEDF8bAgw2JgYxSUYUVS/SQfRY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Terry.Junge@plantronics.com; Received: from SQADIRECTOR3.plt.plantronics.com (198.231.9.145) by MWHPR02MB2655.namprd02.prod.outlook.com (2603:10b6:300:44::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.23; Mon, 30 Apr 2018 20:33:00 +0000 From: Terry Junge <terry.junge@plantronics.com> To: jikos@kernel.org Cc: Terry Junge <terry.junge@plantronics.com>, linux-input@vger.kernel.org Subject: [PATCH] HID: hid-plantronics: Re-resend Update to map button for PTT products Date: Mon, 30 Apr 2018 13:32:46 -0700 Message-Id: <1525120366-29304-1-git-send-email-terry.junge@plantronics.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [198.231.9.145] X-ClientProxiedBy: MWHPR03CA0032.namprd03.prod.outlook.com (2603:10b6:301:3b::21) To MWHPR02MB2655.namprd02.prod.outlook.com (2603:10b6:300:44::17) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:MWHPR02MB2655; X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2655; 3:sP08KUxo2XMCV3VKcsRw48mNAyoUlMZ39ix7XJStSPYSZciAOTlDX8Y1TrYlbzexS2B2bfsUsCIfpz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oCKtglqEfq7FYTNZ0U7ch2T0lSPWbU5DGwFWMmtzcTYf2v1a+nnyWiBFpNx7beZ6bsvj0MjysRYLYt62vOn1dR5NYxePpCnhaRZMyGqnxTJmtIuz1E9+jdSX1tFgVJhvtiJJ/h/MBKSuv/XU2AEbIyX3IAKXKu7Pou2dno5nHFhRWzOJPJgrKL9h4cVeP1cixOVdXaRxeeVIc74G978OdvgTyIzYVmGMZ2gLnHbaf0xklklJoyfo3d3d76WoN7pmxH93OyCj3w/h; 4:MMmEjQ40hkaJ2jMs8yPgSEwULfv7DTfYeL/y9x4G37yN4XLgfZfMsvby4+nsHdxdtHrjwRqeHSnc1+mUxTG0qv+4szz4+kFsY4z2n8ByozAB64OWNulfxnASDXuPuTgEW9AGLBw8B4MIyKpmsJHwE1uQJlC/SSjXOq9Oy1LX2Y4DnCSBF3P5wz+/96pq8IqeQG6w/AfgEaauOHtEjd5Ln2q2wBNPp+nLEsxJQWQ2tkmSEkDkXibiHJHsCZvYiZc9Sp3+eSWVvrs9gEWiKuYjV1GtCJBpGeQ+NWDSJAV8sUv1f/J7VRcoDdEzGqmwsrWlLFYNlNXQg/2DuUv2doaQ8zxDcLfXTiIZCg2jItKePwo= X-Microsoft-Antispam-PRVS: <MWHPR02MB26558B7CC7F4D6058E2AD1F5ED820@MWHPR02MB2655.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(84791874153150); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6041310)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:MWHPR02MB2655; BCL:0; PCL:0; RULEID:; SRVR:MWHPR02MB2655; X-Forefront-PRVS: 0658BAF71F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(366004)(376002)(39380400002)(396003)(39850400004)(189003)(199004)(2906002)(48376002)(81156014)(36756003)(50466002)(81166006)(105586002)(106356001)(68736007)(5660300001)(51416003)(8676002)(16526019)(7696005)(3846002)(478600001)(6116002)(66066001)(186003)(50226002)(52116002)(8936002)(86362001)(44832011)(72206003)(26005)(25786009)(476003)(2616005)(956004)(59450400001)(6916009)(6486002)(6666003)(305945005)(7736002)(97736004)(1857600001)(47776003)(386003)(2361001)(16586007)(316002)(486006)(53936002)(4326008)(2351001); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR02MB2655; H:SQADIRECTOR3.plt.plantronics.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: plantronics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR02MB2655; 23:uXzeLZVboEs/ROt9giZlxeXwQbtOL6Tlba2bxj6Dk?= =?us-ascii?Q?TsXc17zAzxf+LKSOliFYuBpjjdHt4ayIdFkxH453VYrg75q0jPIT37OXWPwP?= =?us-ascii?Q?ab+SIIOCp41I81Qg1LfFnRSPS8XLxgryg9ogn/M2+qVpDij/NacKJIwj2Z7m?= =?us-ascii?Q?IBDCj8rw5wHegN9llvvP0VwZ1Tts0YSJjHiLmAZj7qFlmEic1GSy1XhBb+y5?= =?us-ascii?Q?50N5hI4OUFHGr0f59yu9lpPdL5IFobdSsSxanyF2uBfzZos0bUjl7z60rHLI?= =?us-ascii?Q?YGtY2h5R8CpPnsdJnemUYMo4/LUmrnniS1BvOhJ9Uq67gkE5ehN4LrYi6HrW?= =?us-ascii?Q?QUrxEOF3Sq85YePLnV9L/Wm7DnA1Y6LqQezo2XULO3v93mby6F/r50ReaZUr?= =?us-ascii?Q?TvdZFfPykw1gWJp/Nap27+lwbd9Uc6i4gJnRHlDjm01UqfO8AnVAGCjqzhru?= =?us-ascii?Q?0ZoSWc2thDFg0G17Wy9ynWicxFNdptv12RxLuCKdGOFVxU907zJM3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F4UfEeAxeYZE0Exc7oI8YYiupQae0OTKpavaT2BWnX0IHqui25qI X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2655; 6:PsMfPDPaLqZBHPDAi9eYlBsGL48Wd1hForvm78aFYhS4E6/ZUVbkMgNklB8r5ODhrEFYKUNy7M9Yf2EXMvYgUCjMkR8uXrLbVncRP3M5VEO9BemXkIMvX1J6w51c7ZEFjdDNE+9l9IY0iZynX/nRQpnn8KynIlSYpzpU1jdACEYoPEEq6VCMMpsxSdv2cHkvLyas3WmNoUVghK+brcVv4xBfT5zDB8xTFs2H/qKplwLVCERezUqBogoczrNrgHmoWAjC5icGgdxNUukCzoYFlJ4V/AKwz+0kbiZUqmlZJvF25JOhTCiRj9/oWm5RkJXyFXWsrrmVEmTYSHSOe3kcqJVNrfh5JwRQI8wNELn3VfiJdp9jgt82a7YFGqw6niCscl9GTlVT54G1GPJjxzyjGrlrhiaincm7y7aHlCJFT1eZSR0pcaOklpZnvIBioQZ0KSYPB6g3Ul2Y8YPValNd+A==; 5:qJd+BMhag+UsI7BEe5zRknRRGAd+Y3vjbl9nVC4q3NOXZgPJmsJfZB2ikSOwjSpfrZLpoGPmLXx11yRkbBQj4fgq4t3n//SpadHZ42GmA4S8aEvYuDVPNnHdva1EjCdAcRynbduy5SiNHGA1qmp5dxa33r4kaccA3d+YVZH+X98=; 24:miNjEyYOitc93UBiI4uohac1uP9VmuDMJdu+3Jm3lOQUuuNS54kiQaWFpQQBY5vEI5ILYUysJtRj0835XxWwjuanKoxOyk0E8TlvMZ8OJ6g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2655; 7:LeWI74+7ecqajGE/hSTAKDPYqz2lqUcoMrv+/KMXgnnfE0CWG81qb/MaU+WrSL3ark4juJkwJWSxdDy/W+hq+Qc4zGCnMlHEjYHOMnCBRnTiqpq8VeAQoE27Ow5Q9TvrqfTaopqoTiLFBF3UpCCT4ZMY/Yw/gR41E4ltNMHrIYqLnC9FH+EgmRKTNRRzSeiHoF7ITD20vBvk4MBOf3wbPM/gRblQzmmp6FUZbaJaoI1VmSYdqiFJS2R9NhGGIciJ X-MS-Office365-Filtering-Correlation-Id: 30678a77-efd8-41a6-ce5e-08d5aed990fb X-OriginatorOrg: plantronics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2018 20:33:00.4944 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30678a77-efd8-41a6-ce5e-08d5aed990fb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bc7c5f16-c55e-417d-aac0-ff6bbfc27f76 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2655 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: <linux-input.vger.kernel.org> X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Applied to for-4.18/plantronics, thanks.
diff --git a/drivers/hid/hid-plantronics.c b/drivers/hid/hid-plantronics.c index febb21e..584b10d 100644 --- a/drivers/hid/hid-plantronics.c +++ b/drivers/hid/hid-plantronics.c @@ -2,7 +2,7 @@ * Plantronics USB HID Driver * * Copyright (c) 2014 JD Cole <jd.cole@plantronics.com> - * Copyright (c) 2015 Terry Junge <terry.junge@plantronics.com> + * Copyright (c) 2015-2018 Terry Junge <terry.junge@plantronics.com> */ /* @@ -48,6 +48,10 @@ static int plantronics_input_mapping(struct hid_device *hdev, unsigned short mapped_key; unsigned long plt_type = (unsigned long)hid_get_drvdata(hdev); + /* special case for PTT products */ + if (field->application == HID_GD_JOYSTICK) + goto defaulted; + /* handle volume up/down mapping */ /* non-standard types or multi-HID interfaces - plt_type is PID */ if (!(plt_type & HID_USAGE_PAGE)) {
Resend again with no trailing legal disclaimers added by mail server Added mapping for Push-To-Talk joystick trigger button. Patched against git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git Tested on ChromeBox/ChromeBook with various Plantronics devices. Signed-off-by: Terry Junge <terry.junge@plantronics.com> --- drivers/hid/hid-plantronics.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)