1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ioctl FE_SET_TONE</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="LINUX MEDIA INFRASTRUCTURE API"><link rel="up" href="frontend_fcalls.html" title="Frontend Function Calls"><link rel="prev" href="FE_DISEQC_SEND_BURST.html" title="ioctl FE_DISEQC_SEND_BURST"><link rel="next" href="FE_SET_VOLTAGE.html" title="ioctl FE_SET_VOLTAGE"></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">ioctl FE_SET_TONE</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="FE_DISEQC_SEND_BURST.html">Prev</a> </td><th width="60%" align="center">Frontend Function Calls</th><td width="20%" align="right"> <a accesskey="n" href="FE_SET_VOLTAGE.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="FE_SET_TONE"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>FE_SET_TONE — Sets/resets the generation of the continuous 22kHz tone.</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">ioctl</b>(</code></td><td>int <var class="pdparam">fd</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">request</var>, </td></tr><tr><td> </td><td>enum fe_sec_tone_mode *<var class="pdparam">tone</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.5.5.12.11.4"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>fd</code></em></span></dt><dd><p>File descriptor returned by <a class="link" href="frontend_f_open.html" title="DVB frontend open()"><code class="function">open()</code></a>.</p></dd><dt><span class="term"><em class="parameter"><code>request</code></em></span></dt><dd><p>FE_SET_TONE</p></dd><dt><span class="term"><em class="parameter"><code>tone</code></em></span></dt><dd><p>pointer to enum <a class="link" href="FE_SET_TONE.html#fe-sec-tone-mode" title="Table 9.23. enum fe_sec_tone_mode">fe_sec_tone_mode</a></p></dd></dl></div></div><div class="refsect1"><a name="id-1.5.5.12.11.5"></a><h2>Description</h2><p>This ioctl is used to set the generation of the continuous 22kHz tone.
2    This call requires read/write permissions.</p><p>Usually, satellite antenna subsystems require that the digital TV
3    device to send a 22kHz tone in order to select between high/low band on
4    some dual-band LNBf. It is also used to send signals to DiSEqC equipment,
5    but this is done using the DiSEqC ioctls.</p><p>NOTE: if more than one device is connected to the same antenna,
6    setting a tone may interfere on other devices, as they may lose
7    the capability of selecting the band. So, it is recommended that
8    applications would change to SEC_TONE_OFF when the device is not used.</p><p>RETURN VALUE</p><p>On success <span class="returnvalue">0</span> is returned, on error <span class="returnvalue">-1</span> and the <code class="varname">errno</code> variable is set appropriately. The generic error codes are described at the <a class="link" href="gen_errors.html#gen-errors" title="Table 17.1. Generic error codes">Generic Error Codes</a> chapter.</p></div><div class="refsect1"><a name="fe-sec-tone-mode-t"></a><h2>enum fe_sec_tone_mode</h2><div class="table"><a name="fe-sec-tone-mode"></a><p class="title"><b>Table 9.23. enum fe_sec_tone_mode</b></p><div class="table-contents"><table summary="enum fe_sec_tone_mode" width="100%" border="0"><colgroup><col class="c1"><col class="c2"></colgroup><thead><tr><th>ID</th><th>Description</th></tr></thead><tbody valign="top"><tr><td align="char" valign="top"><a name="SEC-TONE-ON"></a><code class="constant">SEC_TONE_ON</code></td><td align="char" valign="top">Sends a 22kHz tone burst to the antenna</td></tr><tr><td align="char" valign="top"><a name="SEC-TONE-OFF"></a><code class="constant">SEC_TONE_OFF</code></td><td align="char" valign="top">Don't send a 22kHz tone to the antenna
9		(except if the FE_DISEQC_* ioctls are called)</td></tr></tbody></table></div></div><br class="table-break"></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="FE_DISEQC_SEND_BURST.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="frontend_fcalls.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="FE_SET_VOLTAGE.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ioctl FE_DISEQC_SEND_BURST </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ioctl FE_SET_VOLTAGE</td></tr></table></div></body></html>
10