'\" t .\" Title: snd_jack_new .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Miscellaneous Functions .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "SND_JACK_NEW" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "Miscellaneous Functions" .\" ----------------------------------------------------------------- .\" * 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_jack_new \- Create a new jack .SH "SYNOPSIS" .HP \w'int\ snd_jack_new('u .BI "int snd_jack_new(struct\ snd_card\ *\ " "card" ", const\ char\ *\ " "id" ", int\ " "type" ", struct\ snd_jack\ **\ " "jjack" ", bool\ " "initial_kctl" ", bool\ " "phantom_jack" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 the card instance .RE .PP \fIid\fR .RS 4 an identifying string for this jack .RE .PP \fItype\fR .RS 4 a bitmask of enum snd_jack_type values that can be detected by this jack .RE .PP \fIjjack\fR .RS 4 Used to provide the allocated jack object to the caller\&. .RE .PP \fIinitial_kctl\fR .RS 4 if true, create a kcontrol and add it to the jack list\&. .RE .PP \fIphantom_jack\fR .RS 4 Don\*(Aqt create a input device for phantom jacks\&. .RE .SH "DESCRIPTION" .PP Creates a new jack object\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. On success \fIjjack\fR will be initialised\&. .SH "COPYRIGHT" .br