]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
HID: plantronics: Workaround for double volume key presses
authorMaxim Mikityanskiy <maxtram95@gmail.com>
Sun, 7 Feb 2021 14:47:40 +0000 (16:47 +0200)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:32 +0000 (17:46 -0600)
commite692d8be501e2847374258021daa66d4ae362e06
tree138643e93b92bf10d051977a7cfd7b0b44579672
parentc804cb9441910f192760413aaf48c707dfddefc8
HID: plantronics: Workaround for double volume key presses

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit f567d6ef8606fb427636e824c867229ecb5aefab ]

Plantronics Blackwire 3220 Series (047f:c056) sends HID reports twice
for each volume key press. This patch adds a quirk to hid-plantronics
for this product ID, which will ignore the second volume key press if
it happens within 5 ms from the last one that was handled.

The patch was tested on the mentioned model only, it shouldn't affect
other models, however, this quirk might be needed for them too.
Auto-repeat (when a key is held pressed) is not affected, because the
rate is about 3 times per second, which is far less frequent than once
in 5 ms.

Fixes: 81bb773faed7 ("HID: plantronics: Update to map volume up/down controls")
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/hid/hid-ids.h
drivers/hid/hid-plantronics.c
include/linux/hid.h