1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Multiple Codecs</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Writing an ALSA Driver"><link rel="up" href="api-ac97.html" title="Chapter&#160;7.&#160;API for AC97 Codec"><link rel="prev" href="api-ac97-proc-files.html" title="Proc Files"><link rel="next" href="midi-interface.html" title="Chapter&#160;8.&#160;MIDI (MPU401-UART) Interface"></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">Multiple Codecs</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="api-ac97-proc-files.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;7.&#160;API for AC97 Codec</th><td width="20%" align="right">&#160;<a accesskey="n" href="midi-interface.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="api-ac97-multiple-codecs"></a>Multiple Codecs</h2></div></div></div><p>
2        When there are several codecs on the same card, you need to
3      call <code class="function">snd_ac97_mixer()</code> multiple times with
4      ac97.num=1 or greater. The <em class="structfield"><code>num</code></em> field
5      specifies the codec number. 
6      </p><p>
7        If you set up multiple codecs, you either need to write
8      different callbacks for each codec or check
9      ac97-&gt;num in the callback routines. 
10      </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="api-ac97-proc-files.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="api-ac97.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="midi-interface.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Proc Files&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Chapter&#160;8.&#160;MIDI (MPU401-UART) Interface</td></tr></table></div></body></html>
11