snd_soc_dap...t_pin_switch(9)
π snd_soc_dapm_get_component_pin_switch β bestie's guide to the Kernel API Manual π
okay so first things first, the page you just opened is snd_soc_dap...t_pin_switch(9) from the Kernel API Manual β yes the title got truncated mid-word by the man page formatter, it's giving "my name is too long for this column" energy, iconic honestly π
β¨ NAME β¨
snd_soc_dapm_get_component_pin_switch β literally Get information for a pin switch ποΈβ¨
πΈ SYNOPSIS πΈ
int snd_soc_dapm_get_component_pin_switch (struct snd_kcontrol *kcontrol
, struct snd_ctl_elem_value *ucontrol );
so the function signature is right there, copy it exactly, no touchy π«Ά it returns an int.
π¦ ARGUMENTS π¦
kcontrolβ the mixer control π yeah that one.ucontrolβ the Value. capital V, main character energy π
π« DESCRIPTION π«
okay so this one is a callback π₯ its whole job is to provide information for a pin switch that was added at the component level. that's it, that's the vibe. no cap, that's the entire description β sometimes a function is just a little guy doing one thing and honestly? we love that for it π
π SEE ALSO π
okay bestie buckle up, this list is LONG and we are not skipping a single one of these, they all get their moment β¨ also lowkey the kernel file lives at ./sound/soc/soc-dapm.c:
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_put_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, thirty-something cross references?? obsessed. that's a whole friend group right there π«Άπ
π‘ also the file it lives under is ./sound/soc β found her π
and that's the whole page bestie, mwah π this gem was served up in the Kernel API Manual, dated October 2026, and it ships from the source path ./sound/soc β and yeah the footer also says snd_soc_dap...t_pin_switch(9) again because the formatter is nothing if not consistent π periodt. πβ¨
π¦ 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