blob: 9f71b39de0c288ecc93303883c2a4af925898895 [file] [log] [blame]
Markus Heiser5377d912016-06-30 15:18:56 +02001.. -*- coding: utf-8; mode: rst -*-
2
3.. _FE_DISHNETWORK_SEND_LEGACY_CMD:
4
5******************************
6FE_DISHNETWORK_SEND_LEGACY_CMD
7******************************
8
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -03009Name
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030010====
Markus Heiser5377d912016-06-30 15:18:56 +020011
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030012FE_DISHNETWORK_SEND_LEGACY_CMD
Markus Heiser5377d912016-06-30 15:18:56 +020013
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030014
15Synopsis
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030016========
Markus Heiser5377d912016-06-30 15:18:56 +020017
Mauro Carvalho Chehab5929cb12016-07-05 15:22:59 -030018.. cpp:function:: int ioctl(int fd, int request = FE_DISHNETWORK_SEND_LEGACY_CMD, unsigned long cmd)
Markus Heiser5377d912016-06-30 15:18:56 +020019
Markus Heiser5377d912016-06-30 15:18:56 +020020
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030021Arguments
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030022=========
Markus Heiser5377d912016-06-30 15:18:56 +020023
24.. flat-table::
25 :header-rows: 0
26 :stub-columns: 0
27
28
29 - .. row 1
30
31 - unsigned long cmd
32
33 - sends the specified raw cmd to the dish via DISEqC.
34
35
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030036Description
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030037===========
38
39WARNING: This is a very obscure legacy command, used only at stv0299
40driver. Should not be used on newer drivers.
41
42It provides a non-standard method for selecting Diseqc voltage on the
43frontend, for Dish Network legacy switches.
44
45As support for this ioctl were added in 2004, this means that such
46dishes were already legacy in 2004.
47
48
Mauro Carvalho Chehab15e7d612016-07-05 15:14:35 -030049Return Value
Mauro Carvalho Chehab586027c2016-07-05 07:58:48 -030050============
Markus Heiser5377d912016-06-30 15:18:56 +020051
52On success 0 is returned, on error -1 and the ``errno`` variable is set
53appropriately. The generic error codes are described at the
54:ref:`Generic Error Codes <gen-errors>` chapter.