snd_soc_dapm_put_pin_switch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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) and snd_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