snd_soc_dapm..._source_path(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ¦‹

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