---
name: "snd_ctl_activate_id"
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_activate_id"
---

# snd\_ctl\_activate\_id(9)

activate/inactivate the control of the given id

## NAME

snd\_ctl\_activate\_id - activate/inactivate the control of the given id

## SYNOPSIS

**int snd\_ctl\_activate\_id(struct snd\_card \*** *card***, struct snd\_ctl\_elem\_id \*** *id***, int** *active***);**

## ARGUMENTS

*card*

the card instance

*id*

the control id to activate/inactivate

*active*

non-zero to activate

## DESCRIPTION

Finds the control instance with the given id, and activate or inactivate the control together with notification, if changed. The given ID data is filled with full information.

## RETURN

0 if unchanged, 1 if changed, or a negative error code on failure.

## COPYRIGHT
