18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci.. c:namespace:: DTV.fe 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci.. _FE_SET_FRONTEND_TUNE_MODE: 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci******************************* 78c2ecf20Sopenharmony_ciioctl FE_SET_FRONTEND_TUNE_MODE 88c2ecf20Sopenharmony_ci******************************* 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciName 118c2ecf20Sopenharmony_ci==== 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciFE_SET_FRONTEND_TUNE_MODE - Allow setting tuner mode flags to the frontend. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciSynopsis 168c2ecf20Sopenharmony_ci======== 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci.. c:macro:: FE_SET_FRONTEND_TUNE_MODE 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci``int ioctl(int fd, FE_SET_FRONTEND_TUNE_MODE, unsigned int flags)`` 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciArguments 238c2ecf20Sopenharmony_ci========= 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci``fd`` 268c2ecf20Sopenharmony_ci File descriptor returned by :c:func:`open()`. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci``flags`` 298c2ecf20Sopenharmony_ci Valid flags: 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci - 0 - normal tune mode 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci - ``FE_TUNE_MODE_ONESHOT`` - When set, this flag will disable any 348c2ecf20Sopenharmony_ci zigzagging or other "normal" tuning behaviour. Additionally, 358c2ecf20Sopenharmony_ci there will be no automatic monitoring of the lock status, and 368c2ecf20Sopenharmony_ci hence no frontend events will be generated. If a frontend device 378c2ecf20Sopenharmony_ci is closed, this flag will be automatically turned off when the 388c2ecf20Sopenharmony_ci device is reopened read-write. 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ciDescription 418c2ecf20Sopenharmony_ci=========== 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ciAllow setting tuner mode flags to the frontend, between 0 (normal) or 448c2ecf20Sopenharmony_ci``FE_TUNE_MODE_ONESHOT`` mode 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ciReturn Value 478c2ecf20Sopenharmony_ci============ 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciOn success 0 is returned. 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ciOn error -1 is returned, and the ``errno`` variable is set 528c2ecf20Sopenharmony_ciappropriately. 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ciGeneric error codes are described at the 558c2ecf20Sopenharmony_ci:ref:`Generic Error Codes <gen-errors>` chapter. 56