sdca_asoc_populate_dapm(9)
π 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:
sdca_asoc_count_component(9)sdca_asoc_pde_poll_actual_ps(9)sdca_asoc_populate_controls(9)sdca_asoc_populate_dais(9)sdca_asoc_populate_component(9)sdca_asoc_set_constraints(9)sdca_asoc_free_constraints(9)sdca_asoc_get_port(9)sdca_asoc_hw_params(9)
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
- 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