]> Pileus Git - ~andy/linux/commit
HID: appleir: force input to be set
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 7 Nov 2013 15:46:48 +0000 (10:46 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 21 Nov 2013 08:58:19 +0000 (09:58 +0100)
commit3d18bd41a82fac69c82e1725c7beea25b17a0190
treee54ecdc4018eabe9dd3364d836160f3c6849e992
parent9316e58076f47bd242c3700d6f4aa1563fdb7192
HID: appleir: force input to be set

Some weird remotes are not correctly creating the input device. Their
report descriptor starts with:
0x06, 0x00, 0xff,              // Usage Page (Vendor Defined Page 1)  0
0xa1, 0x01,                    // Collection (Application)            3

whereas others (which are correctly handled) start with:
0x05, 0x0c,                    // Usage Page (Consumer Devices)       0
0x09, 0x01,                    // Usage (Consumer Control)            2
0xa1, 0x01,                    // Collection (Application)            4

The rest of the report descriptor is the same.

Adding the quirk HID_QUIRK_HIDINPUT_FORCE forces hid-input to allocate
the inputs, and everything should be ok.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Tested-by: James Henstridge <james.henstridge@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-appleir.c