snd_hda_jack_detect_state(9)
πΈ 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_PRESENTHDA_JACK_PRESENTHDA_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 π«Ά
snd_hda_jack_tbl_get(9)snd_hda_jack_detect_enable_callback(9)snd_hda_jack_detect_mst(9)snd_hda_jack_detect(9)snd_hda_jack_add_kctl(9)
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
- 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