diff options
author | AceLan Kao <acelan.kao@canonical.com> | 2016-08-03 22:26:20 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-08-05 07:31:20 -0400 |
commit | 08fc94733211f94755dd15028fb0a0129310fb5d (patch) | |
tree | be618c17a98b5d1ece47d494ace12989d8bfe819 | |
parent | 7d3ea5c1e958e4cbabf170b8dee42b5aeac7d530 (diff) |
HID: input: add mic mute key on HP slim keyboard
Add MIC mute key which is found on HP Business Slim Keyboard
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 23 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=03f0 ProdID=2f4a Rev=00.10
S: Manufacturer=Chicony
S: Product=HP Business Slim Keyboard
C: #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index bcfaf32d9e5e..d51c43b0be34 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
@@ -953,6 +953,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel | |||
953 | case HID_UP_HPVENDOR2: | 953 | case HID_UP_HPVENDOR2: |
954 | set_bit(EV_REP, input->evbit); | 954 | set_bit(EV_REP, input->evbit); |
955 | switch (usage->hid & HID_USAGE) { | 955 | switch (usage->hid & HID_USAGE) { |
956 | case 0x001: map_key_clear(KEY_MICMUTE); break; | ||
956 | case 0x003: map_key_clear(KEY_BRIGHTNESSDOWN); break; | 957 | case 0x003: map_key_clear(KEY_BRIGHTNESSDOWN); break; |
957 | case 0x004: map_key_clear(KEY_BRIGHTNESSUP); break; | 958 | case 0x004: map_key_clear(KEY_BRIGHTNESSUP); break; |
958 | default: goto ignore; | 959 | default: goto ignore; |