Input: xpad - update Xbox One Force Feedback Support
authorPierre-Loup A. Griffais <githubpublic@plagman.net>
Wed, 9 Dec 2015 21:40:37 +0000 (13:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:48:01 +0000 (09:48 +0100)
commit162a94765b7f479a11f532691489dd6e3f4d7237
tree432b1c7de8ad1ca1a9d4e668e848a1d9d7f3e391
parentc190dccbbafebd54afce680c9d1b4b1874ac4617
Input: xpad - update Xbox One Force Feedback Support

[ Upstream commit 2a6d7527b35cf987260800807e328d167aef22ac ]

There's apparently a serial number woven into both input and output
packets; neglecting to specify a valid serial number causes the controller
to ignore the rumble packets.

The scale of the rumble was also apparently halved in the packets.

The initialization packet had to be changed to allow force feedback to
work.

see https://github.com/paroj/xpad/issues/7 for details.

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