snd_soc_dapm_put_volsw(9)
π snd_soc_dapm_put_volsw β like, the whole kernel API manual, but make it make sense
okay so bestie, this page is all about snd_soc_dapm_put_volsw(9) β a kernel API manual situation. Yes, the manual name is literally Kernel API Manual, we love that for us. And the function itself? It's the dapm mixer set callback. Short name, big job. Let's get into it π
β¨ SYNOPSIS β¨
int snd_soc_dapm_put_volsw (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_value *ucontrol );
that's the whole signature. two args, one int coming back at ya. she's compact, she's iconic π¦
π«Ά ARGUMENTS π«Ά
kcontrolβ the mixer control. she's the one holding the actual kcontrol struct, main character energy fr.ucontrolβ the control element information. all the info about the element lives here π
πΈ DESCRIPTION πΈ
so what does she do? she's a callback β and her whole thing is setting the value of a dapm mixer control. that's it, that's the vibe β¨
and when she's done slaying? returns 0 for success. no cap, zero means we ate π
π SEE ALSO π
listen. the see-also section is long and we respect her for it. if you need more dapm lore, every single one of these is in ./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_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_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)
ngl the _unlocked variants and their locked siblings are giving "we're the same but one of us does the locking for you" β always check which one you're calling bestie, iykyk π₯
and that's the page!! source location is ./sound/soc, this is the Kernel API Manual entry for snd_soc_dapm_put_volsw(9), dated October 2026 β mwah, go forth and set those mixer values πβ¨ππ¦πΈπ
π¦ 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