---
name: "snd_soc_kcontrol_codec"
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_kcontrol_codec"
---

# snd\_soc\_kcontrol\_codec(9)

Returns the CODEC that registered the control

## NAME

snd\_soc\_kcontrol\_codec - Returns the CODEC that registered the control

## SYNOPSIS

**struct snd\_soc\_codec \* snd\_soc\_kcontrol\_codec(struct snd\_kcontrol \*** *kcontrol***);**

## ARGUMENTS

*kcontrol*

The control for which to get the CODEC

## NOTE

This function will only work correctly if the control has been registered with **snd\_soc\_add\_codec\_controls** or via table based setup of snd\_soc\_codec\_driver. Otherwise the behavior is undefined.

## COPYRIGHT
