1SND_CTL_ADD_SLAVE(9) Control/Mixer API SND_CTL_ADD_SLAVE(9)
2
3
4
6 snd_ctl_add_slave - Add a virtual slave control
7
9 int snd_ctl_add_slave(struct snd_kcontrol * master,
10 struct snd_kcontrol * slave);
11
13 master
14 vmaster element
15
16 slave
17 slave element to add
18
20 Add a virtual slave control to the given master element created via
21 snd_ctl_create_virtual_master beforehand.
22
23 All slaves must be the same type (returning the same information via
24 info callback). The function doesn't check it, so it's your
25 responsibility.
26
27 Also, some additional limitations: at most two channels, logarithmic
28 volume control (dB level) thus no linear volume, master can only
29 attenuate the volume without gain
30
32 Zero if successful or a negative error code.
33
35Kernel Hackers Manual 3.10 June 2019 SND_CTL_ADD_SLAVE(9)