Input: xpad - fix rumble on Xbox One controllers with 2015 firmware
authorCameron Gutman <aicommander@gmail.com>
Wed, 1 Jun 2016 18:32:51 +0000 (11:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:46:37 +0000 (09:46 +0100)
commit04bd6163b019b6166651f938d4da660bfb26a443
tree2d2661fe8b3f6762f40adfcea82881942c061f37
parent333279f24f5ca5caebc2e17781543207b4ec39d6
Input: xpad - fix rumble on Xbox One controllers with 2015 firmware

[ Upstream commit 540c26087bfbad6ea72758b76b16ae6282a73fea ]

Xbox One controllers that shipped with or were upgraded to the 2015
firmware discard the current rumble packets we send. This patch changes
the Xbox One rumble packet to a form that both the newer and older
firmware will accept.

It is based on changes made to support newer Xbox One controllers in
the SteamOS brewmaster-4.1 kernel branch.

Signed-off-by: Cameron Gutman <aicommander@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/joystick/xpad.c