sdca_asoc_get_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, dev is 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:


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