'\" t .\" Title: snd_pcm_new_stream .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: PCM API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_PCM_NEW_STREAM" "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_pcm_new_stream \- create a new PCM stream .SH "SYNOPSIS" .HP \w'int\ snd_pcm_new_stream('u .BI "int snd_pcm_new_stream(struct\ snd_pcm\ *\ " "pcm" ", int\ " "stream" ", int\ " "substream_count" ");" .SH "ARGUMENTS" .PP \fIpcm\fR .RS 4 the pcm instance .RE .PP \fIstream\fR .RS 4 the stream direction, SNDRV_PCM_STREAM_XXX .RE .PP \fIsubstream_count\fR .RS 4 the number of substreams .RE .SH "DESCRIPTION" .PP Creates a new stream for the pcm\&. The corresponding stream on the pcm must have been empty before calling this, i\&.e\&. zero must be given to the argument of \fBsnd_pcm_new\fR\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br