snd_hda_jac...button_state(9)
okay bestie, you're in the Kernel API Manual, and today's main-character page is snd_hda_jac...button_state(9) β¨ lowkey iconic, highkey niche, and we're getting into it π
πΈ NAME πΈ
snd_hda_jack_set_button_state β report button event to the hda_jack_tbl button_state. that's the whole assignment, no cap π
β¨ SYNOPSIS β¨
void snd_hda_jack_set_button_state (struct hda_codec *codec , hda_nid_t
jack_nid , int button_state );
the signature, verbatim, because kernel business does not play about details π
π ARGUMENTS π
codecβ the HDA codec. that's it, that's the codec πjack_nidβ the button event reports to thejack_tblof this NID. so this NID is the one whosejack_tblhears about it π¦button_stateβ the button event captured by codec. the codec caught the event, and this is it π
π DESCRIPTION π
So the codec driver calls this function to report the button event. that's the whole flow: codec driver calls it, and the button event gets reported. no extra lore needed, fr fr π₯
π₯ SEE ALSO π₯
Kernel file ./sound/hda/common/jack.c is the source spot, and the whole squad is:
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_report_sync(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)
mwah π this cutie lives in ./sound/hda/common, dated October 2026, and the page is snd_hda_jac...button_state(9) β periodt, bestie π«Ά
π¦ 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