]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: hid-plantronics: Add mic mute mapping and generalize quirks
authorTerry Junge <linuxhid@cosmicgizmosystems.com>
Sat, 18 Jan 2025 00:58:38 +0000 (16:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Apr 2025 08:06:35 +0000 (10:06 +0200)
commitf99afc594a2b0ad7e7493aa694337f52bf9ad2ed
tree52c5fdd4f82701441982bcbd4b0034d63e2d424e
parent8ecdc85b5cab6c545c4a935569347a76f56a4d74
HID: hid-plantronics: Add mic mute mapping and generalize quirks

commit 9821709af892be9fbf4ee9a50b2f3e0604295ce0 upstream.

Add mapping for headset mute key events.

Remove PLT_QUIRK_DOUBLE_VOLUME_KEYS quirk and made it generic.
The quirk logic did not keep track of the actual previous key
so any key event occurring in less than or equal to 5ms was ignored.

Remove PLT_QUIRK_FOLLOWED_OPPOSITE_VOLUME_KEYS quirk.
It had the same logic issue as the double key quirk and was actually
masking the as designed behavior of most of the headsets.
It's occurrence should be minimized with the ALSA control naming
quirk that is part of the patch set.

Signed-off-by: Terry Junge <linuxhid@cosmicgizmosystems.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-plantronics.c