• R
    HID: sony: Make DS4 bt poll interval adjustable · 77b499e7
    Roderick Colenbrander 提交于
    By default when using bluetooth the DS4 reports data at about 1kHz,
    which is quite fast especially on weak devices. We now make the
    device use the USB poll interval, which is a fixed 4ms. In addition
    we make the value adjustable through sysfs.
    
    The error handling in sony_input_configured is a little tricky. It
    is not easy to add other goto's as not all codepaths have logic
    for adding this attribute. Luckily we are setting the value for the
    attribute to a default value, so we can use that to detect if we need
    to remove the file.
    Signed-off-by: NRoderick Colenbrander <roderick.colenbrander@sony.com>
    Signed-off-by: NJiri Kosina <jkosina@suse.cz>
    77b499e7
hid-sony.c 85.9 KB