snd_hda_jac...button_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 the jack_tbl of this NID. so this NID is the one whose jack_tbl hears 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:


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