Skip to content

Commit 3d18bd4

Browse files
bentissJiri Kosina
authored andcommitted
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>
1 parent 9316e58 commit 3d18bd4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/hid/hid-appleir.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id)
297297

298298
appleir->hid = hid;
299299

300+
/* force input as some remotes bypass the input registration */
301+
hid->quirks |= HID_QUIRK_HIDINPUT_FORCE;
302+
300303
spin_lock_init(&appleir->lock);
301304
setup_timer(&appleir->key_up_timer,
302305
key_up_tick, (unsigned long) appleir);

0 commit comments

Comments
 (0)