---
name: "snd_soc_add_codec_controls"
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_soc_add_codec_controls"
---

# snd\_soc\_add\_codec\_controls(9)

add an array of controls to a codec. Convenience function to add a list of controls. Many codecs were duplicating this code.

## NAME

snd\_soc\_add\_codec\_controls - add an array of controls to a codec. Convenience function to add a list of controls. Many codecs were duplicating this code.

## SYNOPSIS

**int snd\_soc\_add\_codec\_controls(struct snd\_soc\_codec \*** *codec***, const struct snd\_kcontrol\_new \*** *controls***, unsigned int** *num\_controls***);**

## ARGUMENTS

*codec*

codec to add controls to

*controls*

array of controls to add

*num\_controls*

number of elements in the array

## DESCRIPTION

Return 0 for success, else error.

## COPYRIGHT
