snd_soc_dai_get_stream(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

snd_soc_dai_get_stream β€” bestie, this one retrieves the stream from a DAI πŸ’–

So real quick β€” we're in the Kernel API Manual, and this page is literally just about grabbing a stream off a DAI. That's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

void * snd_soc_dai_get_stream (struct snd_soc_dai *dai , int direction );

That's it. That's the whole call. No cap. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dai β€” the DAI. Just… the DAI. That's the whole description she gave us πŸ’€ (it's a struct snd_soc_dai *, iykyk)
  • direction β€” the stream direction, as in Playback/Capture. Slay, queen, pick a lane 🌈

πŸ’… DESCRIPTION πŸ’…

Okay so this routine only retrieves what was previously configured with snd_soc_dai_get_stream 🫢 β€” that's what the page says, and I'm not gonna editorialize, I'm just the messenger πŸ’–

It returns a pointer to the stream, or an ERR_PTR value. Iconic example: ERR_PTR(-ENOTSUPP) if the callback is not supported 😭 Like, the callback just didn't show up to the party.

Heads up bestie: ERR_PTR means you gotta check that return value with the proper error-checking macros before you dereference it. Don't just raw-dog a void * and start poking at it πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/sound/soc-dai.h β€” go read it, it's giving main character energy ⭐
  • snd_soc_dai_set_stream(9) β€” the setter to this getter, they're a matching set fr fr πŸŽ€

Okay that's the whole page, mwah πŸ’‹ β€” this has been snd_soc_dai_get_stream(9) from ./include/sound, dated October 2026. Go forth and get those streams, bestie πŸŒΈβœ¨πŸ¦‹

πŸ“¦ where this page comes from