2016-06-30 21:18:56 +08:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _FE_SET_FRONTEND_TUNE_MODE:
|
|
|
|
|
|
|
|
*******************************
|
|
|
|
ioctl FE_SET_FRONTEND_TUNE_MODE
|
|
|
|
*******************************
|
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Name
|
2016-07-05 18:58:48 +08:00
|
|
|
====
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
FE_SET_FRONTEND_TUNE_MODE - Allow setting tuner mode flags to the frontend.
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
|
|
|
|
Synopsis
|
2016-06-30 21:18:56 +08:00
|
|
|
========
|
|
|
|
|
2016-08-20 03:56:15 +08:00
|
|
|
.. c:function:: int ioctl( int fd, FE_SET_FRONTEND_TUNE_MODE, unsigned int flags )
|
|
|
|
:name: FE_SET_FRONTEND_TUNE_MODE
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Arguments
|
2016-06-30 21:18:56 +08:00
|
|
|
=========
|
|
|
|
|
|
|
|
``fd``
|
|
|
|
File descriptor returned by :ref:`open() <frontend_f_open>`.
|
|
|
|
|
|
|
|
``flags``
|
|
|
|
Valid flags:
|
|
|
|
|
|
|
|
- 0 - normal tune mode
|
|
|
|
|
2017-09-02 00:21:49 +08:00
|
|
|
- ``FE_TUNE_MODE_ONESHOT`` - When set, this flag will disable any
|
2016-06-30 21:18:56 +08: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-06 02:14:35 +08:00
|
|
|
Description
|
2016-06-30 21:18:56 +08:00
|
|
|
===========
|
|
|
|
|
|
|
|
Allow setting tuner mode flags to the frontend, between 0 (normal) or
|
2017-09-02 00:21:49 +08:00
|
|
|
``FE_TUNE_MODE_ONESHOT`` mode
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2016-07-05 18:58:48 +08:00
|
|
|
|
2016-07-06 02:14:35 +08:00
|
|
|
Return Value
|
2016-07-05 18:58:48 +08:00
|
|
|
============
|
2016-06-30 21:18:56 +08:00
|
|
|
|
2017-09-02 00:15:43 +08: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 21:18:56 +08:00
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|