From 3246c5803c7c39ee349b61ed06924046b33c061e Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Wed, 19 May 2021 15:34:51 -0400 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/54689 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/drivers/generic/gpio_keys/chip.h | 1 + 1 file changed, 1 insertion(+) 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, }; -- cgit v1.2.3