snd_ctl_add_slave(9)

snd_ctl_add_slave9

Add a virtual slave control

Usage

int snd_ctl_add_slave(struct snd_kcontrol * master, struct snd_kcontrol * slave);

Arguments

master

vmaster element

slave

slave element to add

Overview

Add a virtual slave control to the given master element created via snd_ctl_create_virtual_master beforehand.

All slaves must be the same type (returning the same information via info callback). The function doesn't check it, so it's your responsibility.

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

Return

Zero if successful or a negative error code.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.