'\" t
.\"     Title: snd_pcm_new
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: June 2017
.\"    Manual: PCM API
.\"    Source: Kernel Hackers Manual 4.9.30
.\"  Language: English
.\"
.TH "SND_PCM_NEW" "9" "June 2017" "Kernel Hackers Manual 4\&.9\&." "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 \- create a new PCM instance
.SH "SYNOPSIS"
.HP \w'int\ snd_pcm_new('u
.BI "int snd_pcm_new(struct\ snd_card\ *\ " "card" ", const\ char\ *\ " "id" ", int\ " "device" ", int\ " "playback_count" ", int\ " "capture_count" ", struct\ snd_pcm\ **\ " "rpcm" ");"
.SH "ARGUMENTS"
.PP
\fIcard\fR
.RS 4
the card instance
.RE
.PP
\fIid\fR
.RS 4
the id string
.RE
.PP
\fIdevice\fR
.RS 4
the device index (zero based)
.RE
.PP
\fIplayback_count\fR
.RS 4
the number of substreams for playback
.RE
.PP
\fIcapture_count\fR
.RS 4
the number of substreams for capture
.RE
.PP
\fIrpcm\fR
.RS 4
the pointer to store the new pcm instance
.RE
.SH "DESCRIPTION"
.PP
Creates a new PCM instance\&.
.PP
The pcm operators have to be set afterwards to the new instance via
\fBsnd_pcm_set_ops\fR\&.
.SH "RETURN"
.PP
Zero if successful, or a negative error code on failure\&.
.SH "COPYRIGHT"
.br
