snd_hda_codec_get_pincfg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

snd_hda_codec_get_pincfg β€” bestie, this is literally how you obtain a pin-default configuration ✨ (it's in the Kernel API Manual, and yes this page is everything)


πŸŽ€ SYNOPSIS

unsigned int snd_hda_codec_get_pincfg (struct hda_codec *codec ,
hda_nid_t nid );

🌸 ARGUMENTS

  • codec β€” the HDA codec πŸ’– like, the actual codec you're working with
  • nid β€” the NID you want the pin config of 🎯 that's the one, that's the node id

πŸ¦‹ DESCRIPTION

okay so here's the vibe: this function gets the current pin config value of the pin NID you pass in. Slay. 🫢

And here's the little detail that matters β€” if the pincfg value is already cached, or it's been overridden via sysfs or the driver, then you get the cached value back. No cap, it's not re-reading anything fresh, it's giving cache energy. 😌


πŸ‘‘ SEE ALSO

fr fr go read these next, they're iconic:


that's the whole page, bestie, you ate πŸ’…

and yes, it lives in ./sound/hda/common, dated October 2026 β€” so like, from the future basically πŸ¦‹βœ¨ mwah, go forth and read your pin configs πŸ’–
πŸ“¦ where this page comes from