Merge branch 'for-5.11/elecom' into for-linus
[linux-2.6-microblaze.git] / Documentation / userspace-api / media / dvb / fe-dishnetwork-send-legacy-cmd.rst
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 ******************************
7 FE_DISHNETWORK_SEND_LEGACY_CMD
8 ******************************
9
10 Name
11 ====
12
13 FE_DISHNETWORK_SEND_LEGACY_CMD
14
15 Synopsis
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
22 Arguments
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
31 Description
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
38 It provides a non-standard method for selecting Diseqc voltage on the
39 frontend, for Dish Network legacy switches.
40
41 As support for this ioctl were added in 2004, this means that such
42 dishes were already legacy in 2004.
43
44 Return Value
45 ============
46
47 On success 0 is returned.
48
49 On error -1 is returned, and the ``errno`` variable is set
50 appropriately.
51
52 Generic error codes are described at the
53 :ref:`Generic Error Codes <gen-errors>` chapter.