snd_soc_dapm..._source_path(9)
π snd_soc_dapm_widget_for_each_source_path π
okay so bestie, we're in the Kernel API Manual today and this one is a macro that literally lives in the ALSA SoC DAPM world β it's giving "I crawl the audio graph so you don't have to" energy. no cap. π
β¨ NAME β¨
snd_soc_dapm_widget_for_each_source_path β iterates over all paths leading to a widget. that's it, that's the whole vibe. it's a loop-y girlie. π¦
πΈ SYNOPSIS πΈ
snd_soc_dapm_widget_for_each_source_path (w , p );
literally just those two little args in the parentheses, bestie. copy it exactly, commas and all β do not get creative with the spacing, the preprocessor is watching. π
π ARGUMENTS π
wβ the widget. yes, the widget. the main character of this whole operation. πpβ the path iterator variable. this is your little loop buddy that keeps track of where you are on the walk. give it a name, love it, cherish it. π«Ά
π¦ SEE ALSO π¦
- kernel file
./include/sound/soc-dapm.hβ go read it, it's got lore π snd_soc_dapm_widget_for_each_path(9)β the generalist siblingsnd_soc_dapm_widget_for_each_path_safe(9)β same energy but it won't trip over itself mid-loop (that's the safe part, iykyk)snd_soc_dapm_widget_for_each_sink_path(9)β the opposite direction, we stan a balanced graph π
ngl if you're trying to reverse the flow and you landed here, you might actually want the sink one. just saying. π
and that's the whole page, bestie! source and version live over in ./include/sound and this lil beauty is dated October 2026 β so go forth, iterate those source paths, and slay β¨π periodt.
π¦ 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