Skip to content

Commit

Permalink
HID: asus: Filter keyboard EC for old ROG keyboard
Browse files Browse the repository at this point in the history
[ Upstream commit 4bfb2c7 ]

Older ROG keyboards emit a similar stream of bytes to the new
N-Key keyboards and require filtering to prevent a lot of
unmapped key warnings showing. As all the ROG keyboards use
QUIRK_USE_KBD_BACKLIGHT this is now used to branch to filtering
in asus_raw_event.

Signed-off-by: Luke D Jones <luke@ljones.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
flukejones authored and gregkh committed Jun 18, 2021
1 parent fdd51e3 commit 0739b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-asus.c
Expand Up @@ -335,7 +335,7 @@ static int asus_raw_event(struct hid_device *hdev,
if (drvdata->quirks & QUIRK_MEDION_E1239T)
return asus_e1239t_event(drvdata, data, size);

if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) {
if (drvdata->quirks & QUIRK_USE_KBD_BACKLIGHT) {
/*
* Skip these report ID, the device emits a continuous stream associated
* with the AURA mode it is in which looks like an 'echo'.
Expand Down

0 comments on commit 0739b45

Please sign in to comment.