sdca_asoc_get_port(9)
π sdca_asoc_get_port(9)
okay so this is a page from the Kernel API Manual β yes bestie, sdca_asoc_get_port(9) is literally the whole main character here, we're reading kernel docs together and honestly? iconic. π
β¨ NAME β¨
sdca_asoc_get_port β returns the SoundWire port for a DAI π¦
β¨ SYNOPSIS β¨
int sdca_asoc_get_port (struct device *dev , struct regmap *regmap ,
struct sdca_function_data *function , struct snd_soc_dai *dai );
π ARGUMENTS π
devβ pointer to the device, and likeβ¦ it's the one that gets used for error messages π«Ά so when things go sideways,devis the one holding the receipts.regmapβ pointer to the Function register map β¨ the whole map, no cap.functionβ pointer to the Function information π this is where the lore lives.daiβ pointer to the ASoC DAI πΈ yep, that's the one.
π DESCRIPTION π
Typically called from hw_params. that's it, that's the whole description β but honestly? it's giving "short and mysterious" and we respect it πβ¨
π₯ RETURN π₯
Returns a positive port number on success π and a negative error code on failure π (ngl, when you see the negative one, that's your vibe check failing fr fr).
π SEE ALSO π
Kernel file ./sound/soc/sdca/sdca_asoc.c, plus the whole squad β go say hi to all of them:
sdca_asoc_count_component(9)sdca_asoc_pde_poll_actual_ps(9)sdca_asoc_populate_dapm(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_hw_params(9)
okay and for the cute sign-off: this little beauty lives in ./sound/soc/sdca πΈ and it's dated October 2026, so mark your calendars bestie π
β 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