diff options
author | Ben Zhang <benzh@google.com> | 2021-05-19 15:34:51 -0400 |
---|---|---|
committer | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-05-20 20:40:47 +0000 |
commit | 3246c5803c7c39ee349b61ed06924046b33c061e (patch) | |
tree | 253a0b97bdb3089fc1e8b23fd0ab13c35a4b8540 /src/drivers/generic | |
parent | e91422dd68f18e3d8f90bbb81993d11ee223fe9b (diff) |
drivers/gpio_keys: Add SW_MUTE_DEVICE
Added SW_MUTE_DEVICE event type for mic mute switch.
BUG=b:184593945
BRANCH=puff
TEST=build image and verify with evtest on puff:
/dev/input/event3: mic_mute_switch
UI event_device_info receives the proper name.
Change-Id: I09c52dc3df63e266c73741b102a22f8a2b896791
Signed-off-by: Ben Zhang <benzh@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54689
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers/generic')
-rw-r--r-- | src/drivers/generic/gpio_keys/chip.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/generic/gpio_keys/chip.h b/src/drivers/generic/gpio_keys/chip.h index 1599b8df1e..88dfe2ea71 100644 --- a/src/drivers/generic/gpio_keys/chip.h +++ b/src/drivers/generic/gpio_keys/chip.h @@ -14,6 +14,7 @@ enum { /* Switch events type (Linux code emitted for EV_SW) */ enum { + SW_MUTE_DEVICE = 0xe, SW_PEN_INSERTED = 0xf, }; |