snd_hda_jack_poll_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

  1. poll every detectable jack with a dirty flag 🧼
  2. update the status ✨
  3. call the callbacks πŸ“ž
  4. 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 πŸ“


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