snd_pcm_drain_done(9)
β¨ 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
snd_pcm_stream_lock(9)snd_pcm_stream_unlock(9)snd_pcm_stream_lock_irq(9)snd_pcm_stream_unlock_irq(9)snd_pcm_stream_unlock_irqrestore(9)snd_pcm_set_state(9)snd_pcm_get_state(9)snd_pcm_hw_params_choose(9)snd_pcm_start(9)snd_pcm_stop(9)snd_pcm_stop_xrun(9)snd_pcm_suspend_all(9)snd_pcm_prepare(9)snd_pcm_kernel_ioctl(9)snd_pcm_lib_default_mmap(9)snd_pcm_lib_mmap_iomem(9)
π«Ά 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
- 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