18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci.. c:namespace:: DTV.fe
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci.. _FE_GET_PROPERTY:
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci**************************************
78c2ecf20Sopenharmony_ciioctl FE_SET_PROPERTY, FE_GET_PROPERTY
88c2ecf20Sopenharmony_ci**************************************
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciName
118c2ecf20Sopenharmony_ci====
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciFE_SET_PROPERTY - FE_GET_PROPERTY - FE_SET_PROPERTY sets one or more frontend properties. - FE_GET_PROPERTY returns one or more frontend properties.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciSynopsis
168c2ecf20Sopenharmony_ci========
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci.. c:macro:: FE_GET_PROPERTY
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci``int ioctl(int fd, FE_GET_PROPERTY, struct dtv_properties *argp)``
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci.. c:macro:: FE_SET_PROPERTY
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci``int ioctl(int fd, FE_SET_PROPERTY, struct dtv_properties *argp)``
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciArguments
278c2ecf20Sopenharmony_ci=========
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci``fd``
308c2ecf20Sopenharmony_ci    File descriptor returned by :c:func:`open()`.
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci``argp``
338c2ecf20Sopenharmony_ci    Pointer to struct :c:type:`dtv_properties`.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciDescription
368c2ecf20Sopenharmony_ci===========
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciAll Digital TV frontend devices support the ``FE_SET_PROPERTY`` and
398c2ecf20Sopenharmony_ci``FE_GET_PROPERTY`` ioctls. The supported properties and statistics
408c2ecf20Sopenharmony_cidepends on the delivery system and on the device:
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci-  ``FE_SET_PROPERTY:``
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci   -  This ioctl is used to set one or more frontend properties.
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci   -  This is the basic command to request the frontend to tune into
478c2ecf20Sopenharmony_ci      some frequency and to start decoding the digital TV signal.
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci   -  This call requires read/write access to the device.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci.. note::
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci   At return, the values aren't updated to reflect the actual
548c2ecf20Sopenharmony_ci   parameters used. If the actual parameters are needed, an explicit
558c2ecf20Sopenharmony_ci   call to ``FE_GET_PROPERTY`` is needed.
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci-  ``FE_GET_PROPERTY:``
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci   -  This ioctl is used to get properties and statistics from the
608c2ecf20Sopenharmony_ci      frontend.
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci   -  No properties are changed, and statistics aren't reset.
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci   -  This call only requires read-only access to the device.
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ciReturn Value
678c2ecf20Sopenharmony_ci============
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ciOn success 0 is returned.
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ciOn error -1 is returned, and the ``errno`` variable is set
728c2ecf20Sopenharmony_ciappropriately.
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ciGeneric error codes are described at the
758c2ecf20Sopenharmony_ci:ref:`Generic Error Codes <gen-errors>` chapter.
76