snd_pcm_new_stream(9)
π snd_pcm_new_stream(9) π
okay bestie, welcome to the Kernel API Manual page for snd_pcm_new_stream(9) β this is the one where we make a brand-new PCM stream β¨
π NAME π
snd_pcm_new_stream β create a new PCM stream π
πΈ SYNOPSIS πΈ
int snd_pcm_new_stream (struct snd_pcm *pcm , int stream , int
substream_count );
π¦ ARGUMENTS π¦
pcmβ the pcm instance π«Άstreamβ the stream direction,SNDRV_PCM_STREAM_XXXπ§substream_countβ the number of substreams π’
β¨ DESCRIPTION β¨
So this function creates a new stream for the pcm. But listen β the corresponding stream on the pcm must have been empty before calling this. Like, zero must be given to the argument of snd_pcm_new. No cap, that's the vibe check: it has to be empty first, or you are not doing it right π
bestie please remember: empty before you call this.zeroto the argument ofsnd_pcm_new, okay? π
π₯ RETURN π₯
Zero if successful, or a negative error code on failure. That's it, that's the tea ββ¨ periodt.
π SEE ALSO π
Kernel file ./sound/core/pcm.c plus these iconique pals:
mwah π this page came from ./sound/core, dated October 2026, and it's the snd_pcm_new_stream(9) cutie. bye 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