Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[cascardo/linux.git] / Documentation / media / uapi / dvb / fe-dishnetwork-send-legacy-cmd.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _FE_DISHNETWORK_SEND_LEGACY_CMD:
4
5 ******************************
6 FE_DISHNETWORK_SEND_LEGACY_CMD
7 ******************************
8
9 Name
10 ====
11
12 FE_DISHNETWORK_SEND_LEGACY_CMD
13
14
15 Synopsis
16 ========
17
18 .. c:function:: int  ioctl(int fd, FE_DISHNETWORK_SEND_LEGACY_CMD, unsigned long cmd)
19     :name: FE_DISHNETWORK_SEND_LEGACY_CMD
20
21
22 Arguments
23 =========
24
25 ``fd``
26     File descriptor returned by :c:func:`open() <dvb-fe-open>`.
27
28 ``cmd``
29     Sends the specified raw cmd to the dish via DISEqC.
30
31
32 Description
33 ===========
34
35 .. warning::
36    This is a very obscure legacy command, used only at stv0299
37    driver. Should not be used on newer drivers.
38
39 It provides a non-standard method for selecting Diseqc voltage on the
40 frontend, for Dish Network legacy switches.
41
42 As support for this ioctl were added in 2004, this means that such
43 dishes were already legacy in 2004.
44
45
46 Return Value
47 ============
48
49 On success 0 is returned, on error -1 and the ``errno`` variable is set
50 appropriately. The generic error codes are described at the
51 :ref:`Generic Error Codes <gen-errors>` chapter.