Input: xpad - fix support for some third-party controllers
authorVicki Pfau <vi@endrift.com>
Fri, 24 Mar 2023 17:42:27 +0000 (10:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 2 Apr 2023 03:28:07 +0000 (20:28 -0700)
commitdb7220c48d8d71476f881a7ae1285e1df4105409
treeb373ec6c77cac3cc71c7bad3f5981a3f81654378
parent8fb1bcd0baffd42fc44e6fb6f0633914cd48ec8d
Input: xpad - fix support for some third-party controllers

Some third-party controllers, such as the HORPIAD FPS for Nintendo Switch and
Gamesir-G3w, require a specific packet that the first-party XInput driver sends
before it will start sending reports. It's not currently known what this packet
does, but since the first-party driver always sends it's unlikely that this
could cause issues with existing controllers.

Co-authored-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Vicki Pfau <vi@endrift.com>
Link: https://lore.kernel.org/r/20230324040446.3487725-3-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c