]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: plantronics: Workaround for an unexcepted opposite volume key
authorWade Wang <wade.wang@hp.com>
Mon, 16 Sep 2024 08:56:00 +0000 (16:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:59 +0000 (15:11 +0200)
commitd246ee0185692d5b59afda588bdb7af671237716
tree677746dfe135ea1b4a57569740a80a866e5da116
parent8a6fef7d22a1d952aed68584d3fcc0d018d2bdc3
HID: plantronics: Workaround for an unexcepted opposite volume key

commit 87b696209007b7c4ef7bdfe39ea0253404a43770 upstream.

Some Plantronics headset as the below send an unexcept opposite
volume key's HID report for each volume key press after 200ms, like
unecepted Volume Up Key following Volume Down key pressed by user.
This patch adds a quirk to hid-plantronics for these devices, which
will ignore the second unexcepted opposite volume key if it happens
within 220ms from the last one that was handled.
    Plantronics EncorePro 500 Series  (047f:431e)
    Plantronics Blackwire_3325 Series (047f:430c)

The patch was tested on the mentioned model, 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 per test
result.

Cc: stable@vger.kernel.org
Signed-off-by: Wade Wang <wade.wang@hp.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-ids.h
drivers/hid/hid-plantronics.c