| From 0d9363a764d9d601a05591f9695cea8b429e9be3 Mon Sep 17 00:00:00 2001 |
| From: Shengyu Qu <wiagn233@outlook.com> |
| Date: Fri, 3 Apr 2026 22:07:28 -0700 |
| Subject: Input: xpad - add support for BETOP BTP-KP50B/C controller's wireless mode |
| |
| From: Shengyu Qu <wiagn233@outlook.com> |
| |
| commit 0d9363a764d9d601a05591f9695cea8b429e9be3 upstream. |
| |
| BETOP's BTP-KP50B and BTP-KP50C controller's wireless dongles are both |
| working as standard Xbox 360 controllers. Add USB device IDs for them to |
| xpad driver. |
| |
| Signed-off-by: Shengyu Qu <wiagn233@outlook.com> |
| Link: https://patch.msgid.link/TY4PR01MB14432B4B298EA186E5F86C46B9855A@TY4PR01MB14432.jpnprd01.prod.outlook.com |
| Cc: stable@vger.kernel.org |
| Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| --- |
| drivers/input/joystick/xpad.c | 3 +++ |
| 1 file changed, 3 insertions(+) |
| |
| --- a/drivers/input/joystick/xpad.c |
| +++ b/drivers/input/joystick/xpad.c |
| @@ -360,6 +360,8 @@ static const struct xpad_device { |
| { 0x1bad, 0xfd00, "Razer Onza TE", 0, XTYPE_XBOX360 }, |
| { 0x1bad, 0xfd01, "Razer Onza", 0, XTYPE_XBOX360 }, |
| { 0x1ee9, 0x1590, "ZOTAC Gaming Zone", 0, XTYPE_XBOX360 }, |
| + { 0x20bc, 0x5134, "BETOP BTP-KP50B Xinput Dongle", 0, XTYPE_XBOX360 }, |
| + { 0x20bc, 0x514a, "BETOP BTP-KP50C Xinput Dongle", 0, XTYPE_XBOX360 }, |
| { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE }, |
| { 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE }, |
| { 0x20d6, 0x2064, "PowerA Wired Controller for Xbox", MAP_SHARE_BUTTON, XTYPE_XBOXONE }, |
| @@ -562,6 +564,7 @@ static const struct usb_device_id xpad_t |
| XPAD_XBOX360_VENDOR(0x1a86), /* Nanjing Qinheng Microelectronics (WCH) */ |
| XPAD_XBOX360_VENDOR(0x1bad), /* Harmonix Rock Band guitar and drums */ |
| XPAD_XBOX360_VENDOR(0x1ee9), /* ZOTAC Technology Limited */ |
| + XPAD_XBOX360_VENDOR(0x20bc), /* BETOP wireless dongles */ |
| XPAD_XBOX360_VENDOR(0x20d6), /* PowerA controllers */ |
| XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA controllers */ |
| XPAD_XBOX360_VENDOR(0x2345), /* Machenike Controllers */ |