Second series of DocBook fixes for DVB frontend
Subsystems (3)
cover Second series of DocBook fixes for DVB frontend
This series do another round of format conversion and cleanups at the DVB frontend docbook.
It basically moves all enums/typedefs that are used on both DVBv5 and DVBv3 calls to the DVBv5 xml. Links at the DVBv3 section are provided, in order to point to those enums.
The enums touched on this series were converted from programlisting into tables, with allowed to add better descriptions to each field.
There were one enum (fe_bandwidth) that is DVBv3 specific. This got moved to the legacy part of the document.
After this change, the API documentation looks clearer, at least on my eyes.
TODO:
- At the dvbproperty.xml, there are still several programlisting code with some enums. Those should be converted latter to tables. I'll eventually convert them and do a cleanup on this xml file, but I'll likely look into the net and demux part of the document first. So, patches are welcome.
- The frontend_legacy_api.xml (with contains the DVBv3 legacy stuff) still uses the original format. I don't intend to convert it, as there are still lots of other things that require improvements at the document. So, this has low priority. Of course, patches fixing it are welcome.
- The open() and close() syscalls are still using the original format. Patches are welcome.
Mauro Carvalho Chehab (8):
DocBook/Makefile: improve typedef parser
DocBook: cross-reference enum fe_modulation where needed
DocBook: improve documentation for DVB spectral inversion
DocBook: improve documentation for OFDM transmission mode
DocBook: move fe_bandwidth to the frontend legacy section
DocBook: improve documentation for FEC fields
DocBook: improve documentation for guard interval
DocBook: improve documentation for hierarchy
Documentation/DocBook/media/Makefile | 4 +- Documentation/DocBook/media/dvb/dvbproperty.xml | 358 +++++++++++++++------ Documentation/DocBook/media/dvb/frontend.xml | 109 ------- .../DocBook/media/dvb/frontend_legacy_api.xml | 66 +++- include/uapi/linux/dvb/frontend.h | 34 +- 5 files changed, 331 insertions(+), 240 deletions(-)
Signature · 1 line
2.4.1
A message that is not in the archive (sent off-list or not yet received): cover.1432862317.git.mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org
PATCH 3/8 DocBook: improve documentation for DVB spectral inversion
Format it as a table and provide more details.
Documentation/DocBook/media/dvb/dvbproperty.xml +39 -13
@@ -238,19 +238,45 @@ get/set up to 64 properties. The actual meaning of each property is described on </section> <section id="DTV-INVERSION"> <title><constant>DTV_INVERSION</constant></title> - <para>The Inversion field can take one of these values: - </para> - <programlisting> - typedef enum fe_spectral_inversion { - INVERSION_OFF, - INVERSION_ON, - INVERSION_AUTO - } fe_spectral_inversion_t; - </programlisting> - <para>It indicates if spectral inversion should be presumed or not. In the automatic setting - (<constant>INVERSION_AUTO</constant>) the hardware will try to figure out the correct setting by - itself. - </para> + + <para>Specifies if the frontend should do spectral inversion or not.</para> + +<section id="fe-spectral-inversion-t"> +<title>enum fe_modulation: Frontend spectral inversion</title> + +<para>This parameter indicates if spectral inversion should be presumed or not. + In the automatic setting (<constant>INVERSION_AUTO</constant>) the hardware + will try to figure out the correct setting by itself. If the hardware + doesn't support, the DVB core will try to lock at the carrier first with + inversion off. If it fails, it will try to enable inversion. +</para> + +<table pgwide="1" frame="none" id="fe-spectral-inversion"> + <title>enum fe_modulation</title> + <tgroup cols="2"> + &cs-def; + <thead> + <row> + <entry>ID</entry> + <entry>Description</entry> + </row> + </thead> + <tbody valign="top"> + <row> + <entry>INVERSION_OFF</entry> + <entry>Don't do spectral band inversion.</entry> + </row><row> + <entry>INVERSION_ON</entry> + <entry>Do spectral band inversion.</entry> + </row><row> + <entry>INVERSION_AUTO</entry> + <entry>Autodetect spectral band inversion.</entry> + </row> + </tbody> + </tgroup> +</table> +</section> + </section> <section id="DTV-DISEQC-MASTER"> <title><constant>DTV_DISEQC_MASTER</constant></title>
Documentation/DocBook/media/dvb/frontend.xml +0 -17
@@ -56,23 +56,6 @@ specification is available at &sub-dvbproperty; -<section id="fe-spectral-inversion-t"> -<title>frontend spectral inversion</title> -<para>The Inversion field can take one of these values: -</para> -<programlisting> -typedef enum fe_spectral_inversion { - INVERSION_OFF, - INVERSION_ON, - INVERSION_AUTO -} fe_spectral_inversion_t; -</programlisting> -<para>It indicates if spectral inversion should be presumed or not. In the automatic setting -(<constant>INVERSION_AUTO</constant>) the hardware will try to figure out the correct setting by -itself. -</para> -</section> - <section id="fe-code-rate-t"> <title>frontend code rate</title> <para>The possible values for the <constant>fec_inner</constant> field used on
Documentation/DocBook/media/dvb/frontend_legacy_api.xml +1 -1
@@ -82,7 +82,7 @@ DVB-C2, ISDB, etc.</para> struct dvb_frontend_parameters { uint32_t frequency; /⋆ (absolute) frequency in Hz for QAM/OFDM ⋆/ /⋆ intermediate frequency in kHz for QPSK ⋆/ - fe_spectral_inversion_t inversion; + &fe-spectral-inversion-t; inversion; union { struct dvb_qpsk_parameters qpsk; struct dvb_qam_parameters qam;
include/uapi/linux/dvb/frontend.h +3 -2
@@ -154,12 +154,13 @@ enum fe_status {typedef enum fe_status fe_status_t ; -typedef enum fe_spectral_inversion { +enum fe_spectral_inversion {INVERSION_OFF ,INVERSION_ON ,INVERSION_AUTO -}fe_spectral_inversion_t ; +}; +typedef enum fe_spectral_inversion fe_spectral_inversion_t ; typedef enum fe_code_rate { FEC_NONE = 0,
Signature · 1 line
2.4.1
PATCH 8/8 DocBook: improve documentation for hierarchy
In reply to a message not in the archiveFormat it as a table and links it with the legacy API xml.
Documentation/DocBook/media/dvb/dvbproperty.xml +37 -9
@@ -951,15 +951,43 @@ typedef enum atscmh_sccc_code_mode { <section id="DTV-HIERARCHY"> <title><constant>DTV_HIERARCHY</constant></title> <para>Frontend hierarchy</para> - <programlisting> -typedef enum fe_hierarchy { - HIERARCHY_NONE, - HIERARCHY_1, - HIERARCHY_2, - HIERARCHY_4, - HIERARCHY_AUTO - } fe_hierarchy_t; - </programlisting> + + +<section id="fe-hierarchy-t"> +<title>Frontend hierarchy</title> + +<table pgwide="1" frame="none" id="fe-hierarchy"> + <title>enum fe_hierarchy</title> + <tgroup cols="2"> + &cs-def; + <thead> + <row> + <entry>ID</entry> + <entry>Description</entry> + </row> + </thead> + <tbody valign="top"> + <row> + <entry>HIERARCHY_NONE</entry> + <entry>No hierarchy</entry> + </row><row> + <entry>HIERARCHY_AUTO</entry> + <entry>Autodetect hierarchy (if supported)</entry> + </row><row> + <entry>HIERARCHY_1</entry> + <entry>Hierarchy 1</entry> + </row><row> + <entry>HIERARCHY_2</entry> + <entry>Hierarchy 2</entry> + </row><row> + <entry>HIERARCHY_4</entry> + <entry>Hierarchy 4</entry> + </row> + </tbody> + </tgroup> +</table> +</section> + </section> <section id="DTV-STREAM-ID"> <title><constant>DTV_STREAM_ID</constant></title>
Documentation/DocBook/media/dvb/frontend.xml +0 -18
@@ -56,24 +56,6 @@ specification is available at &sub-dvbproperty; -<section> -<title>More OFDM parameters</title> - -<section id="fe-hierarchy-t"> -<title>frontend hierarchy</title> -<programlisting> -typedef enum fe_hierarchy { - HIERARCHY_NONE, - HIERARCHY_1, - HIERARCHY_2, - HIERARCHY_4, - HIERARCHY_AUTO - } fe_hierarchy_t; -</programlisting> -</section> - -</section> - <section id="frontend_fcalls"> <title>Frontend Function Calls</title>
Documentation/DocBook/media/dvb/frontend_legacy_api.xml +1 -1
@@ -183,7 +183,7 @@ struct dvb_vsb_parameters { &fe-modulation-t; constellation; /⋆ modulation type (see above) ⋆/ &fe-transmit-mode-t; transmission_mode; &fe-guard-interval-t; guard_interval; - fe_hierarchy_t hierarchy_information; + &fe-hierarchy-t; hierarchy_information; }; </programlisting> </section>
include/uapi/linux/dvb/frontend.h +4 -2
@@ -244,13 +244,15 @@ enum fe_guard_interval {typedef enum fe_guard_interval fe_guard_interval_t ; -typedef enum fe_hierarchy { +enum fe_hierarchy {HIERARCHY_NONE ,HIERARCHY_1 ,HIERARCHY_2 ,HIERARCHY_4 ,HIERARCHY_AUTO -}fe_hierarchy_t ; +}; + +typedef enum fe_hierarchy fe_hierarchy_t ;enum fe_interleaving {INTERLEAVING_NONE ,
Signature · 1 line
2.4.1
PATCH 1/8 DocBook/Makefile: improve typedef parser
In reply to Mauro Carvalho ChehabThe typedef parser is wrong and doesn't get some of the types defined at the DVB API. Improve it, as we want to add cross-references to those types.
Documentation/DocBook/media/Makefile +2 -2
@@ -70,8 +70,8 @@ DEFINES = \ $(shell perl -ne 'print "$$1 " if /\#define\s+(DTV_[^\s]+)\s+/' $(srctree)/include/uapi/linux/dvb/frontend.h) \ TYPES = \ - $(shell perl -ne 'print "$$1 " if /^typedef\s+[^\s]+\s+([^\s]+)\;/' $(srctree)/include/uapi/linux/videodev2.h) \ - $(shell perl -ne 'print "$$1 " if /^}\s+([a-z0-9_]+_t)/' $(srctree)/include/uapi/linux/dvb/frontend.h) + $(shell perl -ne 'print "$$1 " if /^typedef\s+.*\s+(\S+)\;/' $(srctree)/include/uapi/linux/videodev2.h) \ + $(shell perl -ne 'print "$$1 " if /^typedef\s+.*\s+(\S+)\;/' $(srctree)/include/uapi/linux/dvb/frontend.h) ENUMS = \ $(shell perl -ne 'print "$$1 " if /^enum\s+([^\s]+)\s+/' $(srctree)/include/uapi/linux/videodev2.h) \
Signature · 1 line
2.4.1
PATCH 2/8 DocBook: cross-reference enum fe_modulation where needed
In reply to Mauro Carvalho ChehabAt frontend legacy API description, there are three places where fe_modulation_t is defined. Cross-reference it to point to the right place at the documentation.
Documentation/DocBook/media/dvb/frontend_legacy_api.xml +3 -3
@@ -115,7 +115,7 @@ OFDM frontends the <constant>frequency</constant> specifies the absolute frequen struct dvb_qam_parameters { uint32_t symbol_rate; /⋆ symbol rate in Symbols per second ⋆/ fe_code_rate_t fec_inner; /⋆ forward error correction (see above) ⋆/ - fe_modulation_t modulation; /⋆ modulation type (see above) ⋆/ + &fe-modulation-t; modulation; /⋆ modulation type (see above) ⋆/ }; </programlisting> </section>
@@ -125,7 +125,7 @@ OFDM frontends the <constant>frequency</constant> specifies the absolute frequen <para>ATSC frontends are supported by the <constant>dvb_vsb_parameters</constant> structure:</para> <programlisting> struct dvb_vsb_parameters { - fe_modulation_t modulation; /⋆ modulation type (see above) ⋆/ + &fe-modulation-t; modulation; /⋆ modulation type (see above) ⋆/ }; </programlisting> </section>
@@ -138,7 +138,7 @@ struct dvb_vsb_parameters { fe_bandwidth_t bandwidth; fe_code_rate_t code_rate_HP; /⋆ high priority stream code rate ⋆/ fe_code_rate_t code_rate_LP; /⋆ low priority stream code rate ⋆/ - fe_modulation_t constellation; /⋆ modulation type (see above) ⋆/ + &fe-modulation-t; constellation; /⋆ modulation type (see above) ⋆/ fe_transmit_mode_t transmission_mode; fe_guard_interval_t guard_interval; fe_hierarchy_t hierarchy_information;
Signature · 1 line
2.4.1
PATCH 4/8 DocBook: improve documentation for OFDM transmission mode
In reply to Mauro Carvalho ChehabFormat it as a table and add more details, in special, for the DTMB modes.
Documentation/DocBook/media/dvb/dvbproperty.xml +54 -15
@@ -827,22 +827,61 @@ typedef enum fe_guard_interval { <section id="DTV-TRANSMISSION-MODE"> <title><constant>DTV_TRANSMISSION_MODE</constant></title> - <para>Specifies the number of carriers used by the standard</para> + <para>Specifies the number of carriers used by the standard. + This is used only on OFTM-based standards, e. g. + DVB-T/T2, ISDB-T, DTMB</para> + +<section id="fe-transmit-mode-t"> +<title>enum fe_transmit_mode: Number of carriers per channel</title> + +<table pgwide="1" frame="none" id="fe-transmit-mode"> + <title>enum fe_transmit_mode</title> + <tgroup cols="2"> + &cs-def; + <thead> + <row> + <entry>ID</entry> + <entry>Description</entry> + </row> + </thead> + <tbody valign="top"> + <row> + <entry>TRANSMISSION_MODE_AUTO</entry> + <entry>Autodetect transmission mode. The hardware will try to find + the correct FFT-size (if capable) to fill in the missing + parameters.</entry> + </row><row> + <entry>TRANSMISSION_MODE_1K</entry> + <entry>Transmission mode 1K</entry> + </row><row> + <entry>TRANSMISSION_MODE_2K</entry> + <entry>Transmission mode 2K</entry> + </row><row> + <entry>TRANSMISSION_MODE_8K</entry> + <entry>Transmission mode 8K</entry> + </row><row> + <entry>TRANSMISSION_MODE_4K</entry> + <entry>Transmission mode 4K</entry> + </row><row> + <entry>TRANSMISSION_MODE_16K</entry> + <entry>Transmission mode 16K</entry> + </row><row> + <entry>TRANSMISSION_MODE_32K</entry> + <entry>Transmission mode 32K</entry> + </row><row> + <entry>TRANSMISSION_MODE_C1</entry> + <entry>Single Carrier (C=1) transmission mode (DTMB)</entry> + </row><row> + <entry>TRANSMISSION_MODE_C3780</entry> + <entry>Multi Carrier (C=3780) transmission mode (DTMB)</entry> + </row><row> + </row> + </tbody> + </tgroup> +</table> +</section> + - <para>Possible values are:</para> -<programlisting> -typedef enum fe_transmit_mode { - TRANSMISSION_MODE_2K, - TRANSMISSION_MODE_8K, - TRANSMISSION_MODE_AUTO, - TRANSMISSION_MODE_4K, - TRANSMISSION_MODE_1K, - TRANSMISSION_MODE_16K, - TRANSMISSION_MODE_32K, - TRANSMISSION_MODE_C1, - TRANSMISSION_MODE_C3780, -} fe_transmit_mode_t; -</programlisting> <para>Notes:</para> <para>1) ISDB-T supports three carrier/symbol-size: 8K, 4K, 2K. It is called 'mode' in the standard: Mode 1 is 2K, mode 2 is 4K, mode 3 is 8K</para>
Documentation/DocBook/media/dvb/frontend.xml +0 -15
@@ -87,21 +87,6 @@ detection. <section> <title>More OFDM parameters</title> -<section id="fe-transmit-mode-t"> -<title>Number of carriers per channel</title> -<programlisting> -typedef enum fe_transmit_mode { - TRANSMISSION_MODE_2K, - TRANSMISSION_MODE_8K, - TRANSMISSION_MODE_AUTO, - TRANSMISSION_MODE_4K, - TRANSMISSION_MODE_1K, - TRANSMISSION_MODE_16K, - TRANSMISSION_MODE_32K, - } fe_transmit_mode_t; -</programlisting> -</section> - <section id="fe-bandwidth-t"> <title>frontend bandwidth</title> <programlisting>
Documentation/DocBook/media/dvb/frontend_legacy_api.xml +1 -1
@@ -139,7 +139,7 @@ struct dvb_vsb_parameters { fe_code_rate_t code_rate_HP; /⋆ high priority stream code rate ⋆/ fe_code_rate_t code_rate_LP; /⋆ low priority stream code rate ⋆/ &fe-modulation-t; constellation; /⋆ modulation type (see above) ⋆/ - fe_transmit_mode_t transmission_mode; + &fe-transmit-mode-t; transmission_mode; fe_guard_interval_t guard_interval; fe_hierarchy_t hierarchy_information; };
include/uapi/linux/dvb/frontend.h +4 -2
@@ -198,7 +198,7 @@ enum fe_modulation {typedef enum fe_modulation fe_modulation_t ; -typedef enum fe_transmit_mode { +enum fe_transmit_mode {TRANSMISSION_MODE_2K ,TRANSMISSION_MODE_8K ,TRANSMISSION_MODE_AUTO ,
@@ -208,7 +208,9 @@ typedef enum fe_transmit_mode {TRANSMISSION_MODE_32K ,TRANSMISSION_MODE_C1 , TRANSMISSION_MODE_C3780, -} fe_transmit_mode_t; +}; + +typedef enum fe_transmit_mode fe_transmit_mode_t ;#if defined(__DVB_CORE__) || !defined (__KERNEL__) typedef enum fe_bandwidth {
Signature · 1 line
2.4.1
PATCH 5/8 DocBook: move fe_bandwidth to the frontend legacy section
In reply to Mauro Carvalho Chehabfe_bandwidth/fe_bandwidth_t is used only on DVBv3 API. So, move it to the frontend legacy xml, and convert it into a table.
Documentation/DocBook/media/dvb/frontend.xml +0 -15
@@ -87,21 +87,6 @@ detection. <section> <title>More OFDM parameters</title> -<section id="fe-bandwidth-t"> -<title>frontend bandwidth</title> -<programlisting> -typedef enum fe_bandwidth { - BANDWIDTH_8_MHZ, - BANDWIDTH_7_MHZ, - BANDWIDTH_6_MHZ, - BANDWIDTH_AUTO, - BANDWIDTH_5_MHZ, - BANDWIDTH_10_MHZ, - BANDWIDTH_1_712_MHZ, -} fe_bandwidth_t; -</programlisting> -</section> - <section id="fe-guard-interval-t"> <title>frontend guard inverval</title> <programlisting>
Documentation/DocBook/media/dvb/frontend_legacy_api.xml +43 -1
56 lines not on this page · raw message
include/uapi/linux/dvb/frontend.h +4 -2
@@ -213,7 +213,7 @@ enum fe_transmit_mode {typedef enum fe_transmit_mode fe_transmit_mode_t ;#if defined(__DVB_CORE__) || !defined (__KERNEL__) -typedef enum fe_bandwidth { +enum fe_bandwidth {BANDWIDTH_8_MHZ ,BANDWIDTH_7_MHZ , BANDWIDTH_6_MHZ,
@@ -221,7 +221,9 @@ typedef enum fe_bandwidth {BANDWIDTH_5_MHZ ,BANDWIDTH_10_MHZ , BANDWIDTH_1_712_MHZ, -} fe_bandwidth_t; +}; + +typedef enum fe_bandwidth fe_bandwidth_t ;#endif typedef enum fe_guard_interval {
Signature · 1 line
2.4.1
PATCH 6/8 DocBook: improve documentation for FEC fields
In reply to Mauro Carvalho ChehabFormat it as a table and add more details. Also, remove the duplicated occurrences.
Documentation/DocBook/media/dvb/dvbproperty.xml +70 -53
@@ -290,25 +290,70 @@ get/set up to 64 properties. The actual meaning of each property is described on <title><constant>DTV_INNER_FEC</constant></title> <para>Used cable/satellite transmissions. The acceptable values are: </para> - <programlisting> -typedef enum fe_code_rate { - FEC_NONE = 0, - FEC_1_2, - FEC_2_3, - FEC_3_4, - FEC_4_5, - FEC_5_6, - FEC_6_7, - FEC_7_8, - FEC_8_9, - FEC_AUTO, - FEC_3_5, - FEC_9_10, - FEC_2_5, -} fe_code_rate_t; - </programlisting> - <para>which correspond to error correction rates of 1/2, 2/3, etc., - no error correction or auto detection.</para> +<section id="fe-code-rate-t"> +<title>enum fe_code_rate: type of the Forward Error Correction.</title> + +<table pgwide="1" frame="none" id="fe-code-rate"> + <title>enum fe_code_rate</title> + <tgroup cols="2"> + &cs-def; + <thead> + <row> + <entry>ID</entry> + <entry>Description</entry> + </row> + </thead> + <tbody valign="top"> + <row> + <entry>TRANSMISSION_MODE_AUTO</entry> + <entry>Autodetect transmission mode. The hardware will try to find + the correct FFT-size (if capable) to fill in the missing + parameters.</entry> + </row><row> + <entry>FEC_NONE</entry> + <entry>No Forward Error Correction Code</entry> + </row><row> + <entry>FEC_AUTO</entry> + <entry>Autodetect Error Correction Code</entry> + </row><row> + <entry>FEC_1_2</entry> + <entry>Forward Error Correction Code 1/2</entry> + </row><row> + <entry>FEC_2_3</entry> + <entry>Forward Error Correction Code 2/3</entry> + </row><row> + <entry>FEC_3_4</entry> + <entry>Forward Error Correction Code 3/4</entry> + </row><row> + <entry>FEC_4_5</entry> + <entry>Forward Error Correction Code 4/5</entry> + </row><row> + <entry>FEC_5_6</entry> + <entry>Forward Error Correction Code 5/6</entry> + </row><row> + <entry>FEC_6_7</entry> + <entry>Forward Error Correction Code 6/7</entry> + </row><row> + <entry>FEC_7_8</entry> + <entry>Forward Error Correction Code 7/8</entry> + </row><row> + <entry>FEC_8_9</entry> + <entry>Forward Error Correction Code 8/9</entry> + </row><row> + <entry>FEC_9_10</entry> + <entry>Forward Error Correction Code 9/10</entry> + </row><row> + <entry>FEC_2_5</entry> + <entry>Forward Error Correction Code 2/5</entry> + </row><row> + <entry>FEC_3_5</entry> + <entry>Forward Error Correction Code 3/5</entry> + </row><row> + </row> + </tbody> + </tgroup> +</table> +</section> </section> <section id="DTV-VOLTAGE"> <title><constant>DTV_VOLTAGE</constant></title>
@@ -757,46 +802,18 @@ typedef enum atscmh_sccc_code_mode { </section> <section id="DTV-CODE-RATE-HP"> <title><constant>DTV_CODE_RATE_HP</constant></title> - <para>Used on terrestrial transmissions. The acceptable values are: + <para>Used on terrestrial transmissions. The acceptable values are + the ones described at &fe-transmit-mode-t;. </para> - <programlisting> -typedef enum fe_code_rate { - FEC_NONE = 0, - FEC_1_2, - FEC_2_3, - FEC_3_4, - FEC_4_5, - FEC_5_6, - FEC_6_7, - FEC_7_8, - FEC_8_9, - FEC_AUTO, - FEC_3_5, - FEC_9_10, -} fe_code_rate_t; - </programlisting> </section> <section id="DTV-CODE-RATE-LP"> <title><constant>DTV_CODE_RATE_LP</constant></title> - <para>Used on terrestrial transmissions. The acceptable values are: + <para>Used on terrestrial transmissions. The acceptable values are + the ones described at &fe-transmit-mode-t;. </para> - <programlisting> -typedef enum fe_code_rate { - FEC_NONE = 0, - FEC_1_2, - FEC_2_3, - FEC_3_4, - FEC_4_5, - FEC_5_6, - FEC_6_7, - FEC_7_8, - FEC_8_9, - FEC_AUTO, - FEC_3_5, - FEC_9_10, -} fe_code_rate_t; - </programlisting> + </section> + <section id="DTV-GUARD-INTERVAL"> <title><constant>DTV_GUARD_INTERVAL</constant></title>
Documentation/DocBook/media/dvb/frontend.xml +0 -28
@@ -56,34 +56,6 @@ specification is available at &sub-dvbproperty; -<section id="fe-code-rate-t"> -<title>frontend code rate</title> -<para>The possible values for the <constant>fec_inner</constant> field used on -<link linkend="dvb-qpsk-parameters"><constant>struct dvb_qpsk_parameters</constant></link> and -<link linkend="dvb-qam-parameters"><constant>struct dvb_qam_parameters</constant></link> are: -</para> -<programlisting> -typedef enum fe_code_rate { - FEC_NONE = 0, - FEC_1_2, - FEC_2_3, - FEC_3_4, - FEC_4_5, - FEC_5_6, - FEC_6_7, - FEC_7_8, - FEC_8_9, - FEC_AUTO, - FEC_3_5, - FEC_9_10, -} fe_code_rate_t; -</programlisting> -<para>which correspond to error correction rates of 1/2, 2/3, etc., no error correction or auto -detection. -</para> -</section> - - <section> <title>More OFDM parameters</title>
Documentation/DocBook/media/dvb/frontend_legacy_api.xml +4 -4
@@ -145,7 +145,7 @@ OFDM frontends the <constant>frequency</constant> specifies the absolute frequen <programlisting> struct dvb_qpsk_parameters { uint32_t symbol_rate; /⋆ symbol rate in Symbols per second ⋆/ - fe_code_rate_t fec_inner; /⋆ forward error correction (see above) ⋆/ + &fe-code-rate-t; fec_inner; /⋆ forward error correction (see above) ⋆/ }; </programlisting> </section>
@@ -156,7 +156,7 @@ OFDM frontends the <constant>frequency</constant> specifies the absolute frequen <programlisting> struct dvb_qam_parameters { uint32_t symbol_rate; /⋆ symbol rate in Symbols per second ⋆/ - fe_code_rate_t fec_inner; /⋆ forward error correction (see above) ⋆/ + &fe-code-rate-t; fec_inner; /⋆ forward error correction (see above) ⋆/ &fe-modulation-t; modulation; /⋆ modulation type (see above) ⋆/ }; </programlisting>
@@ -178,8 +178,8 @@ struct dvb_vsb_parameters { <programlisting> struct dvb_ofdm_parameters { &fe-bandwidth-t; bandwidth; - fe_code_rate_t code_rate_HP; /⋆ high priority stream code rate ⋆/ - fe_code_rate_t code_rate_LP; /⋆ low priority stream code rate ⋆/ + &fe-code-rate-t; code_rate_HP; /⋆ high priority stream code rate ⋆/ + &fe-code-rate-t; code_rate_LP; /⋆ low priority stream code rate ⋆/ &fe-modulation-t; constellation; /⋆ modulation type (see above) ⋆/ &fe-transmit-mode-t; transmission_mode; fe_guard_interval_t guard_interval;
include/uapi/linux/dvb/frontend.h +4 -2
@@ -162,7 +162,7 @@ enum fe_spectral_inversion {typedef enum fe_spectral_inversion fe_spectral_inversion_t ; -typedef enum fe_code_rate { +enum fe_code_rate {FEC_NONE =0 ,FEC_1_2 ,FEC_2_3 ,
@@ -176,7 +176,9 @@ typedef enum fe_code_rate {FEC_3_5 ,FEC_9_10 , FEC_2_5, -} fe_code_rate_t; +}; + +typedef enum fe_code_rate fe_code_rate_t ; enum fe_modulation {
Signature · 1 line
2.4.1
PATCH 7/8 DocBook: improve documentation for guard interval
In reply to Mauro Carvalho ChehabFormat it as a table and add more details, in special for DTMB guard intervals.
Documentation/DocBook/media/dvb/dvbproperty.xml +53 -15
@@ -818,21 +818,59 @@ typedef enum atscmh_sccc_code_mode { <title><constant>DTV_GUARD_INTERVAL</constant></title> <para>Possible values are:</para> -<programlisting> -typedef enum fe_guard_interval { - GUARD_INTERVAL_1_32, - GUARD_INTERVAL_1_16, - GUARD_INTERVAL_1_8, - GUARD_INTERVAL_1_4, - GUARD_INTERVAL_AUTO, - GUARD_INTERVAL_1_128, - GUARD_INTERVAL_19_128, - GUARD_INTERVAL_19_256, - GUARD_INTERVAL_PN420, - GUARD_INTERVAL_PN595, - GUARD_INTERVAL_PN945, -} fe_guard_interval_t; -</programlisting> + +<section id="fe-guard-interval-t"> +<title>Modulation guard interval</title> + +<table pgwide="1" frame="none" id="fe-guard-interval"> + <title>enum fe_guard_interval</title> + <tgroup cols="2"> + &cs-def; + <thead> + <row> + <entry>ID</entry> + <entry>Description</entry> + </row> + </thead> + <tbody valign="top"> + <row> + <entry>GUARD_INTERVAL_AUTO</entry> + <entry>Autodetect the guard interval</entry> + </row><row> + <entry>GUARD_INTERVAL_1_128</entry> + <entry>Guard interval 1/128</entry> + </row><row> + <entry>GUARD_INTERVAL_1_32</entry> + <entry>Guard interval 1/32</entry> + </row><row> + <entry>GUARD_INTERVAL_1_16</entry> + <entry>Guard interval 1/16</entry> + </row><row> + <entry>GUARD_INTERVAL_1_8</entry> + <entry>Guard interval 1/8</entry> + </row><row> + <entry>GUARD_INTERVAL_1_4</entry> + <entry>Guard interval 1/4</entry> + </row><row> + <entry>GUARD_INTERVAL_19_128</entry> + <entry>Guard interval 19/128</entry> + </row><row> + <entry>GUARD_INTERVAL_19_256</entry> + <entry>Guard interval 19/256</entry> + </row><row> + <entry>GUARD_INTERVAL_PN420</entry> + <entry>PN length 420 (1/4)</entry> + </row><row> + <entry>GUARD_INTERVAL_PN595</entry> + <entry>PN length 595 (1/6)</entry> + </row><row> + <entry>GUARD_INTERVAL_PN945</entry> + <entry>PN length 945 (1/9)</entry> + </row> + </tbody> + </tgroup> +</table> +</section> <para>Notes:</para> <para>1) If <constant>DTV_GUARD_INTERVAL</constant> is set the <constant>GUARD_INTERVAL_AUTO</constant> the hardware will
Documentation/DocBook/media/dvb/frontend.xml +0 -16
@@ -59,22 +59,6 @@ specification is available at <section> <title>More OFDM parameters</title> -<section id="fe-guard-interval-t"> -<title>frontend guard inverval</title> -<programlisting> -typedef enum fe_guard_interval { - GUARD_INTERVAL_1_32, - GUARD_INTERVAL_1_16, - GUARD_INTERVAL_1_8, - GUARD_INTERVAL_1_4, - GUARD_INTERVAL_AUTO, - GUARD_INTERVAL_1_128, - GUARD_INTERVAL_19_128, - GUARD_INTERVAL_19_256, -} fe_guard_interval_t; -</programlisting> -</section> - <section id="fe-hierarchy-t"> <title>frontend hierarchy</title> <programlisting>
Documentation/DocBook/media/dvb/frontend_legacy_api.xml +1 -1
@@ -182,7 +182,7 @@ struct dvb_vsb_parameters { &fe-code-rate-t; code_rate_LP; /⋆ low priority stream code rate ⋆/ &fe-modulation-t; constellation; /⋆ modulation type (see above) ⋆/ &fe-transmit-mode-t; transmission_mode; - fe_guard_interval_t guard_interval; + &fe-guard-interval-t; guard_interval; fe_hierarchy_t hierarchy_information; }; </programlisting>
include/uapi/linux/dvb/frontend.h +3 -2
@@ -228,7 +228,7 @@ enum fe_bandwidth {typedef enum fe_bandwidth fe_bandwidth_t ;#endif -typedef enum fe_guard_interval { +enum fe_guard_interval {GUARD_INTERVAL_1_32 ,GUARD_INTERVAL_1_16 ,GUARD_INTERVAL_1_8 ,
@@ -240,8 +240,9 @@ typedef enum fe_guard_interval {GUARD_INTERVAL_PN420 ,GUARD_INTERVAL_PN595 , GUARD_INTERVAL_PN945, -} fe_guard_interval_t; +}; +typedef enum fe_guard_interval fe_guard_interval_t ; typedef enum fe_hierarchy { HIERARCHY_NONE,
Signature · 1 line
2.4.1