snd_hwparams...slave_config(9)
okay bestie, welcome to the snd_hwparams...slave_config(9) page from the Kernel API Manual β yes, the title is a whole vibe, but the function inside is the real main character π
β¨ NAME β¨
snd_hwparams_to_dma_slave_config β the glow-up that converts hw_params to dma_slave_config π
π SYNOPSIS π
int snd_hwparams_to_dma_slave_config (const struct snd_pcm_substream
*substream , const struct snd_pcm_hw_params *params , struct
dma_slave_config *slave_config );
π ARGUMENTS π
substreamβ PCM substream, aka the stream bestie we're working with πparamsβ hw_params, the hardware-params cutieslave_configβ DMA slave config, the destination baddie π
π¦ DESCRIPTION π¦
so this function can be used to initialize a dma_slave_config from a substream and hw_params in a dmaengine based PCM driver implementation. That's the whole flex β¨
πΈ RETURN πΈ
zero if successful, or a negative error code. no cap, that's the return vibe π
π₯ SEE ALSO π₯
- Kernel file
./sound/core/pcm_dmaengine.cπ 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_open(9)snd_dmaengine_pcm_close(9)snd_dmaengine_pcm_close_release_chan(9)snd_dmaengine_pcm_refine_runtime_hwparams(9)
kisses and kernel hugs π«Ά β source/version: ./sound/core; date: October 2026; and this page is giving manual-page royalty π
π¦ 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