snd_ctl_make_virtual_master(9)

snd_ctl_make_virtual_master9

Create a virtual master control

Usage

struct snd_kcontrol * snd_ctl_make_virtual_master(char * name, const unsigned int * tlv);

Arguments

name

name string of the control element to create

tlv

optional TLV int array for dB information

Overview

Creates a virtual master control with the given name string.

After creating a vmaster element, you can add the slave controls via snd_ctl_add_slave or snd_ctl_add_slave_uncached.

The optional argument tlv 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.

Return

The created control element, or NULL for errors (ENOMEM).

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.