snd_hda_get_dev_select(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– snd_hda_get_dev_select β€” like, the whole manual, bestie πŸ’–

okay so this is a page from the Kernel API Manual (yes, that Kernel API Manual, the one that lives in your kernel tree and judges you silently). Today's main character is snd_hda_get_dev_select, and honestly? she's a little look-up function with a big job. let's get into it πŸŽ€


✨ NAME ✨

snd_hda_get_dev_select β€” get the device entry select on the pin πŸ¦‹

like. literally what it says. it gets the device entry select. on the pin. no cap.


🌸 SYNOPSIS 🌸

int snd_hda_get_dev_select (struct hda_codec *codec , hda_nid_t nid );

that's the whole vibe. one int in return, two args going in. slay.


🫢 ARGUMENTS 🫢

  • codec β€” the HDA codec πŸ’… that's your codec pointer, your whole situation.
  • nid β€” the NID of the pin πŸŽ€ the one you want the device entry select of. like, which pin are we talking about, bestie. be specific.

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea, bestie: this gets the device entry select on the pin. that's it, that's the function. πŸ”₯

it returns the device entry id that's selected on the pin 🎯

and here's the important little detail you do not wanna miss: a return of 0 means the first device entry is selected, or MST is not supported. 😭 two very different situations, same 0, so like… read the room (and the rest of your code) before you assume, okay? ngl that's just how it is.


🌈 SEE ALSO 🌈

so this is the part where the manpage lists, like, everyone this function hangs out with. and I do mean everyone. family reunion energy. πŸ’€

also the kernel file ./sound/hda/common/codec.c β€” that's where the actual code lives, go say hi πŸ‘‹


and that's the whole page, bestie!! 🧚 no gatekeeping, every single function name preserved, every fact intact, nothing invented. πŸ’œ

source: ./sound/hda/common Β· dated October 2026 Β· and the manual itself is snd_hda_get_dev_select(9) β€” periodt. πŸ’…βœ¨
πŸ“¦ where this page comes from