snd_soc_find_dai_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this one lives in the Kernel API Manual and it's literally called snd_soc_find_dai_link β€” and yes bestie, it does exactly what it says on the tin: it finds a DAI link πŸŽ€


✨ NAME ✨

snd_soc_find_dai_link β€” find a DAI link πŸ”πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

struct snd_soc_dai_link * snd_soc_find_dai_link (struct snd_soc_card
*card , int id , const char *name , const char *stream_name );

🌸 ARGUMENTS 🌸

  • card β€” the soc card, aka the main character of this whole quest πŸ‘‘
  • id β€” the DAI link ID you're trying to match, like the vibe check number πŸ’…
  • name β€” the DAI link name to match, and it's optional (no pressure bestie, you don't have to give it one) πŸ™ˆ
  • stream_name β€” the DAI link stream name to match, also optional πŸ“

πŸ’œ DESCRIPTION πŸ’œ

so what this function actually does: it goes and searches all the existing DAI links of the soc card to find, like, the link with the same ID. that's the whole mission 🧚✨

but here's the tea β˜• β€” since DAI links may not have their unique ID, name and stream_name should also match if they're being specified. so it's giving "ID first, but we double-check with names when you hand them over" energy 😭🫢


⭐ RETURN ⭐

it returns a pointer to the DAI link β€” slay, found it πŸ’š β€” or NULL if it's not found πŸ’€


🌈 SEE ALSO 🌈

go read those too, iykyk πŸ“šπŸ”₯


ngl bestie, if that NULL comes back, your link genuinely isn't there β€” that's not me being dramatic, that's just the return value 😌

mwah πŸ’‹ that's the whole page β€” brought to you from ./sound/soc, dated October 2026, and the title card still reads snd_soc_find_dai_link(9). catch you in the next manpage, bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from