1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>snd_ac97_tune_hardware</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-resume.html" title="snd_ac97_resume"><link rel="next" href="API-snd-ac97-set-rate.html" title="snd_ac97_set_rate"></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_tune_hardware</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-snd-ac97-resume.html">Prev</a>&#160;</td><th width="60%" align="center">AC97 Codec API</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-snd-ac97-set-rate.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-snd-ac97-tune-hardware"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>snd_ac97_tune_hardware &#8212; 
2     tune up the hardware
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_tune_hardware </b>(</code></td><td>struct snd_ac97 * <var class="pdparam">ac97</var>, </td></tr><tr><td>&#160;</td><td>const struct ac97_quirk * <var class="pdparam">quirk</var>, </td></tr><tr><td>&#160;</td><td>const char * <var class="pdparam">override</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1094755564"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ac97</code></em></span></dt><dd><p>
4     the ac97 instance
5    </p></dd><dt><span class="term"><em class="parameter"><code>quirk</code></em></span></dt><dd><p>
6     quirk list
7    </p></dd><dt><span class="term"><em class="parameter"><code>override</code></em></span></dt><dd><p>
8     explicit quirk value (overrides the list if non-NULL)
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1094759252"></a><h2>Description</h2><p>
10   Do some workaround for each pci device, such as renaming of the
11   headphone (true line-out) control as <span class="quote">&#8220;<span class="quote">Master</span>&#8221;</span>.
12   The quirk-list must be terminated with a zero-filled entry.
13</p></div><div class="refsect1"><a name="idp1094760244"></a><h2>Return</h2><p>
14   Zero if successful, or a negative error code on failure.
15</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-resume.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch03s02.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-snd-ac97-set-rate.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">snd_ac97_resume</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">snd_ac97_set_rate</span></td></tr></table></div></body></html>
16