Skip to content

Commit 81959d9

Browse files
committed
[media] DocBook: better document FE_DISEQC_SEND_BURST ioctl
Use the proper format for FE_DISEQC_SEND_BURST documentation and improve the documentation. Keep the enum fe_sec_mini_cmd description together with the ioctl, as both are used together. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 6dc59e7 commit 81959d9

3 files changed

Lines changed: 91 additions & 68 deletions

File tree

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<refentry id="FE_DISEQC_SEND_BURST">
2+
<refmeta>
3+
<refentrytitle>ioctl FE_DISEQC_SEND_BURST</refentrytitle>
4+
&manvol;
5+
</refmeta>
6+
7+
<refnamediv>
8+
<refname>FE_DISEQC_SEND_BURST</refname>
9+
<refpurpose>Sends a 22KHz tone burst for 2x1 mini DiSEqC satellite selection.</refpurpose>
10+
</refnamediv>
11+
12+
<refsynopsisdiv>
13+
<funcsynopsis>
14+
<funcprototype>
15+
<funcdef>int <function>ioctl</function></funcdef>
16+
<paramdef>int <parameter>fd</parameter></paramdef>
17+
<paramdef>int <parameter>request</parameter></paramdef>
18+
<paramdef>&fe-sec-mini-cmd; *<parameter>tone</parameter></paramdef>
19+
</funcprototype>
20+
</funcsynopsis>
21+
</refsynopsisdiv>
22+
23+
<refsect1>
24+
<title>Arguments</title>
25+
<variablelist>
26+
<varlistentry>
27+
<term><parameter>fd</parameter></term>
28+
<listitem>
29+
<para>&fe_fd;</para>
30+
</listitem>
31+
</varlistentry>
32+
<varlistentry>
33+
<term><parameter>request</parameter></term>
34+
<listitem>
35+
<para>FE_DISEQC_SEND_BURST</para>
36+
</listitem>
37+
</varlistentry>
38+
<varlistentry>
39+
<term><parameter>pointer to &fe-sec-mini-cmd;</parameter></term>
40+
</varlistentry>
41+
</variablelist>
42+
</refsect1>
43+
44+
<refsect1>
45+
<title>Description</title>
46+
47+
<para>This ioctl is used to set the generation of a 22kHz tone burst for mini
48+
DiSEqC satellite
49+
selection for 2x1 switches.
50+
This call requires read/write permissions.</para>
51+
<para>It provides support for what's specified at
52+
<ulink url="http://www.eutelsat.com/files/contributed/satellites/pdf/Diseqc/associated%20docs/simple_tone_burst_detec.pdf">Digital Satellite Equipment Control
53+
(DiSEqC) - Simple "ToneBurst" Detection Circuit specification.</ulink>
54+
</para>
55+
&return-value-dvb;
56+
</refsect1>
57+
58+
<section id="fe-sec-mini-cmd-t">
59+
<title>enum fe_sec_mini_cmd</title>
60+
61+
<table pgwide="1" frame="none" id="fe-sec-mini-cmd">
62+
<title>enum fe_sec_tone_mode</title>
63+
<tgroup cols="2">
64+
&cs-def;
65+
<thead>
66+
<row>
67+
<entry>ID</entry>
68+
<entry>Description</entry>
69+
</row>
70+
</thead>
71+
<tbody valign="top">
72+
<row>
73+
<entry align="char">SEC_MINI_A</entry>
74+
<entry align="char">Sends a mini-DiSEqC 22kHz '0' Tone Burst to
75+
select satellite-A</entry>
76+
</row><row>
77+
<entry align="char">SEC_MINI_B</entry>
78+
<entry align="char">Sends a mini-DiSEqC 22kHz '1' Data Burst to
79+
select satellite-B</entry>
80+
</row>
81+
</tbody>
82+
</tgroup>
83+
</table>
84+
</section>
85+
86+
</refentry>

‎Documentation/DocBook/media/dvb/frontend.xml‎

Lines changed: 1 addition & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,6 @@ specification is available at
7575
</programlisting>
7676
</section>
7777

78-
<section id="fe-sec-mini-cmd-t">
79-
<title>SEC tone burst</title>
80-
81-
<para>The 22KHz tone burst is usually used with non-DiSEqC capable switches to select
82-
between two connected LNBs/satellites. When using DiSEqC epuipment this voltage has to
83-
be switched consistently to the DiSEqC commands as described in the DiSEqC
84-
spec.</para>
85-
<programlisting>
86-
typedef enum fe_sec_mini_cmd {
87-
SEC_MINI_A,
88-
SEC_MINI_B
89-
} fe_sec_mini_cmd_t;
90-
</programlisting>
91-
92-
<para></para>
93-
</section>
94-
9578
<section id="fe-spectral-inversion-t">
9679
<title>frontend spectral inversion</title>
9780
<para>The Inversion field can take one of these values:
@@ -519,55 +502,7 @@ typedef enum fe_hierarchy {
519502
&return-value-dvb;
520503
</section>
521504

522-
<section id="FE_DISEQC_SEND_BURST">
523-
<title>FE_DISEQC_SEND_BURST</title>
524-
<para>DESCRIPTION
525-
</para>
526-
<informaltable><tgroup cols="1"><tbody><row><entry
527-
align="char">
528-
<para>This ioctl call is used to send a 22KHz tone burst.</para>
529-
</entry>
530-
</row></tbody></tgroup></informaltable>
531-
532-
<para>SYNOPSIS
533-
</para>
534-
<informaltable><tgroup cols="1"><tbody><row><entry
535-
align="char">
536-
<para>int ioctl(int fd, int request =
537-
<link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link>, fe_sec_mini_cmd_t burst);</para>
538-
</entry>
539-
</row></tbody></tgroup></informaltable>
540-
541-
<para>PARAMETERS
542-
</para>
543-
<informaltable><tgroup cols="2"><tbody><row><entry
544-
align="char">
545-
<para>int fd</para>
546-
</entry><entry
547-
align="char">
548-
<para>File descriptor returned by a previous call to open().</para>
549-
</entry>
550-
</row><row><entry
551-
align="char">
552-
<para>int request</para>
553-
</entry><entry
554-
align="char">
555-
<para>Equals <link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link> for this command.</para>
556-
</entry>
557-
</row><row><entry
558-
align="char">
559-
<para>fe_sec_mini_cmd_t
560-
burst</para>
561-
</entry><entry
562-
align="char">
563-
<para>burst A or B.</para>
564-
</entry>
565-
</row></tbody></tgroup></informaltable>
566-
567-
&return-value-dvb;
568-
</section>
569-
570-
505+
&sub-fe-diseqc-send-burst;
571506
&sub-fe-set-tone;
572507
&sub-fe-set-voltage;
573508
&sub-fe-enable-high-lnb-voltage;

‎include/uapi/linux/dvb/frontend.h‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ enum fe_sec_tone_mode {
122122
typedef enum fe_sec_tone_mode fe_sec_tone_mode_t;
123123

124124

125-
typedef enum fe_sec_mini_cmd {
125+
enum fe_sec_mini_cmd {
126126
SEC_MINI_A,
127127
SEC_MINI_B
128-
} fe_sec_mini_cmd_t;
128+
};
129+
130+
typedef enum fe_sec_mini_cmd fe_sec_mini_cmd_t;
129131

130132

131133
/**

0 commit comments

Comments
 (0)