• Roderick Colenbrander's avatar
    HID: playstation: add DualShock4 dongle support. · c64ed0cd
    Roderick Colenbrander authored
    This patch adds support for the DualShock4 dongle in a very similar
    way we contributed to hid-sony before.
    
    The dongle is a USB to Bluetooth bridge and uses the same HID reports
    as a USB device. It reports data through the DS4's main USB input
    report independent on whether a Bluetooth controller is connected.
    For this reason there is custom dongle report parsing code to
    detect controller hotplug and kick of calibration work until we
    are ready to process actual input reports.
    
    The logic also incorporates a workaround needed for Steam in which
    hid-playstation and Steam using hidraw can fight.
    Signed-off-by: default avatarRoderick Colenbrander <roderick.colenbrander@sony.com>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    c64ed0cd
hid-playstation.c 82.1 KB