snd_hwparams...slave_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 cutie
  • slave_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 πŸ”₯


kisses and kernel hugs 🫢 β€” source/version: ./sound/core; date: October 2026; and this page is giving manual-page royalty πŸ‘‘

πŸ“¦ where this page comes from