File: //usr/share/doc/alsa-lib-devel-1.0.17/lib64/html/tlv_8c.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ALSA project - the C library reference: /builddir/build/BUILD/alsa-lib-1.0.17a/src/control/tlv.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul></div>
<h1>/builddir/build/BUILD/alsa-lib-1.0.17a/src/control/tlv.c File Reference</h1>dB conversion functions from control TLV information <a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group___control.html#gf898227141d761cb364068dc853f44d8">snd_tlv_parse_dB_info</a> (unsigned int *tlv, unsigned int tlv_size, unsigned int **db_tlvp)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse TLV stream and retrieve dB information. <a href="group___control.html#gf898227141d761cb364068dc853f44d8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group___control.html#g76f3f99eeb0890aa9216afb33cb9c381">snd_tlv_get_dB_range</a> (unsigned int *tlv, long rangemin, long rangemax, long *min, long *max)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the dB min/max values. <a href="group___control.html#g76f3f99eeb0890aa9216afb33cb9c381"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group___control.html#g80e50c16b309e410fdfc7e7ba6a5b3f4">snd_tlv_convert_to_dB</a> (unsigned int *tlv, long rangemin, long rangemax, long volume, long *db_gain)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert the given raw volume value to a dB gain. <a href="group___control.html#g80e50c16b309e410fdfc7e7ba6a5b3f4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group___control.html#gb3880fdd033f5f93174ead930b7bdf6d">snd_tlv_convert_from_dB</a> (unsigned int *tlv, long rangemin, long rangemax, long db_gain, long *value, int xdir)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert from dB gain to the corresponding raw value. <a href="group___control.html#gb3880fdd033f5f93174ead930b7bdf6d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group___control.html#g1fabb04772efb2ea2c07ac1eed4764ae">snd_ctl_get_dB_range</a> (<a class="el" href="group___control.html#g6fef7f4892f9960f41ead15ef8994aa0">snd_ctl_t</a> *ctl, const <a class="el" href="group___control.html#gd91a3e04a25060e07917389417d474e4">snd_ctl_elem_id_t</a> *id, long *min, long *max)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the dB min/max values on the given control element. <a href="group___control.html#g1fabb04772efb2ea2c07ac1eed4764ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group___control.html#g11dfbbc8686e67ebb3c7b96afe371ac0">snd_ctl_convert_to_dB</a> (<a class="el" href="group___control.html#g6fef7f4892f9960f41ead15ef8994aa0">snd_ctl_t</a> *ctl, const <a class="el" href="group___control.html#gd91a3e04a25060e07917389417d474e4">snd_ctl_elem_id_t</a> *id, long volume, long *db_gain)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert the volume value to dB on the given control element. <a href="group___control.html#g11dfbbc8686e67ebb3c7b96afe371ac0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group___control.html#gc9dae50da43354d955cba7859d419e75">snd_ctl_convert_from_dB</a> (<a class="el" href="group___control.html#g6fef7f4892f9960f41ead15ef8994aa0">snd_ctl_t</a> *ctl, const <a class="el" href="group___control.html#gd91a3e04a25060e07917389417d474e4">snd_ctl_elem_id_t</a> *id, long db_gain, long *value, int xdir)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert from dB gain to the raw volume value on the given control element. <a href="group___control.html#gc9dae50da43354d955cba7859d419e75"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
dB conversion functions from control TLV information
<p>
<dl compact><dt><b>Author:</b></dt><dd>Takashi Iwai <<a href="mailto:tiwai@suse.de">tiwai@suse.de</a>> </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2007 </dd></dl>
<hr size="1"><address style="align: right;"><small>Generated on Tue Jan 20 22:42:10 2009 for ALSA project - the C library reference by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>