platform/x86: hp-wmi: Add camera toggle switch to HP WMI
PATCH 1/2 platform/x86: hp-wmi: Add camera toggle switch to HP WMI
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.
Signed-off-by Jonathan Singer <[email protected]>
--- drivers/platform/x86/hp/hp-wmi.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +3 -0
@@ -90,6 +90,7 @@ enum hp_wmi_event_ids {HPWMI_PEAKSHIFT_PERIOD =0x0F ,HPWMI_BATTERY_CHARGE_PERIOD =0x10 ,HPWMI_SANITIZATION_MODE =0x17 , +HPWMI_CAMERA_TOGGLE =0x1A ,HPWMI_OMEN_KEY =0x1D , HPWMI_SMART_EXPERIENCE_APP = 0x21, };
@@ -866,6 +867,8 @@ static void hp_wmi_notify(u32 value, void *context)break ;case HPWMI_SANITIZATION_MODE :break ; +case HPWMI_CAMERA_TOGGLE : +break ;case HPWMI_SMART_EXPERIENCE_APP :break ;default :
Signature · 1 line
2.40.0