snd_hda_jack_detect_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the snd_hda_jack_detect_state(9) page from the Kernel API Manual πŸ’– β€” this one is literally about querying a pin’s Presence Detect status.

✨ SYNOPSIS ✨

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

πŸŽ€ ARGUMENTS πŸŽ€

  • codec β€” the CODEC to sense πŸ‘€
  • nid β€” the pin NID to sense πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So the way this works is: you query the pin’s Presence Detect status, and it returns that status as one of these three iconic little values πŸ’…

  • HDA_JACK_NOT_PRESENT
  • HDA_JACK_PRESENT
  • HDA_JACK_PHANTOM

That’s the whole vibe check: ask the pin what’s up, get back one of those states. no cap ✨

🌈 SEE ALSO 🌈

Kernel file ./sound/hda/common/hda_jack.h β€” and yes, go look at these too, bestie 🫢


and that’s the page, babe πŸ’– the cute little source/version corner says ./sound/hda/common, dated October 2026, for snd_hda_jack_detect_state(9) β€” periodt. πŸ‘‘

πŸ“¦ where this page comes from