69 lines · plain
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later2.. c:namespace:: DTV.fe3 4.. _FE_SET_FRONTEND:5 6***************7FE_SET_FRONTEND8***************9 10.. attention:: This ioctl is deprecated.11 12Name13====14 15FE_SET_FRONTEND16 17Synopsis18========19 20.. c:macro:: FE_SET_FRONTEND21 22``int ioctl(int fd, FE_SET_FRONTEND, struct dvb_frontend_parameters *p)``23 24Arguments25=========26 27``fd``28 File descriptor returned by :c:func:`open()`.29 30``p``31 Points to parameters for tuning operation.32 33Description34===========35 36This ioctl call starts a tuning operation using specified parameters.37The result of this call will be successful if the parameters were valid38and the tuning could be initiated. The result of the tuning operation in39itself, however, will arrive asynchronously as an event (see40documentation for :ref:`FE_GET_EVENT` and41FrontendEvent.) If a new :ref:`FE_SET_FRONTEND`42operation is initiated before the previous one was completed, the43previous operation will be aborted in favor of the new one. This command44requires read/write access to the device.45 46Return Value47============48 49On success 0 is returned.50 51On error -1 is returned, and the ``errno`` variable is set52appropriately.53 54.. tabularcolumns:: |p{2.5cm}|p{15.0cm}|55 56.. flat-table::57 :header-rows: 058 :stub-columns: 059 :widths: 1 1660 61 - .. row 162 63 - ``EINVAL``64 65 - Maximum supported symbol rate reached.66 67Generic error codes are described at the68:ref:`Generic Error Codes <gen-errors>` chapter.69