snd_soc_dapm..._enum_double(9)
π snd_soc_dapm_get_enum_double β bestie's guide to the get callback
okay so this is a page from the Kernel API Manual, and it's all about one teeny tiny function that does one teeny tiny job. no cap, it's giving "small but iconic." let's get into it π
β¨ NAME β¨
snd_soc_dapm_get_enum_double β the dapm enumerated double mixer get callback. that's it, that's the whole vibe. she gets. she retrieves. she slays π
πΈ SYNOPSIS πΈ
int snd_soc_dapm_get_enum_double (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_value *ucontrol );
two pointers in, one int out. simple. elegant. main character energy fr fr β¨
π¦ ARGUMENTS π¦
kcontrolβ the mixer control. like, the actual control object you're working with ποΈucontrolβ the control element information. this is where the info lives, bestie π«Ά
π DESCRIPTION π
so basically, this is a callback β the function that gets called when something wants to get the value of a dapm enumerated double mixer control. it goes and fetches the current value, that's its whole personality π
and what does it return? 0 for success. that's it. zero means we ate. π₯
lowkey important: the docs say 0 = success, and that's literally all they say. don't go reading extra meaning into it, bestie π
β SEE ALSO β
the whole friend group, gathered for you π
- the kernel file
./sound/soc/soc-dapm.cβ that's where she lives π
and the rest of the crew:
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_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)
and that's the whole page!! no notes, it's short and it knows it π
mwah π β sourced from ./sound/soc, stamped October 2026, and filed under snd_soc_dapm..._enum_double(9) in the Kernel API Manual. go get that value, bestie π§β¨
π¦ 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