]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJiri Kosina <jkosina@suse.com>
Tue, 8 Oct 2024 06:45:17 +0000 (08:45 +0200)
commit87b696209007b7c4ef7bdfe39ea0253404a43770
tree1ca78f9c13f2654950aeed7ba76dfe3e5a5368a9
parentd41bff05a61fb539f21e9bf0d39fac77f457434e
HID: plantronics: Workaround for an unexcepted opposite volume key

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>
drivers/hid/hid-ids.h
drivers/hid/hid-plantronics.c