snd_soc_dapm_get_volsw(9)
β¨ snd_soc_dapm_get_volsw(9) β¨
okay so bestie, we're in the Kernel API Manual today and the main character is snd_soc_dapm_get_volsw β yes the (9) is part of the name, that's just how kernel docs flex π
π NAME π
snd_soc_dapm_get_volsw β the dapm mixer get callback. that's it, that's the whole vibe. it gets. π«Ά
πΈ SYNOPSIS πΈ
int snd_soc_dapm_get_volsw (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_value *ucontrol );
like, two args, one int coming back at you. no cap, that's the whole signature π₯
π¦ ARGUMENTS π¦
kcontrolβ the mixer control itself. your little handle on the thing πucontrolβ the control element information. this is where the info lives β¨
π DESCRIPTION π
so this is the callback that gets the value of a dapm mixer control. that's literally the assignment. it's giving "I read the thing so you don't have to" π§
and the return? returns 0 for success. slay. iconic. periodt π
π SEE ALSO π
the whole friend group, fr fr. kernel file ./sound/soc/soc-dapm.c, and then:
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_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_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)
that's the whole group chat, every single one of them, no skipping π
and that's the page!! this one came straight out of ./sound/soc and it's dated October 2026 β so like, future vibes only πβ mwah, go get those mixer values 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