'\" t .\" Title: snd_dmaengine_pcm_open .\" 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_OP" "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_open \- Open a dmaengine based PCM substream .SH "SYNOPSIS" .HP \w'int\ snd_dmaengine_pcm_open('u .BI "int snd_dmaengine_pcm_open(struct\ snd_pcm_substream\ *\ " "substream" ", struct\ dma_chan\ *\ " "chan" ");" .SH "ARGUMENTS" .PP \fIsubstream\fR .RS 4 PCM substream .RE .PP \fIchan\fR .RS 4 DMA channel to use for data transfers .RE .SH "DESCRIPTION" .PP Returns 0 on success, a negative error code otherwise\&. .PP The function should usually be called from the pcm open callback\&. Note that this function will use private_data field of the substream\*(Aqs runtime\&. So it is not available to your pcm driver implementation\&. .SH "COPYRIGHT" .br