diff options
author | 2023-04-26 14:48:52 -0400 | |
---|---|---|
committer | 2023-05-09 11:54:42 +0200 | |
commit | 604915f1c7b22a9c6ecbd6e16b092cdd5981f21e (patch) | |
tree | d50b17edcc9e37701dd4090d88e1171609186cee /drivers/platform/x86/wmi.c | |
parent | platform/x86/intel-uncore-freq: tpmi: Provide cluster level control (diff) | |
download | wireguard-linux-604915f1c7b22a9c6ecbd6e16b092cdd5981f21e.tar.xz wireguard-linux-604915f1c7b22a9c6ecbd6e16b092cdd5981f21e.zip |
platform/x86: hp-wmi: Add HP WMI camera switch
Previously, when the camera toggle switch was hit, the hp-wmi driver
would report an invalid event code. By adding a case for that in the
event handling switch statement we can eliminate that error code and
enable a framework for potential further kernel handling of that key.
This change was tested on my HP Envy x360 15-ey0023dx laptop, but it
would likely work for any HP laptop with a camera toggle button. Now
we emit an SW_CAMERA_LENS_COVER event, on a device that gets created
on the first such event so as to not report incorrectly the state of
the camera shutter before we can know its state.
Signed-off-by: Jonathan Singer <jes965@nyu.edu>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230426184852.2100-1-jes965@nyu.edu
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/wmi.c')
0 files changed, 0 insertions, 0 deletions