HID: sony: support for ghlive ps3/wii u dongles
authorPascal Giard <pascal.giard@etsmtl.ca>
Thu, 26 Nov 2020 03:02:30 +0000 (22:02 -0500)
committerJiri Kosina <jkosina@suse.cz>
Fri, 27 Nov 2020 14:50:03 +0000 (15:50 +0100)
commitcc894ac553605c9193a7a94372ff2f8af5766f46
tree9ebf159c8164520ecd81ec8bab1e8d929a13d888
parent1a8212e8fd1f50249f30e995460b17c0850c3212
HID: sony: support for ghlive ps3/wii u dongles

This commit adds support for the Guitar Hero Live PS3 and Wii U dongles.

These dongles require a "magic" USB control message [1] to be sent
approximately every 10 seconds otherwise the dongle will not report
events where the strumbar is hit while a fret is being held.

Also, inspired by a patch sent on linux-input by Sanjay Govind [2], the
accelerometer is mapped to ABS_RY for tilt.

Interestingly, the Wii U and PS3 dongles share the same VID and PID.

[1] https://github.com/ghlre/GHLtarUtility/
[2] https://marc.info/?l=linux-input&m=157242835928542&w=2

Signed-off-by: Pascal Giard <pascal.giard@etsmtl.ca>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-ids.h
drivers/hid/hid-sony.c