---
name: "snd_dmaengine_pcm_prepare_slave_config"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_dmaengine_pcm_prepare_slave_config"
---

# snd\_dmaengine\_pcm\_prepare\_slave\_config(9)

Generic prepare\_slave\_config callback

## NAME

snd\_dmaengine\_pcm\_prepare\_slave\_config - Generic prepare\_slave\_config callback

## 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***);**

## ARGUMENTS

*substream*

PCM substream

*params*

hw\_params

*slave\_config*

DMA slave config to prepare

## DESCRIPTION

This function can be used as a generic prepare\_slave\_config callback for platforms which make use of the snd\_dmaengine\_dai\_dma\_data struct for their DAI DMA data. Internally the function will first call snd\_hwparams\_to\_dma\_slave\_config to fill in the slave config based on the hw\_params, followed by snd\_dmaengine\_set\_config\_from\_dai\_data to fill in the remaining fields based on the DAI DMA data.

## COPYRIGHT
