BACKPORT: HID: microsoft: Add rumble support to latest xbox controllers
authorJokubas <jokubas.ver@gmail.com>
Tue, 2 Jul 2024 07:29:08 +0000 (10:29 +0300)
committerJokubas <jokubas.ver@gmail.com>
Tue, 2 Jul 2024 08:16:44 +0000 (11:16 +0300)
commit43b428c56bfb6830121529e0dad0712d1ede7273
treee6f8cbf967c8a8e8a6a9dca88218c1d3205dea1f
parentc177104bd2299e452d78c92e6df6a4e692d57c28
BACKPORT: HID: microsoft: Add rumble support to latest xbox controllers

Add rumble support for various Xbox One/Series controllers via Bluetooth.
Controller rumble appears as a haptic device on Android and can be used
with the VibratorManagerAPI.

The only notible change from upstream is to add HID IDs to
hid_have_special_driver in hid-core.c as we are on 4.9 kernel,
otherwise hid-generic takes priority over hid-microsoft.

Tested on dopinder with Moonlight.

Commits from mainline linux:
(cherry-picked from f2d3b625dae10cdf14bcfcacb965b02f5c0acc01)
(cherry-picked from 73c5b254c36529c84c9d19e07905f7103bb32e79)
(cherry-picked from f5554725f30475b05b5178b998366f11ecb50c7f)

Change-Id: Iae2c6782534a7fbdefd44ed11911f8a0019bf631
drivers/hid/hid-core.c
drivers/hid/hid-ids.h
drivers/hid/hid-microsoft.c