snd_pcm_drain_done(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_pcm_drain_done(9) ✨

okay so welcome to the Kernel API Manual, bestie β€” this page is all about snd_pcm_drain_done, and it's giving very specific audio-stream energy πŸŽ§πŸ’–


🌸 NAME 🌸

snd_pcm_drain_done β€” stop the DMA only when the given stream is playback πŸ’…βœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

int snd_pcm_drain_done (struct snd_pcm_substream *substream );

πŸŽ€ ARGUMENTS πŸŽ€

  • substream β€” the PCM substream πŸ‘‘ that's literally the one you're handing over

πŸ’œ DESCRIPTION πŸ’œ

After stopping, the state is changed to SETUP ✨ and that's the whole glow-up.

Unlike snd_pcm_stop, this affects only the given stream β€” no cap, it does not spread to the whole crew πŸ’€πŸ™ˆ


🌈 RETURN 🌈

Zero if successful, or a negative error code 😭 β€” pretty straightforward, ngl.


🫢 SEE ALSO 🫢

Kernel file: ./sound/core/pcm_native.c


🫢 that's the whole vibe β€” source/version: ./sound/core Β· date: October 2026 Β· page: snd_pcm_drain_done(9) β€” bye bestie, go handle that playback stream with main character energy πŸ’…βœ¨πŸ”₯

πŸ“¦ where this page comes from