From patchwork Fri Feb 3 02:27:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicki Pfau X-Patchwork-Id: 650714 Return-Path: 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 1DC16C61DA4 for ; Fri, 3 Feb 2023 02:28:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231462AbjBCC2o (ORCPT ); Thu, 2 Feb 2023 21:28:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbjBCC2n (ORCPT ); Thu, 2 Feb 2023 21:28:43 -0500 Received: from endrift.com (endrift.com [173.255.198.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7BEE23100 for ; Thu, 2 Feb 2023 18:28:42 -0800 (PST) Received: from nebulosa.vulpes.eutheria.net (unknown [50.47.218.115]) by endrift.com (Postfix) with ESMTPSA id 9CAC2A264; Thu, 2 Feb 2023 18:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=endrift.com; s=2020; t=1675391322; bh=qeP0TaAqRTLFzJZr4cKi3LGKbofYpdAHzSlvZ6+Mc34=; h=From:To:Cc:Subject:Date:From; b=UWgsIiLVcjS9Id9G+tTMTKoEVKAcEIJEEDXmMI8Mr64Zi6GaNvHxAT6WL1eZ42glt ffqIV/AGBtTo2+5eul/PkTJVWdKM//wUWEzZFBviB+jM2/9064f5kTsevsgEs0L3M2 zJkJPK/X8equOm7Fp1D7FH9xWviZZAGdCsNTHKziVPyx1xp9wus/VeFMAspZVdzduw StxUbL167H6ts+2TqqKEqX/SfKomy1wbuJl5zmCZEDw++f6gIpwiWjwlqZ2h1GD6oR qStiz2mWFPQV1T8C2JBRHXjaIo2l7Idd4h0RJmlSjz11vdR9nRGheFbuMbOhUBFc+U /o8j0ekMabgaQ== From: Vicki Pfau To: Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org Cc: "Pierre-Loup A. Griffais" , Cristian Ciocaltea Subject: [PATCH 1/3] Input: xpad - Treat Qanba controllers as Xbox360 controllers Date: Thu, 2 Feb 2023 18:27:56 -0800 Message-Id: <20230203022758.3982393-1-vi@endrift.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: "Pierre-Loup A. Griffais" They act that way in PC mode. Signed-off-by: Cristian Ciocaltea Reviewed-by: Lyude Paul --- drivers/input/joystick/xpad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 2959d80f7fdb..bb65c8268963 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -492,6 +492,7 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */ XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */ XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */ + XPAD_XBOX360_VENDOR(0x2c22), /* Qanba Controllers */ XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller for Xbox */ XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */ XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */