1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ioctl FE_SET_FRONTEND_TUNE_MODE</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_ENABLE_HIGH_LNB_VOLTAGE.html" title="ioctl FE_ENABLE_HIGH_LNB_VOLTAGE"><link rel="next" href="frontend_legacy_dvbv3_api.html" title="DVB Frontend legacy API (a. k. a. DVBv3)"></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_FRONTEND_TUNE_MODE</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="FE_ENABLE_HIGH_LNB_VOLTAGE.html">Prev</a> </td><th width="60%" align="center">Frontend Function Calls</th><td width="20%" align="right"> <a accesskey="n" href="frontend_legacy_dvbv3_api.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="FE_SET_FRONTEND_TUNE_MODE"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>FE_SET_FRONTEND_TUNE_MODE — Allow setting tuner mode flags to the frontend.</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>unsigned int <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.5.5.12.14.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_FRONTEND_TUNE_MODE</p></dd><dt><span class="term"><em class="parameter"><code>flags</code></em></span></dt><dd><p>Valid flags:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>0 - normal tune mode</p></li><li class="listitem"><p>FE_TUNE_MODE_ONESHOT - When set, this flag will
2		    disable any zigzagging or other "normal" tuning behaviour.
3		    Additionally, there will be no automatic monitoring of the
4		    lock status, and hence no frontend events will be
5		    generated. If a frontend device is closed, this flag will
6		    be automatically turned off when the device is reopened
7		    read-write.</p></li></ul></div></dd></dl></div></div><div class="refsect1"><a name="id-1.5.5.12.14.5"></a><h2>Description</h2><p>Allow setting tuner mode flags to the frontend, between 0 (normal)
8	or FE_TUNE_MODE_ONESHOT mode</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><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="FE_ENABLE_HIGH_LNB_VOLTAGE.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="frontend_legacy_dvbv3_api.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ioctl FE_ENABLE_HIGH_LNB_VOLTAGE </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> DVB Frontend legacy API (a. k. a. DVBv3)</td></tr></table></div></body></html>
9