---
name: "snd_ctl_remove"
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_remove"
---

# snd\_ctl\_remove(9)

remove the control from the card and release it

## NAME

snd\_ctl\_remove - remove the control from the card and release it

## SYNOPSIS

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

## ARGUMENTS

*card*

the card instance

*kcontrol*

the control instance to remove

## DESCRIPTION

Removes the control from the card and then releases the instance. You don't need to call **snd\_ctl\_free\_one**. You must be in the write lock - down\_write(card-\>controls\_rwsem).

## RETURN

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

## COPYRIGHT
