snd_hda_get_pin_label(9)
π snd_hda_get_pin_label(9) π
okay so bestie, this is the Kernel API Manual, section 9 β the page for snd_hda_get_pin_label, and it's literally about getting a label for a pin. no cap, we're in HDA codec pin-label territory now π
β¨ NAME β¨
snd_hda_get_pin_label β get a label for the given I/O pin π
π¦ SYNOPSIS π¦
int snd_hda_get_pin_label (struct hda_codec *codec , hda_nid_t nid ,
const struct auto_pin_cfg *cfg , char *label , int maxlen );
πΈ ARGUMENTS πΈ
codecβ the HDA codec, aka the codec we're working with πnidβ pin NID, because yes we need the pin's NIDcfgβ the parsed pin configurationlabelβ the string buffer to store π«maxlenβ the max length of string buffer (including termination)
π§ DESCRIPTION π§
so this function gets a label for the given pin. it works for both input and output pins β both, periodt. π
when cfg is given as non-NULL, the function tries to get an optimized label using hda_get_autocfg_input_label. that's the optimized-label moment β¨
this function tries to give a unique label string for the pin as much as possible. like, it's trying okay? for example, when the multiple line-outs are present, it adds the channel suffix like "Front", "Surround", etc β and that channel-suffix thing happens only when cfg is given. iykyk π
π₯ SEE ALSO π₯
- kernel file
./sound/hda/common/auto_parser.c snd_hda_get_input_pin_attr(9)hda_get_input_pin_label(9)hda_get_autocfg_input_label(9)snd_hda_add_verbs(9)snd_hda_apply_verbs(9)snd_hda_apply_pincfgs(9)snd_hda_apply_fixup(9)snd_hda_pick_pin_fixup(9)snd_hda_pick_fixup(9)
mwah π β source/version: ./sound/hda/common; date: October 2026; page: snd_hda_get_pin_label(9). byeeee, go label those pins π«Ά
π¦ 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