linux-stable/drivers/input/joystick
Leo L. Schwab 46556c4ecd Input: spaceball - fix parsing of movement data packets
commit bc7ec91718 upstream.

The spaceball.c module was not properly parsing the movement reports
coming from the device.  The code read axis data as signed 16-bit
little-endian values starting at offset 2.

In fact, axis data in Spaceball movement reports are signed 16-bit
big-endian values starting at offset 3.  This was determined first by
visually inspecting the data packets, and later verified by consulting:
http://spacemice.org/pdf/SpaceBall_2003-3003_Protocol.pdf

If this ever worked properly, it was in the time before Git...

Signed-off-by: Leo L. Schwab <ewhac@ewhac.org>
Link: https://lore.kernel.org/r/20211221101630.1146385-1-ewhac@ewhac.org
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-05 12:37:46 +01:00
..
iforce Input: iforce - fix control-message timeout 2021-11-17 09:48:16 +01:00
a3d.c
adi.c
amijoy.c
analog.c
as5011.c
cobra.c
db9.c
fsia6b.c
gamecon.c
gf2k.c
grip.c
grip_mp.c
guillemot.c
interact.c
joydump.c
Kconfig
magellan.c
Makefile
maplecontrol.c
psxpad-spi.c
pxrc.c
sidewinder.c
spaceball.c Input: spaceball - fix parsing of movement data packets 2022-01-05 12:37:46 +01:00
spaceorb.c
stinger.c
tmdc.c
turbografx.c
twidjoy.c
walkera0701.c
warrior.c
xpad.c Input: xpad - add support for another USB ID of Nacon GC-100 2021-10-20 11:40:14 +02:00
zhenhua.c