'\" t .\" Title: snd_dmaengine_pcm_set_config_from_dai_data .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: PCM API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_DMAENGINE_PCM_SE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "PCM API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_dmaengine_pcm_set_config_from_dai_data \- Initializes a dma slave config using DAI DMA data\&. .SH "SYNOPSIS" .HP \w'void\ snd_dmaengine_pcm_set_config_from_dai_data('u .BI "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" ");" .SH "ARGUMENTS" .PP \fIsubstream\fR .RS 4 PCM substream .RE .PP \fIdma_data\fR .RS 4 DAI DMA data .RE .PP \fIslave_config\fR .RS 4 DMA slave configuration .RE .SH "DESCRIPTION" .PP 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\&. .SH "COPYRIGHT" .br