---
name: "snd_soc_dapm_add_routes"
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_add_routes"
---

# snd\_soc\_dapm\_add\_routes(9)

Add routes between DAPM widgets

## NAME

snd\_soc\_dapm\_add\_routes - Add routes between DAPM widgets

## SYNOPSIS

**int snd\_soc\_dapm\_add\_routes(struct snd\_soc\_dapm\_context \*** *dapm***, const struct snd\_soc\_dapm\_route \*** *route***, int** *num***);**

## ARGUMENTS

*dapm*

DAPM context

*route*

audio routes

*num*

number of routes

## DESCRIPTION

Connects 2 dapm widgets together via a named audio path. The sink is the widget receiving the audio signal, whilst the source is the sender of the audio signal.

Returns 0 for success else error. On error all resources can be freed with a call to **snd\_soc\_card\_free**.

## COPYRIGHT
