---
name: "snd_ctl_add"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_ctl_add"
---

# snd\_ctl\_add(9)

add the control instance to the card

## NAME

snd\_ctl\_add - add the control instance to the card

## SYNOPSIS

**int snd\_ctl\_add(struct snd\_card \*** *card***, struct snd\_kcontrol \*** *kcontrol***);**

## ARGUMENTS

*card*

the card instance

*kcontrol*

the control instance to add

## DESCRIPTION

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.

## COPYRIGHT
