'\" t .\" Title: snd_ctl_add_slave .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Control/Mixer API .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "SND_CTL_ADD_SLAVE" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "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_add_slave \- Add a virtual slave control .SH "SYNOPSIS" .HP \w'int\ snd_ctl_add_slave('u .BI "int snd_ctl_add_slave(struct\ snd_kcontrol\ *\ " "master" ", struct\ snd_kcontrol\ *\ " "slave" ");" .SH "ARGUMENTS" .PP \fImaster\fR .RS 4 vmaster element .RE .PP \fIslave\fR .RS 4 slave element to add .RE .SH "DESCRIPTION" .PP Add a virtual slave control to the given master element created via \fBsnd_ctl_create_virtual_master\fR beforehand\&. .PP All slaves must be the same type (returning the same information via info callback)\&. The function doesn\*(Aqt check it, so it\*(Aqs your responsibility\&. .PP Also, some additional limitations: at most two channels, logarithmic volume control (dB level) thus no linear volume, master can only attenuate the volume without gain .SH "RETURN" .PP Zero if successful or a negative error code\&. .SH "COPYRIGHT" .br