Re: [PATCH] platform/x86: asus-wmi: fix camera key led on Zenbook S14

From: José Guilherme de Castro Rodrigues

Date: Thu Apr 02 2026 - 14:12:31 EST


On Tue, Mar 31, 2026 at 08:01:47PM -0300, José Guilherme de Castro Rodrigues wrote:
>
> This change is not visible to userspace, as no sysfs attribute for
> ASUS_WMI_DEVID_CAMERA_LED_NEG exists.
>
> + if (is_camera_toggle(code) && asus->camera_neg_led_available) {
> + camera_neg_led_trigger_update(asus);
> + return;
> + }
> +
> if (!sparse_keymap_report_event(asus->inputdev, code,
> key_value, autorelease))
> pr_info("Unknown key code 0x%x\n", code);

This change is actually visible to userspace because I'm early returning
and that means the event for the camera key is not propagated to
userspace. Sashiko correctly identified that, as well as another detail
in formatting (using space instead of tab for indentation on the newly
added macros). The event is currently not used on my system, so I didn't
notice it before.

Removing the return fixes this. I can send a new version of the patch if
necessary.


Best Regards,
José Rodrigues