snd_hda_jack_poll_all(9)
π snd_hda_jack_poll_all β Kernel API Manual, but make it make sense π
okay so bestie, welcome to the snd_hda_jack_poll_all(9) page from the Kernel API Manual β¨ this is the little corner of the kernel where HDA audio jacks get their vibe check π
β¨ NAME β¨
snd_hda_jack_poll_all β poll all jacks π
like, all of them. every single jack that's pollable. no jack left behind π
πΈ SYNOPSIS πΈ
void snd_hda_jack_poll_all (struct hda_codec *codec );
returns void, so don't go looking for a return value, it's giving "I do the work and leave" energy π
π¦ ARGUMENTS π¦
codecβ the HDA codec πΏ that's the one and only thing you hand it. the codec. that's it. that's the argument.
π§ DESCRIPTION π§
okay so here's the tea β β this function polls all the detectable jacks that have the dirty flag set, updates their status, calls the callbacks, and then calls snd_hda_jack_report_sync if it finds any changes at all π₯
so like, the full glow-up pipeline:
- poll every detectable jack with a dirty flag π§Ό
- update the status β¨
- call the callbacks π
- if any changes are found β call
snd_hda_jack_report_syncπ
no cap, if nothing changed, no sync. it's lowkey efficient like that π
π SEE ALSO π
bestie, the friend group is huge, here's everyone π«Ά the kernel file is ./sound/hda/common/jack.c π
is_jack_detectable(9)snd_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_state_mst(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)
and that's the page, bestie π sign-off time: this one lives in ./sound/hda/common, dated October 2026, and it's literally titled snd_hda_jack_poll_all(9) β go poll those jacks, slay πβ¨
π¦ 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