]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda/proc: show GPI and GPO state in codec proc output
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Sat, 28 Mar 2026 04:53:35 +0000 (01:53 -0300)
committerTakashi Iwai <tiwai@suse.de>
Sat, 28 Mar 2026 13:18:37 +0000 (14:18 +0100)
commit3bd246d1cf609a80cae19e4aefb599256a72b1a6
tree37b2c7e7197b25e82578551128d7622ded87ce02
parent0da18c2dd1cc2a026416222ed206e2f269edf055
ALSA: hda/proc: show GPI and GPO state in codec proc output

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@gmail.com>
Link: https://patch.msgid.link/20260328-hda-proc-gpi-gpo-v1-1-fabb36564bee@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_verbs.h
sound/hda/common/proc.c