snd_hda_jac...ct_state_mst(9)
π 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 onnidβ the pin NID to sense π the actual pin you're asking aboutdev_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_PRESENTHDA_JACK_PRESENTHDA_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:
is_jack_detectable(9)β in./sound/hda/common/jack.csnd_hda_jack_tbl_get_mst(9)snd_hda_jack_tbl_get_from_tag(9)snd_hda_jack_tbl_new(9)snd_hda_jack_set_dirty_all(9)snd_hda_jack_pin_sense(9)snd_hda_jack_detect_enable_callback_mst(9)snd_hda_jack_detect_enable(9)snd_hda_jack_set_gating_jack(9)snd_hda_jack_bind_keymap(9)snd_hda_jack_set_button_state(9)snd_hda_jack_report_sync(9)snd_hda_jack_add_kctl_mst(9)snd_hda_jack_add_kctls(9)snd_hda_jack_unsol_event(9)snd_hda_jack_poll_all(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms