snd_soc_dapm..._enum_double(9)
π NAME π
okay so, bestie, the manual page goes by snd_soc_dapm..._enum_double(9) up top (yes it's abbreviated, no we're not gonna fight about it π
) β but the actual star of the show is snd_soc_dapm_put_enum_double, and it's the dapm enumerated double mixer set callback. that's the whole vibe. iykyk.
β¨ SYNOPSIS β¨
like, here's the exact signature, don't @ me:
int snd_soc_dapm_put_enum_double (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_value *ucontrol );
it's giving "small function, big responsibilities" fr fr π«Ά
πΈ ARGUMENTS πΈ
kcontrolβ the mixer control. that's yourstruct snd_kcontrol *, the main character of this call ποΈucontrolβ the control element information. this is thestruct snd_ctl_elem_value *carrying the deets π
π DESCRIPTION π
so what does it do? it's the callback that sets the value of a dapm enumerated double mixer control. that's it, that's the job. lowkey iconic for how chill it is.
and what does it hand back? returns 0 for success. slay. β¨
no cap: success is 0 here. that's the documented return, periodt. don't go making up other return values, that's not in the source and we don't invent lore in this house π
π¦ SEE ALSO π¦
the kernel file is ./sound/soc/soc-dapm.c β that's where all the magic lives, bestie π§ and here's the whole friend group, literally all of them, in order:
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)β the get twin!! π go say hisnd_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)
and that's the whole page, no crumbs left behind π this cutie came out of ./sound/soc and it's stamped October 2026 β mwah, go read the source, ily, bye ππ
π¦ 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