Re: [PATCH 2/3] ASoC: wm8962: add GPIO interrupt controller support
From: Charles Keepax
Date: Mon Nov 30 2026 - 06:28:23 EST
On Fri, Nov 27, 2026 at 07:00:38PM +0200, Laurentiu Mihalcea wrote:
> From: Laurentiu Mihalcea <laurentiu.mihalcea@xxxxxxx>
>
> The WM8962 codec provides two GPIO pins: GPIO5/GPIO6 which can act as
> interrupt sources. Therefore, in the context of Linux, GPIO consumer
> devices (e.g. in this case, the sound card), could make use of these two
> pins to handle certain events (e.g. HP detection).
>
> Add support for this by modelling the WM8962 codec as a GPIO interrupt
> controller.
>
> Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@xxxxxxx>
> ---
Should this not have some sort of mechanism to enable/disable
this functionality? This is a fairly old part presumably there
are many systems that already exist, seems bold to assume all of
them have connected those GPIOs in this way.
Thanks,
Charles