'\" t .\" Title: snd_ctl_new1 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Control/Mixer API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_CTL_NEW1" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Control/Mixer 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_ctl_new1 \- create a control instance from the template .SH "SYNOPSIS" .HP \w'struct\ snd_kcontrol\ *\ snd_ctl_new1('u .BI "struct snd_kcontrol * snd_ctl_new1(const\ struct\ snd_kcontrol_new\ *\ " "ncontrol" ", void\ *\ " "private_data" ");" .SH "ARGUMENTS" .PP \fIncontrol\fR .RS 4 the initialization record .RE .PP \fIprivate_data\fR .RS 4 the private data to set .RE .SH "DESCRIPTION" .PP Allocates a new struct snd_kcontrol instance and initialize from the given template\&. When the access field of ncontrol is 0, it\*(Aqs assumed as READWRITE access\&. When the count field is 0, it\*(Aqs assumes as one\&. .SH "RETURN" .PP The pointer of the newly generated instance, or \fBNULL\fR on failure\&. .SH "COPYRIGHT" .br