snd_hda_jack_report_sync(9)
π snd_hda_jack_report_sync(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a tiny lil function from the ALSA/HDA corner of the kernel and it's literally so simple you're gonna slay it in like thirty seconds. no cap.
β¨ NAME β¨
snd_hda_jack_report_sync β syncs up the states of all the jacks and reports them if anything changed π
like, it's the vibe check for your audio jacks. she goes around, makes sure everybody's state is current, and if something shifted she reports it. periodt.
πΈ SYNOPSIS πΈ
void snd_hda_jack_report_sync (struct hda_codec *codec );
that's it. that's the whole thing. one function, one arg, void return because she doesn't need to hand anything back to you β the reporting happens as a side effect, iykyk π
π¦ ARGUMENTS π¦
codecβ the HDA codec π
that's the one and only thing you pass in. just your struct hda_codec * and she takes it from there. give her the codec, she handles the jacks. iconic behaviour honestly.
π«Ά SEE ALSO π«Ά
so if you wanna go deeper down the rabbit hole (and you know you do), the source lives in the kernel file ./sound/hda/common/jack.c β and here's the whole friend group, every single one of them, no gatekeeping:
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_add_kctl_mst(9)snd_hda_jack_add_kctls(9)snd_hda_jack_unsol_event(9)snd_hda_jack_poll_all(9)
likeβ¦ that's the squad π go read them, they're all right there in ${PAGER} waiting for you π§
quick reminder bestie: this page gives you the signature and the vibes, but the actual behaviour lives in that jack.c file β so if you're doing anything real with it, go look at the source. trust. π
and that's the whole page, you ate that fr fr π₯
β§ο½₯οΎ: * this cutie was brought to you by ./sound/hda/common, dated October 2026 β go forth and sync those jacks, queen π * :ο½₯οΎβ§
π¦ 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