dvbproperty.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. <section id="FE_GET_SET_PROPERTY">
  2. <title><constant>FE_GET_PROPERTY/FE_SET_PROPERTY</constant></title>
  3. <para>This section describes the DVB version 5 extention of the DVB-API, also
  4. called "S2API", as this API were added to provide support for DVB-S2. It was
  5. designed to be able to replace the old frontend API. Yet, the DISEQC and
  6. the capability ioctls weren't implemented yet via the new way.</para>
  7. <para>The typical usage for the <constant>FE_GET_PROPERTY/FE_SET_PROPERTY</constant>
  8. API is to replace the ioctl's were the <link linkend="dvb-frontend-parameters">
  9. struct <constant>dvb_frontend_parameters</constant></link> were used.</para>
  10. <programlisting>
  11. /* Reserved fields should be set to 0 */
  12. struct dtv_property {
  13. __u32 cmd;
  14. union {
  15. __u32 data;
  16. struct {
  17. __u8 data[32];
  18. __u32 len;
  19. __u32 reserved1[3];
  20. void *reserved2;
  21. } buffer;
  22. } u;
  23. int result;
  24. } __attribute__ ((packed));
  25. /* num of properties cannot exceed DTV_IOCTL_MAX_MSGS per ioctl */
  26. #define DTV_IOCTL_MAX_MSGS 64
  27. struct dtv_properties {
  28. __u32 num;
  29. struct dtv_property *props;
  30. };
  31. </programlisting>
  32. <section id="FE_GET_PROPERTY">
  33. <title>FE_GET_PROPERTY</title>
  34. <para>DESCRIPTION
  35. </para>
  36. <informaltable><tgroup cols="1"><tbody><row><entry
  37. align="char">
  38. <para>This ioctl call returns one or more frontend properties. This call only
  39. requires read-only access to the device.</para>
  40. </entry>
  41. </row></tbody></tgroup></informaltable>
  42. <para>SYNOPSIS
  43. </para>
  44. <informaltable><tgroup cols="1"><tbody><row><entry
  45. align="char">
  46. <para>int ioctl(int fd, int request = <link linkend="FE_GET_PROPERTY">FE_GET_PROPERTY</link>,
  47. dtv_properties &#x22C6;props);</para>
  48. </entry>
  49. </row></tbody></tgroup></informaltable>
  50. <para>PARAMETERS
  51. </para>
  52. <informaltable><tgroup cols="2"><tbody><row><entry align="char">
  53. <para>int fd</para>
  54. </entry><entry
  55. align="char">
  56. <para>File descriptor returned by a previous call to open().</para>
  57. </entry>
  58. </row><row><entry
  59. align="char">
  60. <para>int num</para>
  61. </entry><entry
  62. align="char">
  63. <para>Equals <link linkend="FE_GET_PROPERTY">FE_GET_PROPERTY</link> for this command.</para>
  64. </entry>
  65. </row><row><entry
  66. align="char">
  67. <para>struct dtv_property *props</para>
  68. </entry><entry
  69. align="char">
  70. <para>Points to the location where the front-end property commands are stored.</para>
  71. </entry>
  72. </row></tbody></tgroup></informaltable>
  73. <para>ERRORS</para>
  74. <informaltable><tgroup cols="2"><tbody><row>
  75. <entry align="char"><para>EINVAL</para></entry>
  76. <entry align="char"><para>Invalid parameter(s) received or number of parameters out of the range.</para></entry>
  77. </row><row>
  78. <entry align="char"><para>ENOMEM</para></entry>
  79. <entry align="char"><para>Out of memory.</para></entry>
  80. </row><row>
  81. <entry align="char"><para>EFAULT</para></entry>
  82. <entry align="char"><para>Failure while copying data from/to userspace.</para></entry>
  83. </row><row>
  84. <entry align="char"><para>EOPNOTSUPP</para></entry>
  85. <entry align="char"><para>Property type not supported.</para></entry>
  86. </row></tbody></tgroup></informaltable>
  87. </section>
  88. <section id="FE_SET_PROPERTY">
  89. <title>FE_SET_PROPERTY</title>
  90. <para>DESCRIPTION
  91. </para>
  92. <informaltable><tgroup cols="1"><tbody><row><entry
  93. align="char">
  94. <para>This ioctl call sets one or more frontend properties. This call only
  95. requires read-only access to the device.</para>
  96. </entry>
  97. </row></tbody></tgroup></informaltable>
  98. <para>SYNOPSIS
  99. </para>
  100. <informaltable><tgroup cols="1"><tbody><row><entry
  101. align="char">
  102. <para>int ioctl(int fd, int request = <link linkend="FE_SET_PROPERTY">FE_SET_PROPERTY</link>,
  103. dtv_properties &#x22C6;props);</para>
  104. </entry>
  105. </row></tbody></tgroup></informaltable>
  106. <para>PARAMETERS
  107. </para>
  108. <informaltable><tgroup cols="2"><tbody><row><entry align="char">
  109. <para>int fd</para>
  110. </entry><entry
  111. align="char">
  112. <para>File descriptor returned by a previous call to open().</para>
  113. </entry>
  114. </row><row><entry
  115. align="char">
  116. <para>int num</para>
  117. </entry><entry
  118. align="char">
  119. <para>Equals <link linkend="FE_SET_PROPERTY">FE_SET_PROPERTY</link> for this command.</para>
  120. </entry>
  121. </row><row><entry
  122. align="char">
  123. <para>struct dtv_property *props</para>
  124. </entry><entry
  125. align="char">
  126. <para>Points to the location where the front-end property commands are stored.</para>
  127. </entry>
  128. </row></tbody></tgroup></informaltable>
  129. <para>ERRORS
  130. </para>
  131. <informaltable><tgroup cols="2"><tbody><row>
  132. <entry align="char"><para>EINVAL</para></entry>
  133. <entry align="char"><para>Invalid parameter(s) received or number of parameters out of the range.</para></entry>
  134. </row><row>
  135. <entry align="char"><para>ENOMEM</para></entry>
  136. <entry align="char"><para>Out of memory.</para></entry>
  137. </row><row>
  138. <entry align="char"><para>EFAULT</para></entry>
  139. <entry align="char"><para>Failure while copying data from/to userspace.</para></entry>
  140. </row><row>
  141. <entry align="char"><para>EOPNOTSUPP</para></entry>
  142. <entry align="char"><para>Property type not supported.</para></entry>
  143. </row></tbody></tgroup></informaltable>
  144. </section>
  145. <section>
  146. <title>Property types</title>
  147. <para>
  148. On <link linkend="FE_GET_PROPERTY">FE_GET_PROPERTY</link>/<link linkend="FE_SET_PROPERTY">FE_SET_PROPERTY</link>,
  149. the actual action is determined by the dtv_property cmd/data pairs. With one single ioctl, is possible to
  150. get/set up to 64 properties. The actual meaning of each property is described on the next sections.
  151. </para>
  152. <para>The available frontend property types are shown on the next section.</para>
  153. </section>
  154. <section id="fe_property_parameters">
  155. <title>Digital TV property parameters</title>
  156. <section id="DTV-UNDEFINED">
  157. <title><constant>DTV_UNDEFINED</constant></title>
  158. <para>Used internally. A GET/SET operation for it won't change or return anything.</para>
  159. </section>
  160. <section id="DTV-TUNE">
  161. <title><constant>DTV_TUNE</constant></title>
  162. <para>Interpret the cache of data, build either a traditional frontend tunerequest so we can pass validation in the <constant>FE_SET_FRONTEND</constant> ioctl.</para>
  163. </section>
  164. <section id="DTV-CLEAR">
  165. <title><constant>DTV_CLEAR</constant></title>
  166. <para>Reset a cache of data specific to the frontend here. This does not effect hardware.</para>
  167. </section>
  168. <section id="DTV-FREQUENCY">
  169. <title><constant>DTV_FREQUENCY</constant></title>
  170. <para>Central frequency of the channel, in HZ.</para>
  171. <para>Notes:</para>
  172. <para>1)For ISDB-T, the channels are usually transmitted with an offset of 143kHz.
  173. E.g. a valid frequncy could be 474143 kHz. The stepping is bound to the bandwidth of
  174. the channel which is 6MHz.</para>
  175. <para>2)As in ISDB-Tsb the channel consists of only one or three segments the
  176. frequency step is 429kHz, 3*429 respectively. As for ISDB-T the
  177. central frequency of the channel is expected.</para>
  178. </section>
  179. <section id="DTV-MODULATION">
  180. <title><constant>DTV_MODULATION</constant></title>
  181. <para>Specifies the frontend modulation type for cable and satellite types. The modulation can be one of the types bellow:</para>
  182. <programlisting>
  183. typedef enum fe_modulation {
  184. QPSK,
  185. QAM_16,
  186. QAM_32,
  187. QAM_64,
  188. QAM_128,
  189. QAM_256,
  190. QAM_AUTO,
  191. VSB_8,
  192. VSB_16,
  193. PSK_8,
  194. APSK_16,
  195. APSK_32,
  196. DQPSK,
  197. } fe_modulation_t;
  198. </programlisting>
  199. </section>
  200. <section id="DTV-BANDWIDTH-HZ">
  201. <title><constant>DTV_BANDWIDTH_HZ</constant></title>
  202. <para>Bandwidth for the channel, in HZ.</para>
  203. <para>Possible values:
  204. <constant>1712000</constant>,
  205. <constant>5000000</constant>,
  206. <constant>6000000</constant>,
  207. <constant>7000000</constant>,
  208. <constant>8000000</constant>,
  209. <constant>10000000</constant>.
  210. </para>
  211. <para>Notes:</para>
  212. <para>1) For ISDB-T it should be always 6000000Hz (6MHz)</para>
  213. <para>2) For ISDB-Tsb it can vary depending on the number of connected segments</para>
  214. <para>3) Bandwidth doesn't apply for DVB-C transmissions, as the bandwidth
  215. for DVB-C depends on the symbol rate</para>
  216. <para>4) Bandwidth in ISDB-T is fixed (6MHz) or can be easily derived from
  217. other parameters (DTV_ISDBT_SB_SEGMENT_IDX,
  218. DTV_ISDBT_SB_SEGMENT_COUNT).</para>
  219. <para>5) DVB-T supports 6, 7 and 8MHz.</para>
  220. <para>6) In addition, DVB-T2 supports 1.172, 5 and 10MHz.</para>
  221. </section>
  222. <section id="DTV-INVERSION">
  223. <title><constant>DTV_INVERSION</constant></title>
  224. <para>The Inversion field can take one of these values:
  225. </para>
  226. <programlisting>
  227. typedef enum fe_spectral_inversion {
  228. INVERSION_OFF,
  229. INVERSION_ON,
  230. INVERSION_AUTO
  231. } fe_spectral_inversion_t;
  232. </programlisting>
  233. <para>It indicates if spectral inversion should be presumed or not. In the automatic setting
  234. (<constant>INVERSION_AUTO</constant>) the hardware will try to figure out the correct setting by
  235. itself.
  236. </para>
  237. </section>
  238. <section id="DTV-DISEQC-MASTER">
  239. <title><constant>DTV_DISEQC_MASTER</constant></title>
  240. <para>Currently not implemented.</para>
  241. </section>
  242. <section id="DTV-SYMBOL-RATE">
  243. <title><constant>DTV_SYMBOL_RATE</constant></title>
  244. <para>Digital TV symbol rate, in bauds (symbols/second). Used on cable standards.</para>
  245. </section>
  246. <section id="DTV-INNER-FEC">
  247. <title><constant>DTV_INNER_FEC</constant></title>
  248. <para>Used cable/satellite transmissions. The acceptable values are:
  249. </para>
  250. <programlisting>
  251. typedef enum fe_code_rate {
  252. FEC_NONE = 0,
  253. FEC_1_2,
  254. FEC_2_3,
  255. FEC_3_4,
  256. FEC_4_5,
  257. FEC_5_6,
  258. FEC_6_7,
  259. FEC_7_8,
  260. FEC_8_9,
  261. FEC_AUTO,
  262. FEC_3_5,
  263. FEC_9_10,
  264. } fe_code_rate_t;
  265. </programlisting>
  266. <para>which correspond to error correction rates of 1/2, 2/3, etc.,
  267. no error correction or auto detection.</para>
  268. </section>
  269. <section id="DTV-VOLTAGE">
  270. <title><constant>DTV_VOLTAGE</constant></title>
  271. <para>The voltage is usually used with non-DiSEqC capable LNBs to switch
  272. the polarzation (horizontal/vertical). When using DiSEqC epuipment this
  273. voltage has to be switched consistently to the DiSEqC commands as
  274. described in the DiSEqC spec.</para>
  275. <programlisting>
  276. typedef enum fe_sec_voltage {
  277. SEC_VOLTAGE_13,
  278. SEC_VOLTAGE_18
  279. } fe_sec_voltage_t;
  280. </programlisting>
  281. </section>
  282. <section id="DTV-TONE">
  283. <title><constant>DTV_TONE</constant></title>
  284. <para>Currently not used.</para>
  285. </section>
  286. <section id="DTV-PILOT">
  287. <title><constant>DTV_PILOT</constant></title>
  288. <para>Sets DVB-S2 pilot</para>
  289. <section id="fe-pilot-t">
  290. <title>fe_pilot type</title>
  291. <programlisting>
  292. typedef enum fe_pilot {
  293. PILOT_ON,
  294. PILOT_OFF,
  295. PILOT_AUTO,
  296. } fe_pilot_t;
  297. </programlisting>
  298. </section>
  299. </section>
  300. <section id="DTV-ROLLOFF">
  301. <title><constant>DTV_ROLLOFF</constant></title>
  302. <para>Sets DVB-S2 rolloff</para>
  303. <section id="fe-rolloff-t">
  304. <title>fe_rolloff type</title>
  305. <programlisting>
  306. typedef enum fe_rolloff {
  307. ROLLOFF_35, /* Implied value in DVB-S, default for DVB-S2 */
  308. ROLLOFF_20,
  309. ROLLOFF_25,
  310. ROLLOFF_AUTO,
  311. } fe_rolloff_t;
  312. </programlisting>
  313. </section>
  314. </section>
  315. <section id="DTV-DISEQC-SLAVE-REPLY">
  316. <title><constant>DTV_DISEQC_SLAVE_REPLY</constant></title>
  317. <para>Currently not implemented.</para>
  318. </section>
  319. <section id="DTV-FE-CAPABILITY-COUNT">
  320. <title><constant>DTV_FE_CAPABILITY_COUNT</constant></title>
  321. <para>Currently not implemented.</para>
  322. </section>
  323. <section id="DTV-FE-CAPABILITY">
  324. <title><constant>DTV_FE_CAPABILITY</constant></title>
  325. <para>Currently not implemented.</para>
  326. </section>
  327. <section id="DTV-DELIVERY-SYSTEM">
  328. <title><constant>DTV_DELIVERY_SYSTEM</constant></title>
  329. <para>Specifies the type of Delivery system</para>
  330. <section id="fe-delivery-system-t">
  331. <title>fe_delivery_system type</title>
  332. <para>Possible values: </para>
  333. <programlisting>
  334. typedef enum fe_delivery_system {
  335. SYS_UNDEFINED,
  336. SYS_DVBC_ANNEX_AC,
  337. SYS_DVBC_ANNEX_B,
  338. SYS_DVBT,
  339. SYS_DSS,
  340. SYS_DVBS,
  341. SYS_DVBS2,
  342. SYS_DVBH,
  343. SYS_ISDBT,
  344. SYS_ISDBS,
  345. SYS_ISDBC,
  346. SYS_ATSC,
  347. SYS_ATSCMH,
  348. SYS_DMBTH,
  349. SYS_CMMB,
  350. SYS_DAB,
  351. SYS_DVBT2,
  352. } fe_delivery_system_t;
  353. </programlisting>
  354. </section>
  355. </section>
  356. <section id="DTV-ISDBT-PARTIAL-RECEPTION">
  357. <title><constant>DTV_ISDBT_PARTIAL_RECEPTION</constant></title>
  358. <para>If <constant>DTV_ISDBT_SOUND_BROADCASTING</constant> is '0' this bit-field represents whether
  359. the channel is in partial reception mode or not.</para>
  360. <para>If '1' <constant>DTV_ISDBT_LAYERA_*</constant> values are assigned to the center segment and
  361. <constant>DTV_ISDBT_LAYERA_SEGMENT_COUNT</constant> has to be '1'.</para>
  362. <para>If in addition <constant>DTV_ISDBT_SOUND_BROADCASTING</constant> is '1'
  363. <constant>DTV_ISDBT_PARTIAL_RECEPTION</constant> represents whether this ISDB-Tsb channel
  364. is consisting of one segment and layer or three segments and two layers.</para>
  365. <para>Possible values: 0, 1, -1 (AUTO)</para>
  366. </section>
  367. <section id="DTV-ISDBT-SOUND-BROADCASTING">
  368. <title><constant>DTV_ISDBT_SOUND_BROADCASTING</constant></title>
  369. <para>This field represents whether the other DTV_ISDBT_*-parameters are
  370. referring to an ISDB-T and an ISDB-Tsb channel. (See also
  371. <constant>DTV_ISDBT_PARTIAL_RECEPTION</constant>).</para>
  372. <para>Possible values: 0, 1, -1 (AUTO)</para>
  373. </section>
  374. <section id="DTV-ISDBT-SB-SUBCHANNEL-ID">
  375. <title><constant>DTV_ISDBT_SB_SUBCHANNEL_ID</constant></title>
  376. <para>This field only applies if <constant>DTV_ISDBT_SOUND_BROADCASTING</constant> is '1'.</para>
  377. <para>(Note of the author: This might not be the correct description of the
  378. <constant>SUBCHANNEL-ID</constant> in all details, but it is my understanding of the technical
  379. background needed to program a device)</para>
  380. <para>An ISDB-Tsb channel (1 or 3 segments) can be broadcasted alone or in a
  381. set of connected ISDB-Tsb channels. In this set of channels every
  382. channel can be received independently. The number of connected
  383. ISDB-Tsb segment can vary, e.g. depending on the frequency spectrum
  384. bandwidth available.</para>
  385. <para>Example: Assume 8 ISDB-Tsb connected segments are broadcasted. The
  386. broadcaster has several possibilities to put those channels in the
  387. air: Assuming a normal 13-segment ISDB-T spectrum he can align the 8
  388. segments from position 1-8 to 5-13 or anything in between.</para>
  389. <para>The underlying layer of segments are subchannels: each segment is
  390. consisting of several subchannels with a predefined IDs. A sub-channel
  391. is used to help the demodulator to synchronize on the channel.</para>
  392. <para>An ISDB-T channel is always centered over all sub-channels. As for
  393. the example above, in ISDB-Tsb it is no longer as simple as that.</para>
  394. <para><constant>The DTV_ISDBT_SB_SUBCHANNEL_ID</constant> parameter is used to give the
  395. sub-channel ID of the segment to be demodulated.</para>
  396. <para>Possible values: 0 .. 41, -1 (AUTO)</para>
  397. </section>
  398. <section id="DTV-ISDBT-SB-SEGMENT-IDX">
  399. <title><constant>DTV_ISDBT_SB_SEGMENT_IDX</constant></title>
  400. <para>This field only applies if <constant>DTV_ISDBT_SOUND_BROADCASTING</constant> is '1'.</para>
  401. <para><constant>DTV_ISDBT_SB_SEGMENT_IDX</constant> gives the index of the segment to be
  402. demodulated for an ISDB-Tsb channel where several of them are
  403. transmitted in the connected manner.</para>
  404. <para>Possible values: 0 .. <constant>DTV_ISDBT_SB_SEGMENT_COUNT</constant> - 1</para>
  405. <para>Note: This value cannot be determined by an automatic channel search.</para>
  406. </section>
  407. <section id="DTV-ISDBT-SB-SEGMENT-COUNT">
  408. <title><constant>DTV_ISDBT_SB_SEGMENT_COUNT</constant></title>
  409. <para>This field only applies if <constant>DTV_ISDBT_SOUND_BROADCASTING</constant> is '1'.</para>
  410. <para><constant>DTV_ISDBT_SB_SEGMENT_COUNT</constant> gives the total count of connected ISDB-Tsb
  411. channels.</para>
  412. <para>Possible values: 1 .. 13</para>
  413. <para>Note: This value cannot be determined by an automatic channel search.</para>
  414. </section>
  415. <section id="isdb-hierq-layers">
  416. <title>Hierarchical layers</title>
  417. <para>ISDB-T channels can be coded hierarchically. As opposed to DVB-T in
  418. ISDB-T hierarchical layers can be decoded simultaneously. For that
  419. reason a ISDB-T demodulator has 3 viterbi and 3 reed-solomon-decoders.</para>
  420. <para>ISDB-T has 3 hierarchical layers which each can use a part of the
  421. available segments. The total number of segments over all layers has
  422. to 13 in ISDB-T.</para>
  423. <section id="DTV-ISDBT-LAYER-ENABLED">
  424. <title><constant>DTV_ISDBT_LAYER_ENABLED</constant></title>
  425. <para>Hierarchical reception in ISDB-T is achieved by enabling or disabling
  426. layers in the decoding process. Setting all bits of
  427. <constant>DTV_ISDBT_LAYER_ENABLED</constant> to '1' forces all layers (if applicable) to be
  428. demodulated. This is the default.</para>
  429. <para>If the channel is in the partial reception mode
  430. (<constant>DTV_ISDBT_PARTIAL_RECEPTION</constant> = 1) the central segment can be decoded
  431. independently of the other 12 segments. In that mode layer A has to
  432. have a <constant>SEGMENT_COUNT</constant> of 1.</para>
  433. <para>In ISDB-Tsb only layer A is used, it can be 1 or 3 in ISDB-Tsb
  434. according to <constant>DTV_ISDBT_PARTIAL_RECEPTION</constant>. <constant>SEGMENT_COUNT</constant> must be filled
  435. accordingly.</para>
  436. <para>Possible values: 0x1, 0x2, 0x4 (|-able)</para>
  437. <para><constant>DTV_ISDBT_LAYER_ENABLED[0:0]</constant> - layer A</para>
  438. <para><constant>DTV_ISDBT_LAYER_ENABLED[1:1]</constant> - layer B</para>
  439. <para><constant>DTV_ISDBT_LAYER_ENABLED[2:2]</constant> - layer C</para>
  440. <para><constant>DTV_ISDBT_LAYER_ENABLED[31:3]</constant> unused</para>
  441. </section>
  442. <section id="DTV-ISDBT-LAYER-FEC">
  443. <title><constant>DTV_ISDBT_LAYER*_FEC</constant></title>
  444. <para>Possible values: <constant>FEC_AUTO</constant>, <constant>FEC_1_2</constant>, <constant>FEC_2_3</constant>, <constant>FEC_3_4</constant>, <constant>FEC_5_6</constant>, <constant>FEC_7_8</constant></para>
  445. </section>
  446. <section id="DTV-ISDBT-LAYER-MODULATION">
  447. <title><constant>DTV_ISDBT_LAYER*_MODULATION</constant></title>
  448. <para>Possible values: <constant>QAM_AUTO</constant>, QP<constant>SK, QAM_16</constant>, <constant>QAM_64</constant>, <constant>DQPSK</constant></para>
  449. <para>Note: If layer C is <constant>DQPSK</constant> layer B has to be <constant>DQPSK</constant>. If layer B is <constant>DQPSK</constant>
  450. and <constant>DTV_ISDBT_PARTIAL_RECEPTION</constant>=0 layer has to be <constant>DQPSK</constant>.</para>
  451. </section>
  452. <section id="DTV-ISDBT-LAYER-SEGMENT-COUNT">
  453. <title><constant>DTV_ISDBT_LAYER*_SEGMENT_COUNT</constant></title>
  454. <para>Possible values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, -1 (AUTO)</para>
  455. <para>Note: Truth table for <constant>DTV_ISDBT_SOUND_BROADCASTING</constant> and
  456. <constant>DTV_ISDBT_PARTIAL_RECEPTION</constant> and <constant>LAYER</constant>*_SEGMENT_COUNT</para>
  457. <informaltable id="isdbt-layer_seg-cnt-table">
  458. <tgroup cols="6">
  459. <tbody>
  460. <row>
  461. <entry>PR</entry>
  462. <entry>SB</entry>
  463. <entry>Layer A width</entry>
  464. <entry>Layer B width</entry>
  465. <entry>Layer C width</entry>
  466. <entry>total width</entry>
  467. </row>
  468. <row>
  469. <entry>0</entry>
  470. <entry>0</entry>
  471. <entry>1 .. 13</entry>
  472. <entry>1 .. 13</entry>
  473. <entry>1 .. 13</entry>
  474. <entry>13</entry>
  475. </row>
  476. <row>
  477. <entry>1</entry>
  478. <entry>0</entry>
  479. <entry>1</entry>
  480. <entry>1 .. 13</entry>
  481. <entry>1 .. 13</entry>
  482. <entry>13</entry>
  483. </row>
  484. <row>
  485. <entry>0</entry>
  486. <entry>1</entry>
  487. <entry>1</entry>
  488. <entry>0</entry>
  489. <entry>0</entry>
  490. <entry>1</entry>
  491. </row>
  492. <row>
  493. <entry>1</entry>
  494. <entry>1</entry>
  495. <entry>1</entry>
  496. <entry>2</entry>
  497. <entry>0</entry>
  498. <entry>13</entry>
  499. </row>
  500. </tbody>
  501. </tgroup>
  502. </informaltable>
  503. </section>
  504. <section id="DTV-ISDBT-LAYER-TIME-INTERLEAVING">
  505. <title><constant>DTV_ISDBT_LAYER*_TIME_INTERLEAVING</constant></title>
  506. <para>Possible values: 0, 1, 2, 3, -1 (AUTO)</para>
  507. <para>Note: The real inter-leaver depth-names depend on the mode (fft-size); the values
  508. here are referring to what can be found in the TMCC-structure -
  509. independent of the mode.</para>
  510. </section>
  511. </section>
  512. <section id="DTV-API-VERSION">
  513. <title><constant>DTV_API_VERSION</constant></title>
  514. <para>Returns the major/minor version of the DVB API</para>
  515. </section>
  516. <section id="DTV-CODE-RATE-HP">
  517. <title><constant>DTV_CODE_RATE_HP</constant></title>
  518. <para>Used on terrestrial transmissions. The acceptable values are:
  519. </para>
  520. <programlisting>
  521. typedef enum fe_code_rate {
  522. FEC_NONE = 0,
  523. FEC_1_2,
  524. FEC_2_3,
  525. FEC_3_4,
  526. FEC_4_5,
  527. FEC_5_6,
  528. FEC_6_7,
  529. FEC_7_8,
  530. FEC_8_9,
  531. FEC_AUTO,
  532. FEC_3_5,
  533. FEC_9_10,
  534. } fe_code_rate_t;
  535. </programlisting>
  536. </section>
  537. <section id="DTV-CODE-RATE-LP">
  538. <title><constant>DTV_CODE_RATE_LP</constant></title>
  539. <para>Used on terrestrial transmissions. The acceptable values are:
  540. </para>
  541. <programlisting>
  542. typedef enum fe_code_rate {
  543. FEC_NONE = 0,
  544. FEC_1_2,
  545. FEC_2_3,
  546. FEC_3_4,
  547. FEC_4_5,
  548. FEC_5_6,
  549. FEC_6_7,
  550. FEC_7_8,
  551. FEC_8_9,
  552. FEC_AUTO,
  553. FEC_3_5,
  554. FEC_9_10,
  555. } fe_code_rate_t;
  556. </programlisting>
  557. </section>
  558. <section id="DTV-GUARD-INTERVAL">
  559. <title><constant>DTV_GUARD_INTERVAL</constant></title>
  560. <para>Possible values are:</para>
  561. <programlisting>
  562. typedef enum fe_guard_interval {
  563. GUARD_INTERVAL_1_32,
  564. GUARD_INTERVAL_1_16,
  565. GUARD_INTERVAL_1_8,
  566. GUARD_INTERVAL_1_4,
  567. GUARD_INTERVAL_AUTO,
  568. GUARD_INTERVAL_1_128,
  569. GUARD_INTERVAL_19_128,
  570. GUARD_INTERVAL_19_256,
  571. } fe_guard_interval_t;
  572. </programlisting>
  573. <para>Notes:</para>
  574. <para>1) If <constant>DTV_GUARD_INTERVAL</constant> is set the <constant>GUARD_INTERVAL_AUTO</constant> the hardware will
  575. try to find the correct guard interval (if capable) and will use TMCC to fill
  576. in the missing parameters.</para>
  577. <para>2) Intervals 1/128, 19/128 and 19/256 are used only for DVB-T2 at present</para>
  578. </section>
  579. <section id="DTV-TRANSMISSION-MODE">
  580. <title><constant>DTV_TRANSMISSION_MODE</constant></title>
  581. <para>Specifies the number of carriers used by the standard</para>
  582. <para>Possible values are:</para>
  583. <programlisting>
  584. typedef enum fe_transmit_mode {
  585. TRANSMISSION_MODE_2K,
  586. TRANSMISSION_MODE_8K,
  587. TRANSMISSION_MODE_AUTO,
  588. TRANSMISSION_MODE_4K,
  589. TRANSMISSION_MODE_1K,
  590. TRANSMISSION_MODE_16K,
  591. TRANSMISSION_MODE_32K,
  592. } fe_transmit_mode_t;
  593. </programlisting>
  594. <para>Notes:</para>
  595. <para>1) ISDB-T supports three carrier/symbol-size: 8K, 4K, 2K. It is called
  596. 'mode' in the standard: Mode 1 is 2K, mode 2 is 4K, mode 3 is 8K</para>
  597. <para>2) If <constant>DTV_TRANSMISSION_MODE</constant> is set the <constant>TRANSMISSION_MODE_AUTO</constant> the
  598. hardware will try to find the correct FFT-size (if capable) and will
  599. use TMCC to fill in the missing parameters.</para>
  600. <para>3) DVB-T specifies 2K and 8K as valid sizes.</para>
  601. <para>4) DVB-T2 specifies 1K, 2K, 4K, 8K, 16K and 32K.</para>
  602. </section>
  603. <section id="DTV-HIERARCHY">
  604. <title><constant>DTV_HIERARCHY</constant></title>
  605. <para>Frontend hierarchy</para>
  606. <programlisting>
  607. typedef enum fe_hierarchy {
  608. HIERARCHY_NONE,
  609. HIERARCHY_1,
  610. HIERARCHY_2,
  611. HIERARCHY_4,
  612. HIERARCHY_AUTO
  613. } fe_hierarchy_t;
  614. </programlisting>
  615. </section>
  616. <section id="DTV-ISDBS-TS-ID">
  617. <title><constant>DTV_ISDBS_TS_ID</constant></title>
  618. <para>Currently unused.</para>
  619. </section>
  620. <section id="DTV-DVBT2-PLP-ID">
  621. <title><constant>DTV_DVBT2_PLP_ID</constant></title>
  622. <para>DVB-T2 supports Physical Layer Pipes (PLP) to allow transmission of
  623. many data types via a single multiplex. The API will soon support this
  624. at which point this section will be expanded.</para>
  625. </section>
  626. </section>
  627. <section id="frontend-property-terrestrial-systems">
  628. <title>Properties used on terrestrial delivery systems</title>
  629. <section id="dvbt-params">
  630. <title>DVB-T delivery system</title>
  631. <para>The following parameters are valid for DVB-T:</para>
  632. <itemizedlist mark='opencircle'>
  633. <listitem><para><link linkend="DTV-API-VERSION"><constant>DTV_API_VERSION</constant></link></para></listitem>
  634. <listitem><para><link linkend="DTV-TUNE"><constant>DTV_TUNE</constant></link></para></listitem>
  635. <listitem><para><link linkend="DTV-CLEAR"><constant>DTV_CLEAR</constant></link></para></listitem>
  636. <listitem><para><link linkend="DTV-FREQUENCY"><constant>DTV_FREQUENCY</constant></link></para></listitem>
  637. <listitem><para><link linkend="DTV-MODULATION"><constant>DTV_MODULATION</constant></link></para></listitem>
  638. <listitem><para><link linkend="DTV-BANDWIDTH-HZ"><constant>DTV_BANDWIDTH_HZ</constant></link></para></listitem>
  639. <listitem><para><link linkend="DTV-INVERSION"><constant>DTV_INVERSION</constant></link></para></listitem>
  640. <listitem><para><link linkend="DTV-CODE-RATE-HP"><constant>DTV_CODE_RATE_HP</constant></link></para></listitem>
  641. <listitem><para><link linkend="DTV-CODE-RATE-LP"><constant>DTV_CODE_RATE_LP</constant></link></para></listitem>
  642. <listitem><para><link linkend="DTV-GUARD-INTERVAL"><constant>DTV_GUARD_INTERVAL</constant></link></para></listitem>
  643. <listitem><para><link linkend="DTV-TRANSMISSION-MODE"><constant>DTV_TRANSMISSION_MODE</constant></link></para></listitem>
  644. <listitem><para><link linkend="DTV-HIERARCHY"><constant>DTV_HIERARCHY</constant></link></para></listitem>
  645. <listitem><para><link linkend="DTV-DELIVERY-SYSTEM"><constant>DTV_DELIVERY_SYSTEM</constant></link></para></listitem>
  646. </itemizedlist>
  647. </section>
  648. <section id="dvbt2-params">
  649. <title>DVB-T2 delivery system</title>
  650. <para>DVB-T2support is currently in the early stages
  651. of development so expect this section to grow and become
  652. more detailed with time.</para>
  653. <para>The following parameters are valid for DVB-T2:</para>
  654. <itemizedlist mark='opencircle'>
  655. <listitem><para><link linkend="DTV-API-VERSION"><constant>DTV_API_VERSION</constant></link></para></listitem>
  656. <listitem><para><link linkend="DTV-TUNE"><constant>DTV_TUNE</constant></link></para></listitem>
  657. <listitem><para><link linkend="DTV-CLEAR"><constant>DTV_CLEAR</constant></link></para></listitem>
  658. <listitem><para><link linkend="DTV-FREQUENCY"><constant>DTV_FREQUENCY</constant></link></para></listitem>
  659. <listitem><para><link linkend="DTV-MODULATION"><constant>DTV_MODULATION</constant></link></para></listitem>
  660. <listitem><para><link linkend="DTV-BANDWIDTH-HZ"><constant>DTV_BANDWIDTH_HZ</constant></link></para></listitem>
  661. <listitem><para><link linkend="DTV-INVERSION"><constant>DTV_INVERSION</constant></link></para></listitem>
  662. <listitem><para><link linkend="DTV-CODE-RATE-HP"><constant>DTV_CODE_RATE_HP</constant></link></para></listitem>
  663. <listitem><para><link linkend="DTV-CODE-RATE-LP"><constant>DTV_CODE_RATE_LP</constant></link></para></listitem>
  664. <listitem><para><link linkend="DTV-GUARD-INTERVAL"><constant>DTV_GUARD_INTERVAL</constant></link></para></listitem>
  665. <listitem><para><link linkend="DTV-TRANSMISSION-MODE"><constant>DTV_TRANSMISSION_MODE</constant></link></para></listitem>
  666. <listitem><para><link linkend="DTV-HIERARCHY"><constant>DTV_HIERARCHY</constant></link></para></listitem>
  667. <listitem><para><link linkend="DTV-DELIVERY-SYSTEM"><constant>DTV_DELIVERY_SYSTEM</constant></link></para></listitem>
  668. <listitem><para><link linkend="DTV-DVBT2-PLP-ID"><constant>DTV_DVBT2_PLP_ID</constant></link></para></listitem>
  669. </itemizedlist>
  670. </section>
  671. <section id="isdbt">
  672. <title>ISDB-T delivery system</title>
  673. <para>This ISDB-T/ISDB-Tsb API extension should reflect all information
  674. needed to tune any ISDB-T/ISDB-Tsb hardware. Of course it is possible
  675. that some very sophisticated devices won't need certain parameters to
  676. tune.</para>
  677. <para>The information given here should help application writers to know how
  678. to handle ISDB-T and ISDB-Tsb hardware using the Linux DVB-API.</para>
  679. <para>The details given here about ISDB-T and ISDB-Tsb are just enough to
  680. basically show the dependencies between the needed parameter values,
  681. but surely some information is left out. For more detailed information
  682. see the following documents:</para>
  683. <para>ARIB STD-B31 - "Transmission System for Digital Terrestrial
  684. Television Broadcasting" and</para>
  685. <para>ARIB TR-B14 - "Operational Guidelines for Digital Terrestrial
  686. Television Broadcasting".</para>
  687. <para>In order to understand the ISDB specific parameters,
  688. one has to have some knowledge the channel structure in
  689. ISDB-T and ISDB-Tsb. I.e. it has to be known to
  690. the reader that an ISDB-T channel consists of 13 segments,
  691. that it can have up to 3 layer sharing those segments,
  692. and things like that.</para>
  693. <para>The following parameters are valid for ISDB-T:</para>
  694. <itemizedlist mark='opencircle'>
  695. <listitem><para><link linkend="DTV-API-VERSION"><constant>DTV_API_VERSION</constant></link></para></listitem>
  696. <listitem><para><link linkend="DTV-TUNE"><constant>DTV_TUNE</constant></link></para></listitem>
  697. <listitem><para><link linkend="DTV-CLEAR"><constant>DTV_CLEAR</constant></link></para></listitem>
  698. <listitem><para><link linkend="DTV-FREQUENCY"><constant>DTV_FREQUENCY</constant></link></para></listitem>
  699. <listitem><para><link linkend="DTV-MODULATION"><constant>DTV_MODULATION</constant></link></para></listitem>
  700. <listitem><para><link linkend="DTV-BANDWIDTH-HZ"><constant>DTV_BANDWIDTH_HZ</constant></link></para></listitem>
  701. <listitem><para><link linkend="DTV-INVERSION"><constant>DTV_INVERSION</constant></link></para></listitem>
  702. <listitem><para><link linkend="DTV-CODE-RATE-HP"><constant>DTV_CODE_RATE_HP</constant></link></para></listitem>
  703. <listitem><para><link linkend="DTV-CODE-RATE-LP"><constant>DTV_CODE_RATE_LP</constant></link></para></listitem>
  704. <listitem><para><link linkend="DTV-GUARD-INTERVAL"><constant>DTV_GUARD_INTERVAL</constant></link></para></listitem>
  705. <listitem><para><link linkend="DTV-TRANSMISSION-MODE"><constant>DTV_TRANSMISSION_MODE</constant></link></para></listitem>
  706. <listitem><para><link linkend="DTV-HIERARCHY"><constant>DTV_HIERARCHY</constant></link></para></listitem>
  707. <listitem><para><link linkend="DTV-DELIVERY-SYSTEM"><constant>DTV_DELIVERY_SYSTEM</constant></link></para></listitem>
  708. <listitem><para><link linkend="DTV-ISDBT-LAYER-ENABLED"><constant>DTV_ISDBT_LAYER_ENABLED</constant></link></para></listitem>
  709. <listitem><para><link linkend="DTV-ISDBT-PARTIAL-RECEPTION"><constant>DTV_ISDBT_PARTIAL_RECEPTION</constant></link></para></listitem>
  710. <listitem><para><link linkend="DTV-ISDBT-SOUND-BROADCASTING"><constant>DTV_ISDBT_SOUND_BROADCASTING</constant></link></para></listitem>
  711. <listitem><para><link linkend="DTV-ISDBT-SB-SUBCHANNEL-ID"><constant>DTV_ISDBT_SB_SUBCHANNEL_ID</constant></link></para></listitem>
  712. <listitem><para><link linkend="DTV-ISDBT-SB-SEGMENT-IDX"><constant>DTV_ISDBT_SB_SEGMENT_IDX</constant></link></para></listitem>
  713. <listitem><para><link linkend="DTV-ISDBT-SB-SEGMENT-COUNT"><constant>DTV_ISDBT_SB_SEGMENT_COUNT</constant></link></para></listitem>
  714. <listitem><para><link linkend="DTV-ISDBT-LAYER-FEC"><constant>DTV_ISDBT_LAYERA_FEC</constant></link></para></listitem>
  715. <listitem><para><link linkend="DTV-ISDBT-LAYER-MODULATION"><constant>DTV_ISDBT_LAYERA_MODULATION</constant></link></para></listitem>
  716. <listitem><para><link linkend="DTV-ISDBT-LAYER-SEGMENT-COUNT"><constant>DTV_ISDBT_LAYERA_SEGMENT_COUNT</constant></link></para></listitem>
  717. <listitem><para><link linkend="DTV-ISDBT-LAYER-TIME-INTERLEAVING"><constant>DTV_ISDBT_LAYERA_TIME_INTERLEAVING</constant></link></para></listitem>
  718. <listitem><para><link linkend="DTV-ISDBT-LAYER-FEC"><constant>DTV_ISDBT_LAYERB_FEC</constant></link></para></listitem>
  719. <listitem><para><link linkend="DTV-ISDBT-LAYER-MODULATION"><constant>DTV_ISDBT_LAYERB_MODULATION</constant></link></para></listitem>
  720. <listitem><para><link linkend="DTV-ISDBT-LAYER-SEGMENT-COUNT"><constant>DTV_ISDBT_LAYERB_SEGMENT_COUNT</constant></link></para></listitem>
  721. <listitem><para><link linkend="DTV-ISDBT-LAYER-TIME-INTERLEAVING"><constant>DTV_ISDBT_LAYERB_TIME_INTERLEAVING</constant></link></para></listitem>
  722. <listitem><para><link linkend="DTV-ISDBT-LAYER-FEC"><constant>DTV_ISDBT_LAYERC_FEC</constant></link></para></listitem>
  723. <listitem><para><link linkend="DTV-ISDBT-LAYER-MODULATION"><constant>DTV_ISDBT_LAYERC_MODULATION</constant></link></para></listitem>
  724. <listitem><para><link linkend="DTV-ISDBT-LAYER-SEGMENT-COUNT"><constant>DTV_ISDBT_LAYERC_SEGMENT_COUNT</constant></link></para></listitem>
  725. <listitem><para><link linkend="DTV-ISDBT-LAYER-TIME-INTERLEAVING"><constant>DTV_ISDBT_LAYERC_TIME_INTERLEAVING</constant></link></para></listitem>
  726. </itemizedlist>
  727. </section>
  728. </section>
  729. <section id="frontend-property-cable-systems">
  730. <title>Properties used on cable delivery systems</title>
  731. <para>TODO</para>
  732. </section>
  733. <section id="frontend-property-satellital-systems">
  734. <title>Properties used on satellital delivery systems</title>
  735. <para>TODO</para>
  736. </section>
  737. </section>