snd_soc_dapm_put_pin_switch(9)
π snd_soc_dapm_put_pin_switch(9) β like, the Kernel API Manual's own main character
okay so bestie, welcome to the Kernel API Manual, section 9. Today's episode: snd_soc_dapm_put_pin_switch. It's short, it's sweet, it's giving "one job and she does it." Let's go π
β¨ NAME β¨
snd_soc_dapm_put_pin_switch β the one that sets information for a pin switch. that's it. that's the whole vibe π¦
πΈ SYNOPSIS πΈ
int snd_soc_dapm_put_pin_switch (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_value *ucontrol );
like look at her. two args, returns an int, no drama, no cap π₯
π ARGUMENTS π
kcontrolβ the mixer control, bestie. your lil handle on the thing.ucontrolβ the Value. capital V, she's important π
π DESCRIPTION π
so here's the tea: this is a callback β¨ it's the function that provides information for a pin switch that was added at the card level. that's literally it, and honestly? iconic. she shows up, she reports the info, she leaves. no notes π
ngl this is the kind of function that just exists so the card-level pin switch can do its thing β you're not here to overthink her, you're here to appreciate her π
π¦ SEE ALSO π¦
ooh bestie, this is the fun part, the whole friend group is here π
the kernel file lives at ./sound/soc/soc-dapm.c β that's home base π
and then, in the order the page says it, no skipping (i would never):
snd_soc_dapm_kcontrol_to_widget(9), snd_soc_dapm_kcontrol_to_dapm(9), snd_soc_dapm_kcontrol_to_component(9), snd_soc_dapm_force_bias_level(9), snd_soc_dapm_init_bias_level(9), snd_soc_dapm_set_bias_level(9), snd_soc_dapm_get_bias_level(9), snd_soc_dapm_dai_get_connected_widgets(9), snd_soc_dapm_free_widget(9), snd_soc_dapm_sync_unlocked(9), snd_soc_dapm_sync(9), snd_soc_dapm_add_routes(9), snd_soc_dapm_del_routes(9), snd_soc_dapm_new_widgets(9), snd_soc_dapm_get_volsw(9), snd_soc_dapm_put_volsw(9), snd_soc_dapm_get_enum_double(9), snd_soc_dapm_put_enum_double(9), snd_soc_dapm_info_pin_switch(9), snd_soc_dapm_get_pin_switch(9), snd_soc_dapm_get_component_pin_switch(9), snd_soc_dapm_put_component_pin_switch(9), snd_soc_dapm_new_control(9), snd_soc_dapm_new_controls(9), snd_soc_dapm_new_dai_widgets(9), snd_soc_dapm_stream_event(9), snd_soc_dapm_enable_pin_unlocked(9), snd_soc_dapm_enable_pin(9), snd_soc_dapm_force_enable_pin_unlocked(9), snd_soc_dapm_force_enable_pin(9), snd_soc_dapm_disable_pin_unlocked(9), snd_soc_dapm_disable_pin(9), snd_soc_dapm_get_pin_status(9), snd_soc_dapm_ignore_suspend(9), snd_soc_dapm_pin_has_prefix(9), snd_soc_dapm_free(9)
like a whole group chat. squad goals fr fr π«Ά
psst βsnd_soc_dapm_info_pin_switch(9),snd_soc_dapm_get_pin_switch(9)andsnd_soc_dapm_put_pin_switch(9)are the sibling trio, so if you found one you found the set ππ
and that's the page!! mwah π this one's sourced from ./sound/soc, dated October 2026, and filed under snd_soc_dapm_put_pin_switch(9) β go forth and set that pin switch info, 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