.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SND_CTL_NEW1" "" "06 October 2005" "" ""
.SH NAME
snd_ctl_new1 \- create a control instance from the template
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
snd_kcontrol_t * snd_ctl_new1 (snd_kcontrol_new_t * \fIncontrol\fB, void * \fIprivate_data\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIncontrol\fB\fR
the initialization record
.TP
\fB\fIprivate_data\fB\fR
the private data to set
.SH "DESCRIPTION"
.PP
Allocates a new snd_kcontrol_t instance and initialize from the given
template. When the access field of ncontrol is 0, it's assumed as
READWRITE access. When the count field is 0, it's assumes as one.
.PP
Returns the pointer of the newly generated instance, or NULL on failure.