Skip to content

Commit 9d5e27c

Browse files
committed
media: dvb frontend docs: use kernel-doc documentation
Now that frontend.h contains most documentation for the frontend, remove the duplicated information from Documentation/ and use the kernel-doc auto-generated one instead. That should simplify maintainership of DVB frontend uAPI, as most of the documentation will stick with the header file. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 8220ead commit 9d5e27c

17 files changed

+602
-2148
lines changed

Documentation/media/frontend.h.rst.exceptions

Lines changed: 175 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,188 @@ ignore define DTV_MAX_COMMAND
2525
ignore define MAX_DTV_STATS
2626
ignore define DTV_IOCTL_MAX_MSGS
2727

28-
# Stats enum is documented altogether
29-
replace enum fecap_scale_params :ref:`frontend-stat-properties`
30-
replace symbol FE_SCALE_COUNTER frontend-stat-properties
31-
replace symbol FE_SCALE_DECIBEL frontend-stat-properties
32-
replace symbol FE_SCALE_NOT_AVAILABLE frontend-stat-properties
33-
replace symbol FE_SCALE_RELATIVE frontend-stat-properties
34-
3528
# the same reference is used for both get and set ioctls
3629
replace ioctl FE_SET_PROPERTY :c:type:`FE_GET_PROPERTY`
3730

38-
# Ignore struct used only internally at Kernel
39-
ignore struct dtv_cmds_h
40-
4131
# Typedefs that use the enum reference
4232
replace typedef fe_sec_voltage_t :c:type:`fe_sec_voltage`
4333

4434
# Replaces for flag constants
4535
replace define FE_TUNE_MODE_ONESHOT :c:func:`FE_SET_FRONTEND_TUNE_MODE`
4636
replace define LNA_AUTO dtv-lna
4737
replace define NO_STREAM_ID_FILTER dtv-stream-id
38+
39+
# Those enums are defined at the frontend.h header, and not externally
40+
41+
ignore symbol FE_IS_STUPID
42+
ignore symbol FE_CAN_INVERSION_AUTO
43+
ignore symbol FE_CAN_FEC_1_2
44+
ignore symbol FE_CAN_FEC_2_3
45+
ignore symbol FE_CAN_FEC_3_4
46+
ignore symbol FE_CAN_FEC_4_5
47+
ignore symbol FE_CAN_FEC_5_6
48+
ignore symbol FE_CAN_FEC_6_7
49+
ignore symbol FE_CAN_FEC_7_8
50+
ignore symbol FE_CAN_FEC_8_9
51+
ignore symbol FE_CAN_FEC_AUTO
52+
ignore symbol FE_CAN_QPSK
53+
ignore symbol FE_CAN_QAM_16
54+
ignore symbol FE_CAN_QAM_32
55+
ignore symbol FE_CAN_QAM_64
56+
ignore symbol FE_CAN_QAM_128
57+
ignore symbol FE_CAN_QAM_256
58+
ignore symbol FE_CAN_QAM_AUTO
59+
ignore symbol FE_CAN_TRANSMISSION_MODE_AUTO
60+
ignore symbol FE_CAN_BANDWIDTH_AUTO
61+
ignore symbol FE_CAN_GUARD_INTERVAL_AUTO
62+
ignore symbol FE_CAN_HIERARCHY_AUTO
63+
ignore symbol FE_CAN_8VSB
64+
ignore symbol FE_CAN_16VSB
65+
ignore symbol FE_HAS_EXTENDED_CAPS
66+
ignore symbol FE_CAN_MULTISTREAM
67+
ignore symbol FE_CAN_TURBO_FEC
68+
ignore symbol FE_CAN_2G_MODULATION
69+
ignore symbol FE_NEEDS_BENDING
70+
ignore symbol FE_CAN_RECOVER
71+
ignore symbol FE_CAN_MUTE_TS
72+
73+
ignore symbol QPSK
74+
ignore symbol QAM_16
75+
ignore symbol QAM_32
76+
ignore symbol QAM_64
77+
ignore symbol QAM_128
78+
ignore symbol QAM_256
79+
ignore symbol QAM_AUTO
80+
ignore symbol VSB_8
81+
ignore symbol VSB_16
82+
ignore symbol PSK_8
83+
ignore symbol APSK_16
84+
ignore symbol APSK_32
85+
ignore symbol DQPSK
86+
ignore symbol QAM_4_NR
87+
88+
ignore symbol SEC_VOLTAGE_13
89+
ignore symbol SEC_VOLTAGE_18
90+
ignore symbol SEC_VOLTAGE_OFF
91+
92+
ignore symbol SEC_TONE_ON
93+
ignore symbol SEC_TONE_OFF
94+
95+
ignore symbol SEC_MINI_A
96+
ignore symbol SEC_MINI_B
97+
98+
ignore symbol FE_NONE
99+
ignore symbol FE_HAS_SIGNAL
100+
ignore symbol FE_HAS_CARRIER
101+
ignore symbol FE_HAS_VITERBI
102+
ignore symbol FE_HAS_SYNC
103+
ignore symbol FE_HAS_LOCK
104+
ignore symbol FE_REINIT
105+
ignore symbol FE_TIMEDOUT
106+
107+
ignore symbol FEC_NONE
108+
ignore symbol FEC_1_2
109+
ignore symbol FEC_2_3
110+
ignore symbol FEC_3_4
111+
ignore symbol FEC_4_5
112+
ignore symbol FEC_5_6
113+
ignore symbol FEC_6_7
114+
ignore symbol FEC_7_8
115+
ignore symbol FEC_8_9
116+
ignore symbol FEC_AUTO
117+
ignore symbol FEC_3_5
118+
ignore symbol FEC_9_10
119+
ignore symbol FEC_2_5
120+
121+
ignore symbol TRANSMISSION_MODE_AUTO
122+
ignore symbol TRANSMISSION_MODE_1K
123+
ignore symbol TRANSMISSION_MODE_2K
124+
ignore symbol TRANSMISSION_MODE_8K
125+
ignore symbol TRANSMISSION_MODE_4K
126+
ignore symbol TRANSMISSION_MODE_16K
127+
ignore symbol TRANSMISSION_MODE_32K
128+
ignore symbol TRANSMISSION_MODE_C1
129+
ignore symbol TRANSMISSION_MODE_C3780
130+
ignore symbol TRANSMISSION_MODE_2K
131+
ignore symbol TRANSMISSION_MODE_8K
132+
133+
ignore symbol GUARD_INTERVAL_AUTO
134+
ignore symbol GUARD_INTERVAL_1_128
135+
ignore symbol GUARD_INTERVAL_1_32
136+
ignore symbol GUARD_INTERVAL_1_16
137+
ignore symbol GUARD_INTERVAL_1_8
138+
ignore symbol GUARD_INTERVAL_1_4
139+
ignore symbol GUARD_INTERVAL_19_128
140+
ignore symbol GUARD_INTERVAL_19_256
141+
ignore symbol GUARD_INTERVAL_PN420
142+
ignore symbol GUARD_INTERVAL_PN595
143+
ignore symbol GUARD_INTERVAL_PN945
144+
145+
ignore symbol HIERARCHY_NONE
146+
ignore symbol HIERARCHY_AUTO
147+
ignore symbol HIERARCHY_1
148+
ignore symbol HIERARCHY_2
149+
ignore symbol HIERARCHY_4
150+
151+
ignore symbol INTERLEAVING_NONE
152+
ignore symbol INTERLEAVING_AUTO
153+
ignore symbol INTERLEAVING_240
154+
ignore symbol INTERLEAVING_720
155+
156+
ignore symbol PILOT_ON
157+
ignore symbol PILOT_OFF
158+
ignore symbol PILOT_AUTO
159+
160+
ignore symbol ROLLOFF_35
161+
ignore symbol ROLLOFF_20
162+
ignore symbol ROLLOFF_25
163+
ignore symbol ROLLOFF_AUTO
164+
165+
ignore symbol INVERSION_ON
166+
ignore symbol INVERSION_OFF
167+
ignore symbol INVERSION_AUTO
168+
169+
ignore symbol SYS_UNDEFINED
170+
ignore symbol SYS_DVBC_ANNEX_A
171+
ignore symbol SYS_DVBC_ANNEX_B
172+
ignore symbol SYS_DVBC_ANNEX_C
173+
ignore symbol SYS_ISDBC
174+
ignore symbol SYS_DVBT
175+
ignore symbol SYS_DVBT2
176+
ignore symbol SYS_ISDBT
177+
ignore symbol SYS_ATSC
178+
ignore symbol SYS_ATSCMH
179+
ignore symbol SYS_DTMB
180+
ignore symbol SYS_DVBS
181+
ignore symbol SYS_DVBS2
182+
ignore symbol SYS_TURBO
183+
ignore symbol SYS_ISDBS
184+
ignore symbol SYS_DAB
185+
ignore symbol SYS_DSS
186+
ignore symbol SYS_CMMB
187+
ignore symbol SYS_DVBH
188+
189+
ignore symbol ATSCMH_SCCC_BLK_SEP
190+
ignore symbol ATSCMH_SCCC_BLK_COMB
191+
ignore symbol ATSCMH_SCCC_BLK_RES
192+
193+
ignore symbol ATSCMH_SCCC_CODE_HLF
194+
ignore symbol ATSCMH_SCCC_CODE_QTR
195+
ignore symbol ATSCMH_SCCC_CODE_RES
196+
197+
ignore symbol ATSCMH_RSFRAME_ENS_PRI
198+
ignore symbol ATSCMH_RSFRAME_ENS_SEC
199+
200+
ignore symbol ATSCMH_RSFRAME_PRI_ONLY
201+
ignore symbol ATSCMH_RSFRAME_PRI_SEC
202+
ignore symbol ATSCMH_RSFRAME_RES
203+
204+
ignore symbol ATSCMH_RSCODE_211_187
205+
ignore symbol ATSCMH_RSCODE_223_187
206+
ignore symbol ATSCMH_RSCODE_235_187
207+
ignore symbol ATSCMH_RSCODE_RES
208+
209+
ignore symbol FE_SCALE_NOT_AVAILABLE
210+
ignore symbol FE_SCALE_DECIBEL
211+
ignore symbol FE_SCALE_RELATIVE
212+
ignore symbol FE_SCALE_COUNTER

Documentation/media/uapi/dvb/dtv-fe-stats.rst

Lines changed: 0 additions & 17 deletions
This file was deleted.

Documentation/media/uapi/dvb/dtv-properties.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.

Documentation/media/uapi/dvb/dtv-property.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

Documentation/media/uapi/dvb/dtv-stats.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

Documentation/media/uapi/dvb/dvbproperty-006.rst

Lines changed: 0 additions & 12 deletions
This file was deleted.

Documentation/media/uapi/dvb/dvbproperty.rst

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
33
.. _frontend-properties:
44

5-
DVB Frontend properties
6-
=======================
5+
**************
6+
Property types
7+
**************
78

89
Tuning into a Digital TV physical channel and starting decoding it
910
requires changing a set of parameters, in order to control the tuner,
@@ -20,10 +21,15 @@ enough to group the structs that would be required for those new
2021
standards. Also, extending it would break userspace.
2122

2223
So, the legacy union/struct based approach was deprecated, in favor
23-
of a properties set approach.
24+
of a properties set approach. On such approach,
25+
:ref:`FE_GET_PROPERTY and FE_SET_PROPERTY <FE_GET_PROPERTY>` are used
26+
to setup the frontend and read its status.
27+
28+
The actual action is determined by a set of dtv_property cmd/data pairs.
29+
With one single ioctl, is possible to get/set up to 64 properties.
2430

2531
This section describes the new and recommended way to set the frontend,
26-
with suppports all digital TV delivery systems.
32+
with supports all digital TV delivery systems.
2733

2834
.. note::
2935

@@ -63,12 +69,9 @@ Mbauds, those properties should be sent to
6369
The code that would that would do the above is show in
6470
:ref:`dtv-prop-example`.
6571

66-
.. _dtv-prop-example:
67-
68-
Example: Setting digital TV frontend properties
69-
===============================================
70-
7172
.. code-block:: c
73+
:caption: Example: Setting digital TV frontend properties
74+
:name: dtv-prop-example
7275
7376
#include <stdio.h>
7477
#include <fcntl.h>
@@ -112,17 +115,12 @@ Example: Setting digital TV frontend properties
112115
provides methods for usual operations like program scanning and to
113116
read/write channel descriptor files.
114117

115-
116118
.. toctree::
117119
:maxdepth: 1
118120

119-
dtv-stats
120-
dtv-fe-stats
121-
dtv-property
122-
dtv-properties
123-
dvbproperty-006
124121
fe_property_parameters
125122
frontend-stat-properties
126123
frontend-property-terrestrial-systems
127124
frontend-property-cable-systems
128125
frontend-property-satellite-systems
126+
frontend-header

0 commit comments

Comments
 (0)