snd_hda_jack_detect_mst(9)
Okay bestie, welcome to the Kernel API Manual entry for snd_hda_jack_detect_mst(9) β yes, that whole (9) is the section vibe, and we're about to make jack detection make sense, fr fr. π§β¨
πΈ NAME πΈ
snd_hda_jack_detect_mst β detect the jack π
Like, the function's whole NAME-section job is literally βDetect the jack.β Short, iconic, no notes. π
β¨ SYNOPSIS β¨
Here's the signature, copied exactly because we do not mess with code, periodt:
bool snd_hda_jack_detect_mst (struct hda_codec *codec , hda_nid_t nid ,
int dev_id );
π ARGUMENTS π
codecβ the HDA codec. That's the codec in question, the main character of this audio situation π§nidβ pin NID to check jack detection. So this is the pin NID you're checking for jack detection, iykyk πdev_idβ pin device entry id. That's the pin device entry id, and yes, keep the lowercaseidexactly as written πͺͺ
π SEE ALSO π
Kernel file to peek at: ./sound/hda/common/hda_jack.h β and these related (9) pages are all linked in the original, so here they are, every single one π
snd_hda_jack_tbl_get(9)snd_hda_jack_detect_enable_callback(9)snd_hda_jack_detect_state(9)snd_hda_jack_detect(9)snd_hda_jack_add_kctl(9)
Signed off from ./sound/hda/common β October 2026, for the snd_hda_jack_detect_mst(9) page in the Kernel API Manual π«Άπ
π¦ 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