snd_soc_dai_get_stream(9)
β¨ 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 astruct 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_PTRmeans you gotta check that return value with the proper error-checking macros before you dereference it. Don't just raw-dog avoid *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
- 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