---
name: "snd_soc_register_dai"
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_register_dai"
---

# snd\_soc\_register\_dai(9)

Register a DAI dynamically & create its widgets

## NAME

snd\_soc\_register\_dai - Register a DAI dynamically & create its widgets

## SYNOPSIS

**int snd\_soc\_register\_dai(struct snd\_soc\_component \*** *component***, struct snd\_soc\_dai\_driver \*** *dai\_drv***);**

## ARGUMENTS

*component*

The component the DAIs are registered for

*dai\_drv*

DAI driver to use for the DAI

## DESCRIPTION

Topology can use this API to register DAIs when probing a component. These DAIs's widgets will be freed in the card cleanup and the DAIs will be freed in the component cleanup.

## COPYRIGHT
