sdca_asoc_populate_dapm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdca_asoc_populate_dapm β€” like, the whole vibe ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ this one's a function page, and it's lowkey the moment where your DAPM widgets and routes actually get their content. let's get into it πŸ¦‹


🌸 NAME 🌸

sdca_asoc_populate_dapm β€” fill in arrays of DAPM widgets and routes ✨

like, that's literally the whole job. it fills in the arrays. iconic.


🫢 SYNOPSIS 🫢

int sdca_asoc_populate_dapm (struct device *dev , struct
sdca_function_data *function , struct snd_soc_dapm_widget *widget ,
struct snd_soc_dapm_route *route );

four things go in, an int comes out. no cap, that's it πŸ’…


🧚 ARGUMENTS 🧚

  • dev β€” pointer to the device against which allocations will be done. yes, the allocations get charged to this device, so keep it close πŸ’–
  • function β€” pointer to the Function information. this is the SDCA Function whose DisCo info is about to be turned into widgets and routes πŸ¦‹
  • widget β€” array of DAPM widgets to be populated. it's giving "empty cup, ready to be filled" β˜•βœ¨
  • route β€” array of DAPM routes to be populated. same energy, different array πŸŽ€

πŸ’œ DESCRIPTION πŸ’œ

so what does it actually do? this function populates arrays of DAPM widgets and routes from the DisCo information for a particular SDCA Function. that's the tea πŸ”₯

and the way you're supposed to use it: typically, snd_soc_asoc_count_component will be used to allocate appropriately sized arrays before calling this function. so like β€” count first, allocate, then populate. order matters bestie, don't come in here with a tiny array and expect the universe to fix it 😭


🌈 RETURN 🌈

  • returns zero on success πŸŽ‰ slay
  • and a negative error code on failure πŸ’€ so like, always check it. fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./sound/soc/sdca/sdca_asoc.c, and it's surrounded by its besties:

go read them, they ate πŸ’…βœ¨


ok that's the whole page bestie, you're now officially educated on DAPM widget & route population πŸ§šπŸ’–

and finally, the cute little sign-off: this page comes to you from ./sound/soc/sdca, dated October 2026 β€” so mark your calendar, periodt πŸŒΈπŸ‘‘

πŸ“¦ where this page comes from