1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ALSA project - the C library reference: /home/alsa/tmp/cvs/alsa-lib/src/control/tlv.c File Reference</title>
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<link href="tabs.css" rel="stylesheet" type="text/css"></head><body>
7
<!-- Generated by Doxygen 1.5.0 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li><a href="modules.html"><span>Modules</span></a></li>
12
<li><a href="annotated.html"><span>Data Structures</span></a></li>
13
<li id="current"><a href="files.html"><span>Files</span></a></li>
14
<li><a href="pages.html"><span>Related Pages</span></a></li>
15
<li><a href="examples.html"><span>Examples</span></a></li>
19
<li><a href="files.html"><span>File List</span></a></li>
20
<li><a href="globals.html"><span>Globals</span></a></li>
22
<h1>/home/alsa/tmp/cvs/alsa-lib/src/control/tlv.c File Reference</h1>dB conversion functions from control TLV information <a href="#_details">More...</a>
24
<table border="0" cellpadding="0" cellspacing="0">
27
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
28
<tr><td class="memItemLeft" align="right" nowrap="nowrap" 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>
30
<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>
31
<tr><td class="memItemLeft" align="right" nowrap="nowrap" 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>
33
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the dB min/max values. <a href="group___control.html#g76f3f99eeb0890aa9216afb33cb9c381"></a><br></td></tr>
34
<tr><td class="memItemLeft" align="right" nowrap="nowrap" 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>
36
<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>
37
<tr><td class="memItemLeft" align="right" nowrap="nowrap" 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>
39
<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>
40
<tr><td class="memItemLeft" align="right" nowrap="nowrap" 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>
42
<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>
43
<tr><td class="memItemLeft" align="right" nowrap="nowrap" 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>
45
<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>
46
<tr><td class="memItemLeft" align="right" nowrap="nowrap" 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>
48
<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>
50
</p><hr><a name="_details"></a><h2>Detailed Description</h2>
51
dB conversion functions from control TLV information
53
</p><dl class="author" compact="compact"><dt><b>Author:</b></dt><dd>Takashi Iwai <<a href="mailto:tiwai@suse.de">tiwai@suse.de</a>> </dd></dl>
54
<dl class="date" compact="compact"><dt><b>Date:</b></dt><dd>2007 </dd></dl>
55
<hr size="1"><address style=""><small>Generated on Wed Sep 9 14:37:08 2009 for ALSA project - the C library reference by
56
<a href="http://www.doxygen.org/index.html">
57
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
b'\\ No newline at end of file'