snd_hda_jac...ct_state_mst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– snd_hda_jac...ct_state_mst(9) β€” like, the Kernel API Manual page, bestie πŸ’–

okay so real talk: this is a page from the Kernel API Manual, and the star of the show is snd_hda_jack_detect_state_mst. yes the title got truncated with ... in the header, no that's not a typo, that's just how the man page renders it. iconic behaviour honestly πŸŽ€


✨ NAME ✨

snd_hda_jack_detect_state_mst β€” query pin Presence Detect status 🫢

like... it asks the pin "hey girl are you there" and reports back. that's the whole vibe.


🌸 SYNOPSIS 🌸

int snd_hda_jack_detect_state_mst (struct hda_codec *codec , hda_nid_t
nid , int dev_id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • codec β€” the CODEC to sense πŸ‘€ like, the thing you're checking on
  • nid β€” the pin NID to sense πŸ“ the actual pin you're asking about
  • dev_id β€” pin device entry id πŸ”– the device entry's little ID number

πŸ’… DESCRIPTION πŸ’…

So what it does: it queries the pin's Presence Detect status and returns it. that's it, that's the function. πŸ’–

and the answer comes back as exactly one of these three, no cap:

  • HDA_JACK_NOT_PRESENT
  • HDA_JACK_PRESENT
  • HDA_JACK_PHANTOM

three states, three vibes. HDA_JACK_PHANTOM is giving main character energy ngl πŸ‘»βœ¨


🌈 SEE ALSO 🌈

the whole friend group 🫢 β€” plus the kernel file ./sound/hda/common/jack.c where is_jack_detectable(9) lives:


ok that's the whole page bestie, go detect some jacks, slay πŸ’…βœ¨

sooo this came out of ./sound/hda/common and it's dated October 2026 β€” and the header/footer both say snd_hda_jac...ct_state_mst(9) because the name is long and we respect it πŸ’œ mwah, bye! πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from