---
name: "snd_soc_dapm_to_component"
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_dapm_to_component"
---

# snd\_soc\_dapm\_to\_component(9)

Casts a DAPM context to the component it is embedded in

## NAME

snd\_soc\_dapm\_to\_component - Casts a DAPM context to the component it is embedded in

## SYNOPSIS

**struct snd\_soc\_component \* snd\_soc\_dapm\_to\_component(struct snd\_soc\_dapm\_context \*** *dapm***);**

## ARGUMENTS

*dapm*

The DAPM context to cast to the component

## DESCRIPTION

This function must only be used on DAPM contexts that are known to be part of a component (e.g. in a component driver). Otherwise the behavior is undefined.

## COPYRIGHT
