snd_dmaengin...slave_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

  1. it first calls snd_hwparams_to_dma_slave_config to fill in the slave config based on the hw_params πŸ”₯
  2. then it calls snd_dmaengine_pcm_set_config_from_dai_data to 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 πŸ‘‘


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