snd_dmaengin...slave_config(9)
β¨ snd_dmaengine_pcm_prepare_slave_config β¨
okay so bestie, this is page snd_dmaengin...slave_config(9) from the Kernel API Manual β yes the title is literally truncated with ellipsis in the header, that's just how the man page do, we don't fix it, we love it π
π NAME π
snd_dmaengine_pcm_prepare_slave_config β the generic prepare_slave_config callback, no cap. It's giving "one callback to rule them all" energy π
πΈ SYNOPSIS πΈ
int snd_dmaengine_pcm_prepare_slave_config (struct snd_pcm_substream
*substream , struct snd_pcm_hw_params *params , struct dma_slave_config
*slave_config );
literally three pointers in, one int out. slay. β¨
π¦ ARGUMENTS π¦
substreamβ the PCM substream, bestie. that's the one.paramsβ the hw_params. the hardware params. the vibe check for your audio πslave_configβ the DMA slave config that we're about to prepare π
π DESCRIPTION π
okay so here's the tea β β this function is your go-to generic prepare_slave_config callback for any platform that's using the snd_dmaengine_dai_dma_data struct for its DAI DMA data. iykyk.
internally it's a two-step serve, and honestly? iconic:
- it first calls
snd_hwparams_to_dma_slave_configto fill in the slave config based on the hw_params π₯ - then it calls
snd_dmaengine_pcm_set_config_from_dai_datato fill in the remaining fields based on the DAI DMA data π
like, fill in some, fill in the rest β main character energy from start to finish fr fr.
π SEE ALSO π
- Kernel file
./sound/soc/soc-generic-dmaengine-pcm.cπ snd_dmaengine_pcm_register(9)snd_dmaengine_pcm_unregister(9)
ngl if you're implementing a platform and you've got snd_dmaengine_dai_dma_data sitting there, this callback is literally made for you. go off π«Ά
and that's the whole page, bestie β sourced from ./sound/soc, dated October 2026, stamped with snd_dmaengin...slave_config(9) at the top and bottom. mwah π bye ily π§ββοΈπ
π¦ 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