'\" t .\" Title: snd_ctl_remove .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Sound Devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SND_CTL_REMOVE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Sound Devices" .\" ----------------------------------------------------------------- .\" * 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_remove \- remove the control from the card and release it .SH "SYNOPSIS" .HP \w'int\ snd_ctl_remove('u .BI "int snd_ctl_remove(struct\ snd_card\ *\ " "card" ", struct\ snd_kcontrol\ *\ " "kcontrol" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 the card instance .RE .PP \fIkcontrol\fR .RS 4 the control instance to remove .RE .SH "DESCRIPTION" .PP Removes the control from the card and then releases the instance\&. You don\*(Aqt need to call \fBsnd_ctl_free_one\fR\&. You must be in the write lock \- down_write(card\->controls_rwsem)\&. .SH "RETURN" .PP 0 if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br