HID: plantronics: Update to map micmute controls
Subsystems (2)
PATCH 1/1 HID: plantronics: Update to map micmute controls
telephony page of Plantronics headset is ignored currently, it caused micmute button no function, Now follow native HID key mapping for telephony page map, telephony micmute key is enabled by default
Signed-off-by Wade Wang <[email protected]>
--- drivers/hid/hid-plantronics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hid/hid-plantronics.c +2 -2
@@ -77,10 +77,10 @@ static int plantronics_input_mapping(struct hid_device *hdev, } }/* handle standard types - plt_type is 0xffa0uuuu or 0xffa2uuuu */ -/* 'basic telephony compliant' - allow default consumer page map */ +/* 'basic telephony compliant' - allow default consumer & telephony page map */ else if ((plt_type &HID_USAGE ) >=PLT_BASIC_TELEPHONY && (plt_type &HID_USAGE ) !=PLT_BASIC_EXCEPTION ) { -if (PLT_ALLOW_CONSUMER ) +if (PLT_ALLOW_CONSUMER || (usage->hid &HID_USAGE_PAGE ) ==HID_UP_TELEPHONY ) goto defaulted; }/* not 'basic telephony' - apply legacy mapping */
Signature · 1 line
2.34.1
kernel test robot
build botFYI: kernel test robot notices the stable kernel rule is not satisfied.
Hi,
Thanks for your patch.
FYI: kernel test robot notices the stable kernel rule is not satisfied.
The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1
Rule: add the tag "Cc: [email protected]" in the sign-off area to have the patch automatically included in the stable tree.
Subject: [PATCH] HID: plantronics: Update to map micmute controls
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki