2016-06-30 13:18:56 +00:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _FE_SET_FRONTEND_TUNE_MODE:
|
|
|
|
|
|
|
|
*******************************
|
|
|
|
ioctl FE_SET_FRONTEND_TUNE_MODE
|
|
|
|
*******************************
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Name
|
2016-07-05 10:58:48 +00:00
|
|
|
====
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
FE_SET_FRONTEND_TUNE_MODE - Allow setting tuner mode flags to the frontend.
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
|
|
|
|
Synopsis
|
2016-06-30 13:18:56 +00:00
|
|
|
========
|
|
|
|
|
2016-08-19 19:56:15 +00:00
|
|
|
.. c:function:: int ioctl( int fd, FE_SET_FRONTEND_TUNE_MODE, unsigned int flags )
|
|
|
|
:name: FE_SET_FRONTEND_TUNE_MODE
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Arguments
|
2016-06-30 13:18:56 +00:00
|
|
|
=========
|
|
|
|
|
|
|
|
``fd``
|
|
|
|
File descriptor returned by :ref:`open() <frontend_f_open>`.
|
|
|
|
|
|
|
|
``flags``
|
|
|
|
Valid flags:
|
|
|
|
|
|
|
|
- 0 - normal tune mode
|
|
|
|
|
2017-09-01 16:21:49 +00:00
|
|
|
- ``FE_TUNE_MODE_ONESHOT`` - When set, this flag will disable any
|
2016-06-30 13:18:56 +00:00
|
|
|
zigzagging or other "normal" tuning behaviour. Additionally,
|
|
|
|
there will be no automatic monitoring of the lock status, and
|
|
|
|
hence no frontend events will be generated. If a frontend device
|
|
|
|
is closed, this flag will be automatically turned off when the
|
|
|
|
device is reopened read-write.
|
|
|
|
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Description
|
2016-06-30 13:18:56 +00:00
|
|
|
===========
|
|
|
|
|
|
|
|
Allow setting tuner mode flags to the frontend, between 0 (normal) or
|
2017-09-01 16:21:49 +00:00
|
|
|
``FE_TUNE_MODE_ONESHOT`` mode
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Return Value
|
2016-07-05 10:58:48 +00:00
|
|
|
============
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2017-09-01 16:15:43 +00:00
|
|
|
On success 0 is returned.
|
|
|
|
|
|
|
|
On error -1 is returned, and the ``errno`` variable is set
|
|
|
|
appropriately.
|
|
|
|
|
|
|
|
Generic error codes are described at the
|
2016-06-30 13:18:56 +00:00
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|