snd_hda_get_conn_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay bestie, this is the Kernel API Manual page for snd_hda_get_conn_index(9) β€” and it's literally β€œget the connection index of the given NID.” That's the whole main character energy of this function. πŸ’…

🌸 SYNOPSIS 🌸

No cap, the whole vibe is this signature right here:

       int snd_hda_get_conn_index (struct hda_codec *codec , hda_nid_t mux ,
       hda_nid_t nid , int recursive );

πŸŽ€ ARGUMENTS πŸŽ€

  • codec β€” the HDA codec. That's the codec in question, periodt.
  • mux β€” NID containing the list. It's giving β€œthe list lives here.”
  • nid β€” NID to select. This is the one we're checking for, bestie.
  • recursive β€” 1 when searching NID recursively, otherwise 0. Lowkey important, highkey still just a 1 or 0.

πŸ¦‹ DESCRIPTION πŸ¦‹

Alright, so snd_hda_get_conn_index parses the connection list of the widget mux and checks whether the widget nid is present. If it is, it returns the connection index β€” slay. Otherwise it returns -1. Not me being dramatic about a -1, but that's literally the whole lore. 😭

πŸ’… SEE ALSO πŸ’…

Kernel file: ./sound/hda/common/codec.c β€” and the whole friend group is here, fr fr:

xoxo, your fave kernel bestie πŸ’– β€” from the source/version ./sound/hda/common, dated October 2026; this page is snd_hda_get_conn_index(9). byeee ✨

πŸ“¦ where this page comes from