]> git.itanic.dy.fi Git - linux-stable/commit
platform/x86: asus-wmi: Filter Volume key presses if also reported via atkbd
authorHans de Goede <hdegoede@redhat.com>
Mon, 20 Nov 2023 15:42:35 +0000 (16:42 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 23 Nov 2023 12:24:19 +0000 (14:24 +0200)
commitfb103b90e944ecd664577c0fd37a069282dcd294
treedbaa84ad6d4a0f953aa4d37513341d05cf0fd2f2
parent6db829fa2f1295aaad51a3c00f6fc57a27c444bb
platform/x86: asus-wmi: Filter Volume key presses if also reported via atkbd

Use the i8042-filter to check if Volume key presses are also reported
via atkbd and if yes then filter out the WMI events to avoid reporting
each key-press twice.

Note depending on in which order the PS/2 data vs the WMI event are
handled the first volume key press may still be reported twice. This is
a compromise versus DMI quirks (unmaintainable) or other more complex
solutions.

Closes: https://bbs.archlinux.org/viewtopic.php?pid=2128536#p2128536
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20231120154235.610808-4-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-nb-wmi.c