snd_pcm_new_stream(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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. zero to the argument of snd_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