Re: [PATCH] ALSA: hda/proc: show GPI and GPO state in codec proc output
From: Takashi Iwai
Date: Sat Mar 28 2026 - 09:42:58 EST
On Sat, 28 Mar 2026 05:53:35 +0100,
Cássio Gabriel wrote:
>
> print_gpio() prints the GPIO capability header and the bidirectional
> GPIO state, but it never reports the separate GPI and GPO pins even
> though AC_PAR_GPIO_CAP exposes their counts.
>
> The HD-audio specification defines dedicated GPI and GPO verbs
> alongside the GPIO ones, so codecs with input-only or output-only
> general-purpose pins currently lose that state from
> /proc/asound/card*/codec#* altogether.
>
> Add the missing read verb definitions and extend print_gpio() to dump
> the GPI and GPO pins, too, while leaving the existing IO[] output
> unchanged.
>
> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>
Applied to for-next branch now.
I noticed that the verbs for setting GPI and GPO are missing.
Will submit a patch to complete those.
thanks,
Takashi