Skip to content

Commit 9df4fc5

Browse files
committed
[media] DocBook: improve documentation for hierarchy
Format it as a table and links it with the legacy API xml. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 903142e commit 9df4fc5

4 files changed

Lines changed: 42 additions & 30 deletions

File tree

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

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -951,15 +951,43 @@ typedef enum atscmh_sccc_code_mode {
951951
<section id="DTV-HIERARCHY">
952952
<title><constant>DTV_HIERARCHY</constant></title>
953953
<para>Frontend hierarchy</para>
954-
<programlisting>
955-
typedef enum fe_hierarchy {
956-
HIERARCHY_NONE,
957-
HIERARCHY_1,
958-
HIERARCHY_2,
959-
HIERARCHY_4,
960-
HIERARCHY_AUTO
961-
} fe_hierarchy_t;
962-
</programlisting>
954+
955+
956+
<section id="fe-hierarchy-t">
957+
<title>Frontend hierarchy</title>
958+
959+
<table pgwide="1" frame="none" id="fe-hierarchy">
960+
<title>enum fe_hierarchy</title>
961+
<tgroup cols="2">
962+
&cs-def;
963+
<thead>
964+
<row>
965+
<entry>ID</entry>
966+
<entry>Description</entry>
967+
</row>
968+
</thead>
969+
<tbody valign="top">
970+
<row>
971+
<entry>HIERARCHY_NONE</entry>
972+
<entry>No hierarchy</entry>
973+
</row><row>
974+
<entry>HIERARCHY_AUTO</entry>
975+
<entry>Autodetect hierarchy (if supported)</entry>
976+
</row><row>
977+
<entry>HIERARCHY_1</entry>
978+
<entry>Hierarchy 1</entry>
979+
</row><row>
980+
<entry>HIERARCHY_2</entry>
981+
<entry>Hierarchy 2</entry>
982+
</row><row>
983+
<entry>HIERARCHY_4</entry>
984+
<entry>Hierarchy 4</entry>
985+
</row>
986+
</tbody>
987+
</tgroup>
988+
</table>
989+
</section>
990+
963991
</section>
964992
<section id="DTV-STREAM-ID">
965993
<title><constant>DTV_STREAM_ID</constant></title>

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,6 @@ specification is available at
5656

5757
&sub-dvbproperty;
5858

59-
<section>
60-
<title>More OFDM parameters</title>
61-
62-
<section id="fe-hierarchy-t">
63-
<title>frontend hierarchy</title>
64-
<programlisting>
65-
typedef enum fe_hierarchy {
66-
HIERARCHY_NONE,
67-
HIERARCHY_1,
68-
HIERARCHY_2,
69-
HIERARCHY_4,
70-
HIERARCHY_AUTO
71-
} fe_hierarchy_t;
72-
</programlisting>
73-
</section>
74-
75-
</section>
76-
7759
<section id="frontend_fcalls">
7860
<title>Frontend Function Calls</title>
7961

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ struct dvb_vsb_parameters {
183183
&fe-modulation-t; constellation; /&#x22C6; modulation type (see above) &#x22C6;/
184184
&fe-transmit-mode-t; transmission_mode;
185185
&fe-guard-interval-t; guard_interval;
186-
fe_hierarchy_t hierarchy_information;
186+
&fe-hierarchy-t; hierarchy_information;
187187
};
188188
</programlisting>
189189
</section>

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,15 @@ enum fe_guard_interval {
244244

245245
typedef enum fe_guard_interval fe_guard_interval_t;
246246

247-
typedef enum fe_hierarchy {
247+
enum fe_hierarchy {
248248
HIERARCHY_NONE,
249249
HIERARCHY_1,
250250
HIERARCHY_2,
251251
HIERARCHY_4,
252252
HIERARCHY_AUTO
253-
} fe_hierarchy_t;
253+
};
254+
255+
typedef enum fe_hierarchy fe_hierarchy_t;
254256

255257
enum fe_interleaving {
256258
INTERLEAVING_NONE,

0 commit comments

Comments
 (0)