snd_hda_query_pin_caps(9)
β¨ snd_hda_query_pin_caps β¨
okay so bestie, welcome to the snd_hda_query_pin_caps(9) page β she lives in the Kernel API Manual and honestly she's a whole vibe. tiny function, big main character energy π
πΈ NAME πΈ
snd_hda_query_pin_caps β literally just: Query PIN capabilities π
π¦ SYNOPSIS π¦
u32 snd_hda_query_pin_caps (struct hda_codec *codec , hda_nid_t nid );
π ARGUMENTS π
codecβ the HD-auio codec π (no fr that's what the page says, i'm not gonna gaslight you β it's the codec, it's HD, we move)nidβ the NID you wanna query π
π DESCRIPTION π
So what she does: she queries the PIN capabilities for the given widget, and hands you back the capability bits she got. that's it. that's the whole job. icon behavior only π
And here's the part that's lowkey the best feature: when the cap bits have already been read, she does not read again β she just returns the cached value. no double-reading, no drama, no cap. it's giving efficiency π β¨
π SEE ALSO π
- Kernel file
./sound/hda/common/hda_local.hπ snd_hda_set_pin_ctl(9)snd_hda_set_pin_ctl_cache(9)snd_hda_override_pin_caps(9)
all three of those are her besties, go say hi π«Ά
k bye bestie, this page is from ./sound/hda/common, dated October 2026, and it's filed under snd_hda_query_pin_caps(9) β mwah, slay, see you in the kernel πππ§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms