---
name: "snd_dmaengine_pcm_set_config_from_dai_data"
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_set_config_from_dai_data"
---

# snd\_dmaengine\_pcm\_set\_config\_from\_dai\_data(9)

Initializes a dma slave config using DAI DMA data.

## NAME

snd\_dmaengine\_pcm\_set\_config\_from\_dai\_data - Initializes a dma slave config using DAI DMA data.

## SYNOPSIS

**void snd\_dmaengine\_pcm\_set\_config\_from\_dai\_data(const struct snd\_pcm\_substream \*** *substream***, const struct snd\_dmaengine\_dai\_dma\_data \*** *dma\_data***, struct dma\_slave\_config \*** *slave\_config***);**

## ARGUMENTS

*substream*

PCM substream

*dma\_data*

DAI DMA data

*slave\_config*

DMA slave configuration

## DESCRIPTION

Initializes the {dst,src}\_addr, {dst,src}\_maxburst, {dst,src}\_addr\_width and slave\_id fields of the DMA slave config from the same fields of the DAI DMA data struct. The src and dst fields will be initialized depending on the direction of the substream. If the substream is a playback stream the dst fields will be initialized, if it is a capture stream the src fields will be initialized. The {dst,src}\_addr\_width field will only be initialized if the SND\_DMAENGINE\_PCM\_DAI\_FLAG\_PACK flag is set or if the addr\_width field of the DAI DMA data struct is not equal to DMA\_SLAVE\_BUSWIDTH\_UNDEFINED. If both conditions are met the latter takes priority.

## COPYRIGHT
