• M
    HID: asus: ignore declared dummy usages · 0485b1ec
    Matjaz Hegedic 提交于
    Keyboards handled by hid-asus declare special key functions
    using a vendor-specific page, however, alongside legitimate
    key functions, dummy usages with seemingly arbitrary values
    are also declared and can lead to keyboards being detected
    as pointer devices by some software (such as X.org).
    
    In addition, for the I2C keyboard volume controls are
    separately declared in a Consumer Usage page, with the same
    dummy usage problem.
    
    The fix in 1989dada ("HID: input: ignore System Control
    application usages if not System Controls") does not mitigate
    the problem described above, therefore dummy usages need to
    be ignored in the driver itself.
    
    This fix properly ignores dummy usages and introduces a quirk
    for custom handling of the Consumer Usages on the I2C keyboard.
    Signed-off-by: NMatjaz Hegedic <matjaz.hegedic@gmail.com>
    Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
    Signed-off-by: NJiri Kosina <jkosina@suse.cz>
    0485b1ec
hid-asus.c 10.5 KB