1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>snd_ac97_mixer</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="ch03s02.html" title="AC97 Codec API"><link rel="prev" href="API-snd-ac97-bus.html" title="snd_ac97_bus"><link rel="next" href="API-snd-ac97-update-power.html" title="snd_ac97_update_power"></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_ac97_mixer</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-snd-ac97-bus.html">Prev</a> </td><th width="60%" align="center">AC97 Codec API</th><td width="20%" align="right"> <a accesskey="n" href="API-snd-ac97-update-power.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-snd-ac97-mixer"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>snd_ac97_mixer — 2 create an Codec97 component 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_ac97_mixer </b>(</code></td><td>struct snd_ac97_bus * <var class="pdparam">bus</var>, </td></tr><tr><td> </td><td>struct snd_ac97_template * <var class="pdparam">template</var>, </td></tr><tr><td> </td><td>struct snd_ac97 ** <var class="pdparam">rac97</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1094719548"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>bus</code></em></span></dt><dd><p> 4 the AC97 bus which codec is attached to 5 </p></dd><dt><span class="term"><em class="parameter"><code>template</code></em></span></dt><dd><p> 6 the template of ac97, including index, callbacks and 7 the private data. 8 </p></dd><dt><span class="term"><em class="parameter"><code>rac97</code></em></span></dt><dd><p> 9 the pointer to store the new ac97 instance. 10 </p></dd></dl></div></div><div class="refsect1"><a name="idp1094723292"></a><h2>Description</h2><p> 11 Creates an Codec97 component. An struct snd_ac97 instance is newly 12 allocated and initialized from the template. The codec 13 is then initialized by the standard procedure. 14 </p><p> 15 16 The template must include the codec number (num) and address (addr), 17 and the private data (private_data). 18 </p><p> 19 20 The ac97 instance is registered as a low-level device, so you don't 21 have to release it manually. 22</p></div><div class="refsect1"><a name="idp1094724572"></a><h2>Return</h2><p> 23 Zero if successful, or a negative error code on failure. 24</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-ac97-bus.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03s02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-snd-ac97-update-power.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">snd_ac97_bus</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_ac97_update_power</span></td></tr></table></div></body></html> 25