Skip to content

Commit b174fb7

Browse files
committed
[media] DocBook: move fe_bandwidth to the frontend legacy section
fe_bandwidth/fe_bandwidth_t is used only on DVBv3 API. So, move it to the frontend legacy xml, and convert it into a table. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 0577a2f commit b174fb7

3 files changed

Lines changed: 47 additions & 18 deletions

File tree

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,6 @@ detection.
8787
<section>
8888
<title>More OFDM parameters</title>
8989

90-
<section id="fe-bandwidth-t">
91-
<title>frontend bandwidth</title>
92-
<programlisting>
93-
typedef enum fe_bandwidth {
94-
BANDWIDTH_8_MHZ,
95-
BANDWIDTH_7_MHZ,
96-
BANDWIDTH_6_MHZ,
97-
BANDWIDTH_AUTO,
98-
BANDWIDTH_5_MHZ,
99-
BANDWIDTH_10_MHZ,
100-
BANDWIDTH_1_712_MHZ,
101-
} fe_bandwidth_t;
102-
</programlisting>
103-
</section>
104-
10590
<section id="fe-guard-interval-t">
10691
<title>frontend guard inverval</title>
10792
<programlisting>

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

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,48 @@ supported via the new <link linkend="FE_GET_PROPERTY">FE_GET_PROPERTY/FE_GET_SET
6060
using the &DTV-DELIVERY-SYSTEM; property.</para>
6161
</section>
6262

63+
<section id="fe-bandwidth-t">
64+
<title>Frontend bandwidth</title>
65+
66+
<table pgwide="1" frame="none" id="fe-bandwidth">
67+
<title>enum fe_bandwidth</title>
68+
<tgroup cols="2">
69+
&cs-def;
70+
<thead>
71+
<row>
72+
<entry>ID</entry>
73+
<entry>Description</entry>
74+
</row>
75+
</thead>
76+
<tbody valign="top">
77+
<row>
78+
<entry>BANDWIDTH_AUTO</entry>
79+
<entry>Autodetect bandwidth (if supported)</entry>
80+
</row><row>
81+
<entry>BANDWIDTH_1_712_MHZ</entry>
82+
<entry>1.712 MHz</entry>
83+
</row><row>
84+
<entry>BANDWIDTH_5_MHZ</entry>
85+
<entry>5 MHz</entry>
86+
</row><row>
87+
<entry>BANDWIDTH_6_MHZ</entry>
88+
<entry>6 MHz</entry>
89+
</row><row>
90+
<entry>BANDWIDTH_7_MHZ</entry>
91+
<entry>7 MHz</entry>
92+
</row><row>
93+
<entry>BANDWIDTH_8_MHZ</entry>
94+
<entry>8 MHz</entry>
95+
</row><row>
96+
<entry>BANDWIDTH_10_MHZ</entry>
97+
<entry>10 MHz</entry>
98+
</row><row>
99+
</row>
100+
</tbody>
101+
</tgroup>
102+
</table>
103+
104+
</section>
63105

64106
<section id="dvb-frontend-parameters">
65107
<title>frontend parameters</title>
@@ -135,7 +177,7 @@ struct dvb_vsb_parameters {
135177
<para>DVB-T frontends are supported by the <constant>dvb_ofdm_parameters</constant> structure:</para>
136178
<programlisting>
137179
struct dvb_ofdm_parameters {
138-
fe_bandwidth_t bandwidth;
180+
&fe-bandwidth-t; bandwidth;
139181
fe_code_rate_t code_rate_HP; /&#x22C6; high priority stream code rate &#x22C6;/
140182
fe_code_rate_t code_rate_LP; /&#x22C6; low priority stream code rate &#x22C6;/
141183
&fe-modulation-t; constellation; /&#x22C6; modulation type (see above) &#x22C6;/

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,17 @@ enum fe_transmit_mode {
213213
typedef enum fe_transmit_mode fe_transmit_mode_t;
214214

215215
#if defined(__DVB_CORE__) || !defined (__KERNEL__)
216-
typedef enum fe_bandwidth {
216+
enum fe_bandwidth {
217217
BANDWIDTH_8_MHZ,
218218
BANDWIDTH_7_MHZ,
219219
BANDWIDTH_6_MHZ,
220220
BANDWIDTH_AUTO,
221221
BANDWIDTH_5_MHZ,
222222
BANDWIDTH_10_MHZ,
223223
BANDWIDTH_1_712_MHZ,
224-
} fe_bandwidth_t;
224+
};
225+
226+
typedef enum fe_bandwidth fe_bandwidth_t;
225227
#endif
226228

227229
typedef enum fe_guard_interval {

0 commit comments

Comments
 (0)