diff options
author | Terry Junge <terry.junge@plantronics.com> | 2015-06-08 17:27:57 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-06-12 09:04:17 -0400 |
commit | 81bb773faed7f5f0e82f14cdfcfe4e89fbea0e19 (patch) | |
tree | 0dbc8bd289f8b2db60b97ee235fce711f926163a /drivers/hid/Kconfig | |
parent | 6efdb114b430000b6b96d5beb78cd1345d4513dd (diff) |
HID: plantronics: Update to map volume up/down controls
Update Kconfig with enhanced help text for hid-plantronics driver.
Update hid-plantronics.c to identify device type and correctly map
either the vendor unique or consumer control volume up/down usages
to KEY_VOLUMEUP and KEY_VOLUMEDOWN events. Unmapped usages are ignored
to prevent core mapping of unknown usages to random mouse events.
Tested on ChromeBox/ChromeBook with various Plantronics devices.
Signed-off-by: Terry Junge <terry.junge@plantronics.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Kconfig')
-rw-r--r-- | drivers/hid/Kconfig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 15338afdf7f9..cc4c6649d195 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig | |||
@@ -634,7 +634,12 @@ config HID_PLANTRONICS | |||
634 | tristate "Plantronics USB HID Driver" | 634 | tristate "Plantronics USB HID Driver" |
635 | depends on HID | 635 | depends on HID |
636 | ---help--- | 636 | ---help--- |
637 | Provides HID support for Plantronics telephony devices. | 637 | Provides HID support for Plantronics USB audio devices. |
638 | Correctly maps vendor unique volume up/down HID usages to | ||
639 | KEY_VOLUMEUP and KEY_VOLUMEDOWN events and prevents core mapping | ||
640 | of other vendor unique HID usages to random mouse events. | ||
641 | |||
642 | Say M here if you may ever plug in a Plantronics USB audio device. | ||
638 | 643 | ||
639 | config HID_PRIMAX | 644 | config HID_PRIMAX |
640 | tristate "Primax non-fully HID-compliant devices" | 645 | tristate "Primax non-fully HID-compliant devices" |