1 .. -*- coding: utf-8; mode: rst -*-
12 FE_SET_TONE - Sets/resets the generation of the continuous 22kHz tone.
18 .. c:function:: int ioctl( int fd, FE_SET_TONE, enum fe_sec_tone_mode *tone )
26 File descriptor returned by :ref:`open() <frontend_f_open>`.
29 pointer to enum :c:type:`fe_sec_tone_mode`
35 This ioctl is used to set the generation of the continuous 22kHz tone.
36 This call requires read/write permissions.
38 Usually, satellite antenna subsystems require that the digital TV device
39 to send a 22kHz tone in order to select between high/low band on some
40 dual-band LNBf. It is also used to send signals to DiSEqC equipment, but
41 this is done using the DiSEqC ioctls.
43 .. attention:: If more than one device is connected to the same antenna,
44 setting a tone may interfere on other devices, as they may lose the
45 capability of selecting the band. So, it is recommended that applications
46 would change to SEC_TONE_OFF when the device is not used.
48 .. c:type:: fe_sec_tone_mode
50 .. flat-table:: enum fe_sec_tone_mode
67 - Sends a 22kHz tone burst to the antenna
75 - Don't send a 22kHz tone to the antenna (except if the
76 FE_DISEQC_* ioctls are called)
82 On success 0 is returned, on error -1 and the ``errno`` variable is set
83 appropriately. The generic error codes are described at the
84 :ref:`Generic Error Codes <gen-errors>` chapter.