'\" t .\" Title: snd_ctl_make_virtual_master .\" 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_MAKE_VIRTUAL" "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_make_virtual_master \- Create a virtual master control .SH "SYNOPSIS" .HP \w'struct\ snd_kcontrol\ *\ snd_ctl_make_virtual_master('u .BI "struct snd_kcontrol * snd_ctl_make_virtual_master(char\ *\ " "name" ", const\ unsigned\ int\ *\ " "tlv" ");" .SH "ARGUMENTS" .PP \fIname\fR .RS 4 name string of the control element to create .RE .PP \fItlv\fR .RS 4 optional TLV int array for dB information .RE .SH "DESCRIPTION" .PP Creates a virtual master control with the given name string\&. .PP After creating a vmaster element, you can add the slave controls via \fBsnd_ctl_add_slave\fR or \fBsnd_ctl_add_slave_uncached\fR\&. .PP The optional argument \fItlv\fR can be used to specify the TLV information for dB scale of the master control\&. It should be a single element with #SNDRV_CTL_TLVT_DB_SCALE, #SNDRV_CTL_TLV_DB_MINMAX or #SNDRV_CTL_TLVT_DB_MINMAX_MUTE type, and should be the max 0dB\&. .SH "RETURN" .PP The created control element, or \fBNULL\fR for errors (ENOMEM)\&. .SH "COPYRIGHT" .br