snd_ctl_add(9)

snd_ctl_add9

Add the control instance to the card

Usage

int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol);

Arguments

card

the card instance

kcontrol

the control instance to add

Overview

Adds the control instance created via snd_ctl_new or snd_ctl_new1 to the given card. Assigns also an unique numid used for fast search.

It frees automatically the control which cannot be added.

Return

Zero if successful, or a negative error code on failure.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

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