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:48:02 +0000 (09:48 +0100)
commitdb3d42826def3b787373523062b729a29ca13fef
tree898c9836a30d1e3ce59c18907addbcadb1001c1d
parent1a9409ebba38fbafb01ab55a2f4abe76c8ddcde7
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