1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>snd_ctl_enum_info</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="ch03.html#idp1094472508" title="General Control Interface"><link rel="prev" href="API-snd-ctl-boolean-stereo-info.html" title="snd_ctl_boolean_stereo_info"><link rel="next" href="ch03s02.html" title="AC97 Codec API"></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_ctl_enum_info</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-snd-ctl-boolean-stereo-info.html">Prev</a>&#160;</td><th width="60%" align="center">General Control Interface</th><td width="20%" align="right">&#160;<a accesskey="n" href="ch03s02.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-snd-ctl-enum-info"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>snd_ctl_enum_info &#8212; 
2     fills the info structure for an enumerated control
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_ctl_enum_info </b>(</code></td><td>struct snd_ctl_elem_info * <var class="pdparam">info</var>, </td></tr><tr><td>&#160;</td><td>unsigned int <var class="pdparam">channels</var>, </td></tr><tr><td>&#160;</td><td>unsigned int <var class="pdparam">items</var>, </td></tr><tr><td>&#160;</td><td>const char *const <var class="pdparam">names[]</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1094631732"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>info</code></em></span></dt><dd><p>
4     the structure to be filled
5    </p></dd><dt><span class="term"><em class="parameter"><code>channels</code></em></span></dt><dd><p>
6     the number of the control's channels; often one
7    </p></dd><dt><span class="term"><em class="parameter"><code>items</code></em></span></dt><dd><p>
8     the number of control values; also the size of <em class="parameter"><code>names</code></em>
9    </p></dd><dt><span class="term"><em class="parameter"><code>names[]</code></em></span></dt><dd><p>
10     an array containing the names of all control values
11    </p></dd></dl></div></div><div class="refsect1"><a name="idp1094636852"></a><h2>Description</h2><p>
12   Sets all required fields in <em class="parameter"><code>info</code></em> to their appropriate values.
13   If the control's accessibility is not the default (readable and writable),
14   the caller has to fill <em class="parameter"><code>info</code></em>-&gt;access.
15</p></div><div class="refsect1"><a name="idp1094638348"></a><h2>Return</h2><p>
16   Zero.
17</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-ctl-boolean-stereo-info.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch03.html#idp1094472508">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="ch03s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">snd_ctl_boolean_stereo_info</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;AC97 Codec API</td></tr></table></div></body></html>
18