snd_hda_jack_bind_keymap(9)
π snd_hda_jack_bind_keymap(9) π
okay so bestie, we're in the Kernel API Manual today and the star of the show is snd_hda_jack_bind_keymap β literally the function that binds keys generated from one NID to another jack. no cap, that's the whole vibe.
β¨ SYNOPSIS β¨
int snd_hda_jack_bind_keymap (struct hda_codec *codec , hda_nid_t
key_nid , const struct hda_jack_keymap *keymap , hda_nid_t jack_nid );
like, she takes four things and returns an int. iconic behavior fr fr π«Ά
π ARGUMENTS π
codecβ the HDA codec π that's your main character herekey_nidβ the pin NID that generates the key event, aka where the drama startskeymapβ the map of key type and key code, so everybody knows which key is which π¦jack_nidβ the pin NID whose jack the key actually reports to β like, the key is born atkey_nidbut it tells its secrets to this jack's NID π
πΈ DESCRIPTION πΈ
lowkey this one's simple, bestie. This function is used in the case where a key is generated from one NID while it is reported to the jack of a another NID. that's it, that's the whole plot β¨ two NIDs, one key, one jack β the way that this function connects them?? obsessed π
π₯ SEE ALSO π₯
Kernel file ./sound/hda/common/jack.c is where the lore lives π β and here's the whole friend group, 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_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)snd_hda_jack_poll_all(9)
π reminder bestie: this page lives in./sound/hda/common, dated October 2026, and the manual entry itself issnd_hda_jack_bind_keymap(9)β go read the rest of them, iykyk π
okay that's the page, mwah πβ¨ go bind some keymaps bestie, you got this π§π
π¦ 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