56 lines · plain
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later2.. c:namespace:: DTV.fe3 4.. _FE_SET_FRONTEND_TUNE_MODE:5 6*******************************7ioctl FE_SET_FRONTEND_TUNE_MODE8*******************************9 10Name11====12 13FE_SET_FRONTEND_TUNE_MODE - Allow setting tuner mode flags to the frontend.14 15Synopsis16========17 18.. c:macro:: FE_SET_FRONTEND_TUNE_MODE19 20``int ioctl(int fd, FE_SET_FRONTEND_TUNE_MODE, unsigned int flags)``21 22Arguments23=========24 25``fd``26 File descriptor returned by :c:func:`open()`.27 28``flags``29 Valid flags:30 31 - 0 - normal tune mode32 33 - ``FE_TUNE_MODE_ONESHOT`` - When set, this flag will disable any34 zigzagging or other "normal" tuning behaviour. Additionally,35 there will be no automatic monitoring of the lock status, and36 hence no frontend events will be generated. If a frontend device37 is closed, this flag will be automatically turned off when the38 device is reopened read-write.39 40Description41===========42 43Allow setting tuner mode flags to the frontend, between 0 (normal) or44``FE_TUNE_MODE_ONESHOT`` mode45 46Return Value47============48 49On success 0 is returned.50 51On error -1 is returned, and the ``errno`` variable is set52appropriately.53 54Generic error codes are described at the55:ref:`Generic Error Codes <gen-errors>` chapter.56