---
name: "snd_soc_runtime_set_dai_fmt"
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_runtime_set_dai_fmt"
---

# snd\_soc\_runtime\_set\_dai\_fmt(9)

Change DAI link format for a ASoC runtime

## NAME

snd\_soc\_runtime\_set\_dai\_fmt - Change DAI link format for a ASoC runtime

## SYNOPSIS

**int snd\_soc\_runtime\_set\_dai\_fmt(struct snd\_soc\_pcm\_runtime \*** *rtd***, unsigned int** *dai\_fmt***);**

## ARGUMENTS

*rtd*

The runtime for which the DAI link format should be changed

*dai\_fmt*

The new DAI link format

## DESCRIPTION

This function updates the DAI link format for all DAIs connected to the DAI link for the specified runtime.

## NOTE

For setups with a static format set the dai\_fmt field in the corresponding snd\_dai\_link struct instead of using this function.

Returns 0 on success, otherwise a negative error code.

## COPYRIGHT
