snd_soc_dapm_new_controls(9)
π snd_soc_dapm_new_controls(9) β from the Kernel API Manual, bestie β¨
okay so this is a page straight out of the Kernel API Manual and it's about making DAPM controls. short page, but it's lowkey important, so let's get into it π«Ά
β¨ NAME β¨
snd_soc_dapm_new_controls β create new dapm controls π
πΈ SYNOPSIS πΈ
int snd_soc_dapm_new_controls (struct snd_soc_dapm_context *dapm , const
struct snd_soc_dapm_widget *widget , unsigned int num );
like, that's the whole signature, no notes π
π ARGUMENTS π
dapmβ the DAPM context, aka where all this is happening πwidgetβ your widget array, the whole squad of them πnumβ number of widgets, so it knows how many besties are in the array fr fr π’
π DESCRIPTION π
so it creates new DAPM controls based upon the templates. that's the vibe. templates in, controls out, iconic behaviour honestly β¨
and it returns 0 for success else error. so like, 0 = slay, anything else = π
π¦ SEE ALSO π¦
kernel file ./sound/soc/soc-dapm.c β that's where the magic lives, go look π
the whole extended friend group, no cap:
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_pin_switch(9)snd_soc_dapm_put_component_pin_switch(9)snd_soc_dapm_new_control(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 page bestie, go forth and build controls π
mwah π this one came from ./sound/soc, dated October 2026 β that's the version and the date, wrapped up cute for u π
π¦ 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