xref: /linux/Documentation/userspace-api/media/dvb/fe-dishnetwork-send-legacy-cmd.rst (revision e3b2949e3fa2fd8c19cd5fbb0424d38f70a70e9c)
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2.. c:namespace:: DTV.fe
3
4.. _FE_DISHNETWORK_SEND_LEGACY_CMD:
5
6******************************
7FE_DISHNETWORK_SEND_LEGACY_CMD
8******************************
9
10Name
11====
12
13FE_DISHNETWORK_SEND_LEGACY_CMD
14
15Synopsis
16========
17
18.. c:macro:: FE_DISHNETWORK_SEND_LEGACY_CMD
19
20``int ioctl(int fd, FE_DISHNETWORK_SEND_LEGACY_CMD, unsigned long cmd)``
21
22Arguments
23=========
24
25``fd``
26    File descriptor returned by :c:func:`open()`.
27
28``cmd``
29    Sends the specified raw cmd to the dish via DISEqC.
30
31Description
32===========
33
34.. warning::
35   This is a very obscure legacy command, used only at stv0299
36   driver. Should not be used on newer drivers.
37
38It provides a non-standard method for selecting Diseqc voltage on the
39frontend, for Dish Network legacy switches.
40
41As support for this ioctl were added in 2004, this means that such
42dishes were already legacy in 2004.
43
44Return Value
45============
46
47On success 0 is returned.
48
49On error -1 is returned, and the ``errno`` variable is set
50appropriately.
51
52Generic error codes are described at the
53:ref:`Generic Error Codes <gen-errors>` chapter.
54