|
|
Log in / Subscribe / Register

Add support for common USB HID headset features

From:  Maxim Mikityanskiy <maxtram95-AT-gmail.com>
To:  Jiri Kosina <jikos-AT-kernel.org>, Benjamin Tissoires <benjamin.tissoires-AT-redhat.com>, Dmitry Torokhov <dmitry.torokhov-AT-gmail.com>, Daniel Kurtz <djkurtz-AT-chromium.org>, Oliver Neukum <oneukum-AT-suse.de>
Subject:  [PATCH 0/6] Add support for common USB HID headset features
Date:  Sun, 04 Jul 2021 01:01:56 +0300
Message-ID:  <20210703220202.5637-1-maxtram95@gmail.com>
Cc:  linux-input-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, Maxim Mikityanskiy <maxtram95-AT-gmail.com>
Archive-link:  Article

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



Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds