1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>snd_soc_runtime_set_dai_fmt</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The ALSA Driver API"><link rel="up" href="ch07.html#idp1095227164" title="ASoC Core API"><link rel="prev" href="API-snd-soc-kcontrol-platform.html" title="snd_soc_kcontrol_platform"><link rel="next" href="API-snd-soc-cnew.html" title="snd_soc_cnew"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">snd_soc_runtime_set_dai_fmt</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-snd-soc-kcontrol-platform.html">Prev</a> </td><th width="60%" align="center">ASoC Core API</th><td width="20%" align="right"> <a accesskey="n" href="API-snd-soc-cnew.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-snd-soc-runtime-set-dai-fmt"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>snd_soc_runtime_set_dai_fmt — 2 Change DAI link format for a ASoC runtime 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">snd_soc_runtime_set_dai_fmt </b>(</code></td><td>struct snd_soc_pcm_runtime * <var class="pdparam">rtd</var>, </td></tr><tr><td> </td><td>unsigned int <var class="pdparam">dai_fmt</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1095354172"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>rtd</code></em></span></dt><dd><p> 4 The runtime for which the DAI link format should be changed 5 </p></dd><dt><span class="term"><em class="parameter"><code>dai_fmt</code></em></span></dt><dd><p> 6 The new DAI link format 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1095356836"></a><h2>Description</h2><p> 8 This function updates the DAI link format for all DAIs connected to the DAI 9 link for the specified runtime. 10</p></div><div class="refsect1"><a name="idp1095357548"></a><h2>Note</h2><p> 11 For setups with a static format set the dai_fmt field in the 12 corresponding snd_dai_link struct instead of using this function. 13 </p><p> 14 15 Returns 0 on success, otherwise a negative error code. 16</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-snd-soc-kcontrol-platform.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch07.html#idp1095227164">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-snd-soc-cnew.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">snd_soc_kcontrol_platform</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">snd_soc_cnew</span></td></tr></table></div></body></html> 17