snd_soc_dapm_sync(9)
β¨ snd_soc_dapm_sync β scan and power dapm paths β¨
okay bestie, buckle up, we're reading a kernel API manual page from the Kernel API Manual and honestly? this one's a lil cutie. it does one thing and it does it well π
πΈ SYNOPSIS πΈ
int snd_soc_dapm_sync (struct snd_soc_dapm_context *dapm );
like, that's it. that's the whole signature. she's compact. she's iconic. π
π¦ ARGUMENTS π¦
dapmβ the DAPM context, aka the whole vibe she's about to scan. hand her your context and she'll go to work.
π DESCRIPTION π
okay so here's the tea β β snd_soc_dapm_sync walks all dapm audio paths and powers widgets according to their stream or path usage. literally every path gets a little stroll-through, and each widget gets its power state sorted based on how it's being used. no cap, that's the entire job.
and the return value? returns 0 for success. that's it. zero. a clean zero. the most satisfying zero in the game fr fr β¨
no hidden plot twists here, bestie β this is a straightforward "go scan everything and make sure the power is right" situation. π«Ά
π SEE ALSO π
the friend group π«Ά β she does NOT work alone, and neither should you. also shoutout to the kernel file ./sound/soc/soc-dapm.c where all of this lives:
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_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_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)
go read the whole squad, bestie. iykyk π§
and that's the page!! brought to you straight outta ./sound/soc, dated October 2026 β mwah, sending you the biggest kiss, happy hacking πππ
π¦ 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