1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>snd_soc_dapm_force_bias_level</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="ch07s02.html" title="ASoC DAPM API"><link rel="prev" href="API-snd-soc-dapm-kcontrol-dapm.html" title="snd_soc_dapm_kcontrol_dapm"><link rel="next" href="API-snd-soc-dapm-sync-unlocked.html" title="snd_soc_dapm_sync_unlocked"></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_dapm_force_bias_level</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-snd-soc-dapm-kcontrol-dapm.html">Prev</a> </td><th width="60%" align="center">ASoC DAPM API</th><td width="20%" align="right"> <a accesskey="n" href="API-snd-soc-dapm-sync-unlocked.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-snd-soc-dapm-force-bias-level"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>snd_soc_dapm_force_bias_level — 
2     Sets the DAPM bias level
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_dapm_force_bias_level </b>(</code></td><td>struct snd_soc_dapm_context * <var class="pdparam">dapm</var>, </td></tr><tr><td> </td><td>enum snd_soc_bias_level <var class="pdparam">level</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.9.3.4.5"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dapm</code></em></span></dt><dd><p>
4     The DAPM context for which to set the level
5    </p></dd><dt><span class="term"><em class="parameter"><code>level</code></em></span></dt><dd><p>
6     The level to set
7    </p></dd></dl></div></div><div class="refsect1"><a name="id-1.9.3.4.6"></a><h2>Description</h2><p>
8   Forces the DAPM bias level to a specific state. It will call the bias level
9   callback of DAPM context with the specified level. This will even happen if
10   the context is already at the same level. Furthermore it will not go through
11   the normal bias level sequencing, meaning any intermediate states between the
12   current and the target state will not be entered.
13   </p><p>
14
15   Note that the change in bias level is only temporary and the next time
16   <code class="function"><a class="link" href="API-snd-soc-dapm-sync.html" title="snd_soc_dapm_sync">snd_soc_dapm_sync</a></code> is called the state will be set to the level as
17   determined by the DAPM core. The function is mainly intended to be used to
18   used during probe or resume from suspend to power up the device so
19   initialization can be done, before the DAPM core takes over.
20</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-dapm-kcontrol-dapm.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch07s02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-snd-soc-dapm-sync-unlocked.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">snd_soc_dapm_kcontrol_dapm</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_dapm_sync_unlocked</span></td></tr></table></div></body></html>
21