Skip to content

Commit 33edee4

Browse files
jwrdegoedeJiri Kosina
authored andcommitted
HID: asus: Fix special function keys on T200TA
Just like on the T100TA the T200TA HID descriptors for the 0xff32 Asus vendor usage page need a small fixup. But on the T200TA the HID descriptors are larger because they have descrriptors for one more (unused) HID report appended. Extend the T100TA descriptor fixup to also check for the T200TA's descriptors size. Signed-off-by: Hans de Goede <[email protected]> Acked-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent dbd3ef2 commit 33edee4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/hid/hid-asus.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,10 @@ static __u8 *asus_report_fixup(struct hid_device *hdev, __u8 *rdesc,
715715
hid_info(hdev, "Fixing up Asus notebook report descriptor\n");
716716
rdesc[55] = 0xdd;
717717
}
718-
/* For the T100TA keyboard dock */
718+
/* For the T100TA/T200TA keyboard dock */
719719
if (drvdata->quirks & QUIRK_T100_KEYBOARD &&
720-
*rsize == 76 && rdesc[73] == 0x81 && rdesc[74] == 0x01) {
720+
(*rsize == 76 || *rsize == 101) &&
721+
rdesc[73] == 0x81 && rdesc[74] == 0x01) {
721722
hid_info(hdev, "Fixing up Asus T100 keyb report descriptor\n");
722723
rdesc[74] &= ~HID_MAIN_ITEM_CONSTANT;
723724
}

0 commit comments

Comments
 (0)