]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
HID: add BETOP game controller force feedback support
authorHuang Bo <huangbobupt@163.com>
Wed, 26 Nov 2014 10:21:03 +0000 (18:21 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 22 Dec 2014 13:42:39 +0000 (14:42 +0100)
Adds force feedback support for BETOP USB game controllers.
These devices are mass produced in China.

Signed-off-by: Huang Bo <huangbobupt@163.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-core.c
drivers/hid/hid-ids.h

index 230b6f887cd86e9b4d3d4bf625166c878d5524ed..c33d98e00dce7438d402da45f50dd81f6529a0f4 100644 (file)
@@ -146,6 +146,16 @@ config HID_BELKIN
        ---help---
        Support for Belkin Flip KVM and Wireless keyboard.
 
+config HID_BETOP_FF
+       tristate "Betop Production Inc. force feedback support"
+       depends on USB_HID
+       select INPUT_FF_MEMLESS
+       ---help---
+       Say Y here if you want to enable force feedback support for devices by
+       BETOP Production Ltd.
+       Currently the following devices are known to be supported:
+        - BETOP 2185 PC & BFM MODE
+
 config HID_CHERRY
        tristate "Cherry Cymotion keyboard" if EXPERT
        depends on HID
index debd15b44b591b12ad363a1cb50b21421889114c..3a27d14be28d84e76e7649cd8ca3d79e41b6bdad 100644 (file)
@@ -39,6 +39,7 @@ obj-$(CONFIG_HID_APPLE)               += hid-apple.o
 obj-$(CONFIG_HID_APPLEIR)      += hid-appleir.o
 obj-$(CONFIG_HID_AUREAL)        += hid-aureal.o
 obj-$(CONFIG_HID_BELKIN)       += hid-belkin.o
+obj-$(CONFIG_HID_BETOP_FF)     += hid-betopff.o
 obj-$(CONFIG_HID_CHERRY)       += hid-cherry.o
 obj-$(CONFIG_HID_CHICONY)      += hid-chicony.o
 obj-$(CONFIG_HID_CP2112)       += hid-cp2112.o
index c3d0ac1a0988096eaacbe8063b354399b6a85e14..9b1442ac40020dcf294f4b4ca2d201a56f1dbab9 100644 (file)
@@ -1757,6 +1757,10 @@ static const struct hid_device_id hid_have_special_driver[] = {
        { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY) },
        { HID_USB_DEVICE(USB_VENDOR_ID_AUREAL, USB_DEVICE_ID_AUREAL_W01RN) },
        { HID_USB_DEVICE(USB_VENDOR_ID_BELKIN, USB_DEVICE_ID_FLIP_KVM) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_BETOP_2185BFM, 0x2208) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_BETOP_2185PC, 0x5506) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_BETOP_2185V2PC, 0x1850) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_BETOP_2185V2BFM, 0x5500) },
        { HID_USB_DEVICE(USB_VENDOR_ID_BTC, USB_DEVICE_ID_BTC_EMPREX_REMOTE) },
        { HID_USB_DEVICE(USB_VENDOR_ID_BTC, USB_DEVICE_ID_BTC_EMPREX_REMOTE_2) },
        { HID_USB_DEVICE(USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION) },
index 7460f3402298c2e1925059a1ef5cbf669e9d381b..ac20ba0937ce67c731c1716b77e89fa45f618d59 100644 (file)
 #define USB_VENDOR_ID_BERKSHIRE                0x0c98
 #define USB_DEVICE_ID_BERKSHIRE_PCWD   0x1140
 
+#define USB_VENDOR_ID_BETOP_2185BFM    0x11c2
+#define USB_VENDOR_ID_BETOP_2185PC     0x11c0
+#define USB_VENDOR_ID_BETOP_2185V2PC   0x8380
+#define USB_VENDOR_ID_BETOP_2185V2BFM  0x20bc
+
 #define USB_VENDOR_ID_BTC              0x046e
 #define USB_DEVICE_ID_BTC_EMPREX_REMOTE        0x5578
 #define USB_DEVICE_ID_BTC_EMPREX_REMOTE_2      0x5577