Message ID | 20220817175134.15084-1-nate@yocom.org |
---|---|
Headers | show
Return-Path: <linux-input-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98045C25B08 for <linux-input@archiver.kernel.org>; Wed, 17 Aug 2022 17:51:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238014AbiHQRvj (ORCPT <rfc822;linux-input@archiver.kernel.org>); Wed, 17 Aug 2022 13:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbiHQRvi (ORCPT <rfc822;linux-input@vger.kernel.org>); Wed, 17 Aug 2022 13:51:38 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F5257A75A for <linux-input@vger.kernel.org>; Wed, 17 Aug 2022 10:51:37 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d16so12590195pll.11 for <linux-input@vger.kernel.org>; Wed, 17 Aug 2022 10:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yocom-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=kWck20S1B+F14QNxCoJfAR+/3TD94IN6T9hA3skKazc=; b=GXH9jSMPPj0o5jJEYkmfhqF7ueKW2cVKn5uh7+RxeTQWuYByj4vGGyqPH6i0mhj5cz mfGUvN8CWxJGdJ/ICESAHxubo2RBuu5lcCX2w7Iv8vNe3yrYCTjpUnfKkgON3lGRSzWC 9UUIvAtWE8REDTU+FFo46bIrT4szc86T8Cv73RVOcKZEM/Evy802fBjGSle4DQDdp7dL XFq/gz/YEW35sSql3gwF0yQM6gg4s9LzTF48yBvdxXRdvWqM6iR+zJRWLCEWKTeExiwT 9wgbpLoBgMkA83yJ6KAwrMVBnKUjJTa4tlSsAAaL2lRs/k+bNAJfey1AYeUOWdyi36hG n5+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=kWck20S1B+F14QNxCoJfAR+/3TD94IN6T9hA3skKazc=; b=E00ULkflg9Zn5RQ36fK4c2ArxYDXa7Q1U5YsUMVwZh+91uq5XcS5WqgP1wMw1gpk37 lhKQ1sp63b3yygMTjs7PN60BDoDr/biQGq7b4xD7hb8dRlnX3OL7KQJeoofpwhyhST7X SKUC+2bWq9gbRWZ8ryis9aGPN3lQQTz6secNJb+1AGjDg5CKtxYUSR2Hf65RrKMUs8y5 l1/IZZ0dRWxaNMZM/YrdDi/AExYMSqiVRY//nxqbL9rvXjzFsap3HXQYdjaEtNQbYvQK LhhOX1xr+vXWBgLjy00aPKCUhi/MT7/EHFcB57HwbRjzbqeNrE5uOQikvEyTfwJrmedY ivTw== X-Gm-Message-State: ACgBeo1A8m/ILwEug3a49XvXL5revrJEXrh14KScYna9wdZWPpe0kFNQ YpGaO+en7zOXDy9fewpXHLxlIQ== X-Google-Smtp-Source: AA6agR5ZYLi82ql41LRFSL9bT86RXgUa8FyjSpMspI7A3p4dVht9dllCbmBkniKzTS6fRHwZiL+LiQ== X-Received: by 2002:a17:90b:278b:b0:1f7:66b6:a86d with SMTP id pw11-20020a17090b278b00b001f766b6a86dmr4940147pjb.115.1660758697173; Wed, 17 Aug 2022 10:51:37 -0700 (PDT) Received: from localhost.localdomain ([2601:600:8f80:973::5f]) by smtp.gmail.com with ESMTPSA id z29-20020aa7991d000000b0052f0a616a87sm10734127pff.168.2022.08.17.10.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 10:51:36 -0700 (PDT) From: Nate Yocom <nate@yocom.org> To: dmitry.torokhov@gmail.com Cc: nate@yocom.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, hadess@hadess.net Subject: [PATCH v4 0/3] Input: joystick: xpad: Add X-Box Adaptive Controller support Date: Wed, 17 Aug 2022 10:51:31 -0700 Message-Id: <20220817175134.15084-1-nate@yocom.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-input.vger.kernel.org> X-Mailing-List: linux-input@vger.kernel.org |
Series |
Input: joystick: xpad: Add X-Box Adaptive Controller support
|
expand
|
Adds support for the X-Box Adaptive Controller, which is protocol compatible with the XTYPE_XBOXONE support in the driver with two deltas: - The X-Box button sets 0x02 as its activation ID, where others set 0x01 - The controller has an additional Profile button with 4 active states, which this change maps to an Axis control with 4 possible values Patch series adds device to the supported table, adds support for the Profile button, and adds support for the X-Box button as distinct changes. Signed-off-by: Nate Yocom <nate@yocom.org> Nate Yocom (3): Input: joystick: xpad: Add X-Box Adaptive Controller support Input: joystick: xpad: Add X-Box Adaptive Controller Profile button Input: joystick: xpad: Add X-Box Adaptive Controller XBox button v2: Fix warning Reported-by: kernel test robot <lkp@intel.com> v3: Break into multi-part and remove VID/PID check for XBox button v4: Rename Layer -> Profile as suggested by Bastien Nocera <hadess@hadess.net> drivers/input/joystick/xpad.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) base-commit: 15205c2829ca2cbb5ece5ceaafe1171a8470e62b