[PATCH 0/6] Add support for common USB HID headset features

From: Maxim Mikityanskiy
Date: Sat Jul 03 2021 - 18:04:37 EST


This patch series extends hid-input to support features commonly present
in USB HID headsets:

1. Mic mute button and LED.

2. Answer/hangup button and ring/offhook LED(s).

These buttons and LEDs are exposed using standard event device
interfaces. It allows the VoIP applications in userspace to use the new
functionality in a generic device-independent fashion.

This series also contains patches for hid-plantronics and hid-jabra to
expose the new functionality and work around some hardware quirks, and a
fix to hid-input for an issue that prevents the new LED functionality to
work with certain headsets.

Although checkpatch compains about a few lines, they preserve the same
formatting that already exists in hid-input.c.

Maxim Mikityanskiy (6):
HID: hid-input: Add offhook and ring LEDs for headsets
HID: hid-input: Add phone hook and mic mute buttons for headsets
HID: plantronics: Expose headset LEDs
HID: plantronics: Expose headset telephony buttons
HID: hid-input: Update LEDs in all HID reports
HID: jabra: Change mute LED state to avoid missing key press events

drivers/hid/hid-input.c | 183 +++++++++++++++++++++++--
drivers/hid/hid-jabra.c | 35 +++++
drivers/hid/hid-plantronics.c | 6 +
drivers/input/input-leds.c | 2 +
include/uapi/linux/input-event-codes.h | 10 ++
5 files changed, 225 insertions(+), 11 deletions(-)

--
2.32.0