snd_dmaengine_pcm_trigger(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– snd_dmaengine_pcm_trigger(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil kernel function called snd_dmaengine_pcm_trigger, and honestly? she's giving "small but mighty" energy. let's get into it πŸŽ€


✨ NAME ✨

snd_dmaengine_pcm_trigger β€” the dmaengine-based PCM trigger implementation, aka the girl who handles your trigger callbacks πŸ’…


🌸 SYNOPSIS 🌸

int snd_dmaengine_pcm_trigger (struct snd_pcm_substream *substream , int
cmd );

that's it. that's the whole signature. short queen πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • substream β€” the PCM substream. like, the actual stream we're messing with πŸ’–
  • cmd β€” the trigger command. the vibe check of what you want done ✨

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea β˜• β€” you can use this function as the PCM trigger callback for your dmaengine-based PCM driver implementations. it's literally built for that. main character energy, no cap 🫢


⭐ RETURN ⭐

she returns 0 on success bestie πŸŽ‰ and a negative error code otherwise 😭 (yeah, the classic "not zero = something went wrong" situation, iykyk).


🌈 SEE ALSO 🌈

the kernel file lives right here, iconic:

  • ./sound/core/pcm_dmaengine.c

and the whole friend group πŸ’œ:


ngl, if your driver's trigger callback was looking for a home, this function ate and left no crumbs πŸ’…

k byeee, this page came to you straight out of ./sound/core, dated October 2026 β€” stay slay, keep your error codes negative, and remember: she's in the Kernel API Manual for a reason πŸ§šβ€β™€οΈπŸ’–βœ¨

πŸ“¦ where this page comes from