'\" t .\" Title: snd_ctl_replace .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Control/Mixer API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_CTL_REPLACE" "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_replace \- replace the control instance of the card .SH "SYNOPSIS" .HP \w'int\ snd_ctl_replace('u .BI "int snd_ctl_replace(struct\ snd_card\ *\ " "card" ", struct\ snd_kcontrol\ *\ " "kcontrol" ", bool\ " "add_on_replace" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 the card instance .RE .PP \fIkcontrol\fR .RS 4 the control instance to replace .RE .PP \fIadd_on_replace\fR .RS 4 add the control if not already added .RE .SH "DESCRIPTION" .PP Replaces the given control\&. If the given control does not exist and the add_on_replace flag is set, the control is added\&. If the control exists, it is destroyed first\&. .PP It frees automatically the control which cannot be added or replaced\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br