]> 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:08:35 +0000 (10:08 +0200)
commitdddd13f7f1678850b4ec1665213440f47d4e18da
treee788ac46a0365c1051c9589bd0d65f37457c5577
parenta532e7680878c8de293bfa8f2cbf9703df9b8395
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