snd_dmaengine_pcm_open(9)
π snd_dmaengine_pcm_open(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β today we're opening a dmaengine-based PCM substream and honestly? it's giving main character energy in the audio pipeline π
πΈ NAME πΈ
snd_dmaengine_pcm_open β open a dmaengine based PCM substream π¦
β¨ SYNOPSIS β¨
int snd_dmaengine_pcm_open (struct snd_pcm_substream *substream , struct
dma_chan *chan );
π ARGUMENTS π
substreamβ the PCM substream, aka the whole reason we're here πchanβ the DMA channel you're gonna use for data transfers, no cap
π§ DESCRIPTION π§
so like, the function should usually be called from the pcm open callback β that's the vibe, that's the moment, that's where it belongs β
β οΈ Okay this part is important bestie, listen up: this function will use the private_data field of the substream's runtime. So it is not available to your pcm driver implementation. Like, it's taken. claimed. off the market. π don't try to use it, it's not yours anymore π
π₯ RETURN π₯
0on success π- a negative error code otherwise π
π SEE ALSO π
Kernel file ./sound/core/pcm_dmaengine.c β go read it, iykyk π
snd_hwparams_to_dma_slave_config(9)snd_dmaengine_pcm_set_config_from_dai_data(9)snd_dmaengine_pcm_trigger(9)snd_dmaengine_pcm_pointer_no_residue(9)snd_dmaengine_pcm_pointer(9)snd_dmaengine_pcm_request_channel(9)snd_dmaengine_pcm_close(9)snd_dmaengine_pcm_close_release_chan(9)snd_dmaengine_pcm_refine_runtime_hwparams(9)
like the whole friend group fr fr π«Ά go say hi to all of them π
and that's the tea, bestie π this lil page lives over in ./sound/core and it's dated October 2026 β so yeah, it's from the future, slay πβ¨ bye bye, go write some bomb audio drivers ππ
π¦ 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