'\" t .\" Title: snd_soc_card_jack_new .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Miscellaneous Functions .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_SOC_CARD_JACK_NE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_soc_card_jack_new \- Create a new jack .SH "SYNOPSIS" .HP \w'int\ snd_soc_card_jack_new('u .BI "int snd_soc_card_jack_new(struct\ snd_soc_card\ *\ " "card" ", const\ char\ *\ " "id" ", int\ " "type" ", struct\ snd_soc_jack\ *\ " "jack" ", struct\ snd_soc_jack_pin\ *\ " "pins" ", unsigned\ int\ " "num_pins" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 ASoC card .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 \fIjack\fR .RS 4 structure to use for the jack .RE .PP \fIpins\fR .RS 4 Array of jack pins to be added to the jack or NULL .RE .PP \fInum_pins\fR .RS 4 Number of elements in the \fIpins\fR array .RE .SH "DESCRIPTION" .PP Creates a new jack object\&. .PP Returns zero if successful, or a negative error code on failure\&. On success jack will be initialised\&. .SH "COPYRIGHT" .br