---
name: "snd_soc_dapm_to_platform"
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_platform"
---

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

Casts a DAPM context to the platform it is embedded in

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

*dapm*

The DAPM context to cast to the platform.

## DESCRIPTION

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

## COPYRIGHT
