frontend.xml 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937
  1. <title>DVB Frontend API</title>
  2. <para>The DVB frontend device controls the tuner and DVB demodulator
  3. hardware. It can be accessed through <emphasis
  4. role="tt">/dev/dvb/adapter0/frontend0</emphasis>. Data types and and
  5. ioctl definitions can be accessed by including <emphasis
  6. role="tt">linux/dvb/frontend.h</emphasis> in your application.</para>
  7. <para>DVB frontends come in three varieties: DVB-S (satellite), DVB-C
  8. (cable) and DVB-T (terrestrial). Transmission via the internet (DVB-IP)
  9. is not yet handled by this API but a future extension is possible. For
  10. DVB-S the frontend device also supports satellite equipment control
  11. (SEC) via DiSEqC and V-SEC protocols. The DiSEqC (digital SEC)
  12. specification is available from
  13. <ulink url="http://www.eutelsat.com/satellites/4_5_5.html">Eutelsat</ulink>.</para>
  14. <para>Note that the DVB API may also be used for MPEG decoder-only PCI
  15. cards, in which case there exists no frontend device.</para>
  16. <section id="frontend_types">
  17. <title>Frontend Data Types</title>
  18. <section id="fe-type-t">
  19. <title>Frontend type</title>
  20. <para>For historical reasons, frontend types are named by the type of modulation used in
  21. transmission. The fontend types are given by fe_type_t type, defined as:</para>
  22. <table pgwide="1" frame="none" id="fe-type">
  23. <title>Frontend types</title>
  24. <tgroup cols="3">
  25. &cs-def;
  26. <thead>
  27. <row>
  28. <entry>fe_type</entry>
  29. <entry>Description</entry>
  30. <entry><link linkend="DTV-DELIVERY-SYSTEM">DTV_DELIVERY_SYSTEM</link> equivalent type</entry>
  31. </row>
  32. </thead>
  33. <tbody valign="top">
  34. <row>
  35. <entry id="FE_QPSK"><constant>FE_QPSK</constant></entry>
  36. <entry>For DVB-S standard</entry>
  37. <entry><constant>SYS_DVBS</constant></entry>
  38. </row>
  39. <row>
  40. <entry id="FE_QAM"><constant>FE_QAM</constant></entry>
  41. <entry>For DVB-C annex A/C standard</entry>
  42. <entry><constant>SYS_DVBC_ANNEX_AC</constant></entry>
  43. </row>
  44. <row>
  45. <entry id="FE_OFDM"><constant>FE_OFDM</constant></entry>
  46. <entry>For DVB-T standard</entry>
  47. <entry><constant>SYS_DVBT</constant></entry>
  48. </row>
  49. <row>
  50. <entry id="FE_ATSC"><constant>FE_ATSC</constant></entry>
  51. <entry>For ATSC standard (terrestrial) or for DVB-C Annex B (cable) used in US.</entry>
  52. <entry><constant>SYS_ATSC</constant> (terrestrial) or <constant>SYS_DVBC_ANNEX_B</constant> (cable)</entry>
  53. </row>
  54. </tbody></tgroup></table>
  55. <para>Newer formats like DVB-S2, ISDB-T, ISDB-S and DVB-T2 are not described at the above, as they're
  56. supported via the new <link linkend="FE_GET_SET_PROPERTY">FE_GET_PROPERTY/FE_GET_SET_PROPERTY</link> ioctl's, using the <link linkend="DTV-DELIVERY-SYSTEM">DTV_DELIVERY_SYSTEM</link> parameter.
  57. </para>
  58. </section>
  59. <section id="fe-caps-t">
  60. <title>frontend capabilities</title>
  61. <para>Capabilities describe what a frontend can do. Some capabilities can only be supported for
  62. a specific frontend type.</para>
  63. <programlisting>
  64. typedef enum fe_caps {
  65. FE_IS_STUPID = 0,
  66. FE_CAN_INVERSION_AUTO = 0x1,
  67. FE_CAN_FEC_1_2 = 0x2,
  68. FE_CAN_FEC_2_3 = 0x4,
  69. FE_CAN_FEC_3_4 = 0x8,
  70. FE_CAN_FEC_4_5 = 0x10,
  71. FE_CAN_FEC_5_6 = 0x20,
  72. FE_CAN_FEC_6_7 = 0x40,
  73. FE_CAN_FEC_7_8 = 0x80,
  74. FE_CAN_FEC_8_9 = 0x100,
  75. FE_CAN_FEC_AUTO = 0x200,
  76. FE_CAN_QPSK = 0x400,
  77. FE_CAN_QAM_16 = 0x800,
  78. FE_CAN_QAM_32 = 0x1000,
  79. FE_CAN_QAM_64 = 0x2000,
  80. FE_CAN_QAM_128 = 0x4000,
  81. FE_CAN_QAM_256 = 0x8000,
  82. FE_CAN_QAM_AUTO = 0x10000,
  83. FE_CAN_TRANSMISSION_MODE_AUTO = 0x20000,
  84. FE_CAN_BANDWIDTH_AUTO = 0x40000,
  85. FE_CAN_GUARD_INTERVAL_AUTO = 0x80000,
  86. FE_CAN_HIERARCHY_AUTO = 0x100000,
  87. FE_CAN_8VSB = 0x200000,
  88. FE_CAN_16VSB = 0x400000,
  89. FE_HAS_EXTENDED_CAPS = 0x800000,
  90. FE_CAN_TURBO_FEC = 0x8000000,
  91. FE_CAN_2G_MODULATION = 0x10000000,
  92. FE_NEEDS_BENDING = 0x20000000,
  93. FE_CAN_RECOVER = 0x40000000,
  94. FE_CAN_MUTE_TS = 0x80000000
  95. } fe_caps_t;
  96. </programlisting>
  97. </section>
  98. <section id="dvb-frontend-info">
  99. <title>frontend information</title>
  100. <para>Information about the frontend ca be queried with
  101. <link linkend="FE_GET_INFO">FE_GET_INFO</link>.</para>
  102. <programlisting>
  103. struct dvb_frontend_info {
  104. char name[128];
  105. fe_type_t type;
  106. uint32_t frequency_min;
  107. uint32_t frequency_max;
  108. uint32_t frequency_stepsize;
  109. uint32_t frequency_tolerance;
  110. uint32_t symbol_rate_min;
  111. uint32_t symbol_rate_max;
  112. uint32_t symbol_rate_tolerance; /&#x22C6; ppm &#x22C6;/
  113. uint32_t notifier_delay; /&#x22C6; ms &#x22C6;/
  114. fe_caps_t caps;
  115. };
  116. </programlisting>
  117. </section>
  118. <section id="dvb-diseqc-master-cmd">
  119. <title>diseqc master command</title>
  120. <para>A message sent from the frontend to DiSEqC capable equipment.</para>
  121. <programlisting>
  122. struct dvb_diseqc_master_cmd {
  123. uint8_t msg [6]; /&#x22C6; { framing, address, command, data[3] } &#x22C6;/
  124. uint8_t msg_len; /&#x22C6; valid values are 3...6 &#x22C6;/
  125. };
  126. </programlisting>
  127. </section>
  128. <section role="subsection">
  129. <title>diseqc slave reply</title>
  130. <para>A reply to the frontend from DiSEqC 2.0 capable equipment.</para>
  131. <programlisting>
  132. struct dvb_diseqc_slave_reply {
  133. uint8_t msg [4]; /&#x22C6; { framing, data [3] } &#x22C6;/
  134. uint8_t msg_len; /&#x22C6; valid values are 0...4, 0 means no msg &#x22C6;/
  135. int timeout; /&#x22C6; return from ioctl after timeout ms with &#x22C6;/
  136. }; /&#x22C6; errorcode when no message was received &#x22C6;/
  137. </programlisting>
  138. </section>
  139. <section id="fe-sec-voltage-t">
  140. <title>diseqc slave reply</title>
  141. <para>The voltage is usually used with non-DiSEqC capable LNBs to switch the polarzation
  142. (horizontal/vertical). When using DiSEqC epuipment this voltage has to be switched
  143. consistently to the DiSEqC commands as described in the DiSEqC spec.</para>
  144. <programlisting>
  145. typedef enum fe_sec_voltage {
  146. SEC_VOLTAGE_13,
  147. SEC_VOLTAGE_18
  148. } fe_sec_voltage_t;
  149. </programlisting>
  150. </section>
  151. <section id="fe-sec-tone-mode-t">
  152. <title>SEC continuous tone</title>
  153. <para>The continuous 22KHz tone is usually used with non-DiSEqC capable LNBs to switch the
  154. high/low band of a dual-band LNB. When using DiSEqC epuipment this voltage has to
  155. be switched consistently to the DiSEqC commands as described in the DiSEqC
  156. spec.</para>
  157. <programlisting>
  158. typedef enum fe_sec_tone_mode {
  159. SEC_TONE_ON,
  160. SEC_TONE_OFF
  161. } fe_sec_tone_mode_t;
  162. </programlisting>
  163. </section>
  164. <section id="fe-sec-mini-cmd-t">
  165. <title>SEC tone burst</title>
  166. <para>The 22KHz tone burst is usually used with non-DiSEqC capable switches to select
  167. between two connected LNBs/satellites. When using DiSEqC epuipment this voltage has to
  168. be switched consistently to the DiSEqC commands as described in the DiSEqC
  169. spec.</para>
  170. <programlisting>
  171. typedef enum fe_sec_mini_cmd {
  172. SEC_MINI_A,
  173. SEC_MINI_B
  174. } fe_sec_mini_cmd_t;
  175. </programlisting>
  176. <para></para>
  177. </section>
  178. <section id="fe-status-t">
  179. <title>frontend status</title>
  180. <para>Several functions of the frontend device use the fe_status data type defined
  181. by</para>
  182. <programlisting>
  183. typedef enum fe_status {
  184. FE_HAS_SIGNAL = 0x01, /&#x22C6; found something above the noise level &#x22C6;/
  185. FE_HAS_CARRIER = 0x02, /&#x22C6; found a DVB signal &#x22C6;/
  186. FE_HAS_VITERBI = 0x04, /&#x22C6; FEC is stable &#x22C6;/
  187. FE_HAS_SYNC = 0x08, /&#x22C6; found sync bytes &#x22C6;/
  188. FE_HAS_LOCK = 0x10, /&#x22C6; everything's working... &#x22C6;/
  189. FE_TIMEDOUT = 0x20, /&#x22C6; no lock within the last ~2 seconds &#x22C6;/
  190. FE_REINIT = 0x40 /&#x22C6; frontend was reinitialized, &#x22C6;/
  191. } fe_status_t; /&#x22C6; application is recommned to reset &#x22C6;/
  192. </programlisting>
  193. <para>to indicate the current state and/or state changes of the frontend hardware.
  194. </para>
  195. </section>
  196. <section id="dvb-frontend-parameters">
  197. <title>frontend parameters</title>
  198. <para>The kind of parameters passed to the frontend device for tuning depend on
  199. the kind of hardware you are using. All kinds of parameters are combined as an
  200. union in the FrontendParameters structure:</para>
  201. <programlisting>
  202. struct dvb_frontend_parameters {
  203. uint32_t frequency; /&#x22C6; (absolute) frequency in Hz for QAM/OFDM &#x22C6;/
  204. /&#x22C6; intermediate frequency in kHz for QPSK &#x22C6;/
  205. fe_spectral_inversion_t inversion;
  206. union {
  207. struct dvb_qpsk_parameters qpsk;
  208. struct dvb_qam_parameters qam;
  209. struct dvb_ofdm_parameters ofdm;
  210. struct dvb_vsb_parameters vsb;
  211. } u;
  212. };
  213. </programlisting>
  214. <para>In the case of QPSK frontends the <constant>frequency</constant> field specifies the intermediate
  215. frequency, i.e. the offset which is effectively added to the local oscillator frequency (LOF) of
  216. the LNB. The intermediate frequency has to be specified in units of kHz. For QAM and
  217. OFDM frontends the <constant>frequency</constant> specifies the absolute frequency and is given in Hz.
  218. </para>
  219. <section id="dvb-qpsk-parameters">
  220. <title>QPSK parameters</title>
  221. <para>For satellite QPSK frontends you have to use the <constant>dvb_qpsk_parameters</constant> structure:</para>
  222. <programlisting>
  223. struct dvb_qpsk_parameters {
  224. uint32_t symbol_rate; /&#x22C6; symbol rate in Symbols per second &#x22C6;/
  225. fe_code_rate_t fec_inner; /&#x22C6; forward error correction (see above) &#x22C6;/
  226. };
  227. </programlisting>
  228. </section>
  229. <section id="dvb-qam-parameters">
  230. <title>QAM parameters</title>
  231. <para>for cable QAM frontend you use the <constant>dvb_qam_parameters</constant> structure:</para>
  232. <programlisting>
  233. struct dvb_qam_parameters {
  234. uint32_t symbol_rate; /&#x22C6; symbol rate in Symbols per second &#x22C6;/
  235. fe_code_rate_t fec_inner; /&#x22C6; forward error correction (see above) &#x22C6;/
  236. fe_modulation_t modulation; /&#x22C6; modulation type (see above) &#x22C6;/
  237. };
  238. </programlisting>
  239. </section>
  240. <section id="dvb-ofdm-parameters">
  241. <title>OFDM parameters</title>
  242. <para>DVB-T frontends are supported by the <constant>dvb_ofdm_parameters</constant> structure:</para>
  243. <programlisting>
  244. struct dvb_ofdm_parameters {
  245. fe_bandwidth_t bandwidth;
  246. fe_code_rate_t code_rate_HP; /&#x22C6; high priority stream code rate &#x22C6;/
  247. fe_code_rate_t code_rate_LP; /&#x22C6; low priority stream code rate &#x22C6;/
  248. fe_modulation_t constellation; /&#x22C6; modulation type (see above) &#x22C6;/
  249. fe_transmit_mode_t transmission_mode;
  250. fe_guard_interval_t guard_interval;
  251. fe_hierarchy_t hierarchy_information;
  252. };
  253. </programlisting>
  254. </section>
  255. <section id="dvb-vsb-parameters">
  256. <title>VSB parameters</title>
  257. <para>DVB-T frontends are supported by the <constant>dvb_vsb_parameters</constant> structure:</para>
  258. <programlisting>
  259. struct dvb_vsb_parameters {
  260. fe_modulation_t modulation; /&#x22C6; modulation type (see above) &#x22C6;/
  261. };
  262. </programlisting>
  263. </section>
  264. <section id="fe-spectral-inversion-t">
  265. <title>frontend spectral inversion</title>
  266. <para>The Inversion field can take one of these values:
  267. </para>
  268. <programlisting>
  269. typedef enum fe_spectral_inversion {
  270. INVERSION_OFF,
  271. INVERSION_ON,
  272. INVERSION_AUTO
  273. } fe_spectral_inversion_t;
  274. </programlisting>
  275. <para>It indicates if spectral inversion should be presumed or not. In the automatic setting
  276. (<constant>INVERSION_AUTO</constant>) the hardware will try to figure out the correct setting by
  277. itself.
  278. </para>
  279. </section>
  280. <section id="fe-code-rate-t">
  281. <title>frontend code rate</title>
  282. <para>The possible values for the <constant>FEC_inner</constant> field are
  283. </para>
  284. <programlisting>
  285. typedef enum fe_code_rate {
  286. FEC_NONE = 0,
  287. FEC_1_2,
  288. FEC_2_3,
  289. FEC_3_4,
  290. FEC_4_5,
  291. FEC_5_6,
  292. FEC_6_7,
  293. FEC_7_8,
  294. FEC_8_9,
  295. FEC_AUTO,
  296. FEC_3_5,
  297. FEC_9_10,
  298. } fe_code_rate_t;
  299. </programlisting>
  300. <para>which correspond to error correction rates of 1/2, 2/3, etc., no error correction or auto
  301. detection.
  302. </para>
  303. </section>
  304. <section id="fe-modulation-t">
  305. <title>frontend modulation type for QAM and OFDM</title>
  306. <para>For cable and terrestrial frontends (QAM and OFDM) one also has to specify the quadrature
  307. modulation mode which can be one of the following:
  308. </para>
  309. <programlisting>
  310. typedef enum fe_modulation {
  311. QPSK,
  312. QAM_16,
  313. QAM_32,
  314. QAM_64,
  315. QAM_128,
  316. QAM_256,
  317. QAM_AUTO,
  318. VSB_8,
  319. VSB_16,
  320. PSK_8,
  321. APSK_16,
  322. APSK_32,
  323. DQPSK,
  324. } fe_modulation_t;
  325. </programlisting>
  326. </section>
  327. <para>Finally, there are several more parameters for OFDM:
  328. </para>
  329. <section id="fe-transmit-mode-t">
  330. <title>Number of carriers per channel, on OFTM modulation</title>
  331. <programlisting>
  332. typedef enum fe_transmit_mode {
  333. TRANSMISSION_MODE_2K,
  334. TRANSMISSION_MODE_8K,
  335. TRANSMISSION_MODE_AUTO,
  336. TRANSMISSION_MODE_4K,
  337. TRANSMISSION_MODE_1K,
  338. TRANSMISSION_MODE_16K,
  339. TRANSMISSION_MODE_32K,
  340. } fe_transmit_mode_t;
  341. </programlisting>
  342. </section>
  343. <section id="fe-bandwidth-t">
  344. <title>frontend bandwidth</title>
  345. <programlisting>
  346. typedef enum fe_bandwidth {
  347. BANDWIDTH_8_MHZ,
  348. BANDWIDTH_7_MHZ,
  349. BANDWIDTH_6_MHZ,
  350. BANDWIDTH_AUTO,
  351. BANDWIDTH_5_MHZ,
  352. BANDWIDTH_10_MHZ,
  353. BANDWIDTH_1_712_MHZ,
  354. } fe_bandwidth_t;
  355. </programlisting>
  356. </section>
  357. <section id="fe-guard-interval-t">
  358. <title>frontend guard inverval</title>
  359. <programlisting>
  360. typedef enum fe_guard_interval {
  361. GUARD_INTERVAL_1_32,
  362. GUARD_INTERVAL_1_16,
  363. GUARD_INTERVAL_1_8,
  364. GUARD_INTERVAL_1_4,
  365. GUARD_INTERVAL_AUTO,
  366. GUARD_INTERVAL_1_128,
  367. GUARD_INTERVAL_19_128,
  368. GUARD_INTERVAL_19_256,
  369. } fe_guard_interval_t;
  370. </programlisting>
  371. </section>
  372. <section id="fe-hierarchy-t">
  373. <title>frontend hierarchy</title>
  374. <programlisting>
  375. typedef enum fe_hierarchy {
  376. HIERARCHY_NONE,
  377. HIERARCHY_1,
  378. HIERARCHY_2,
  379. HIERARCHY_4,
  380. HIERARCHY_AUTO
  381. } fe_hierarchy_t;
  382. </programlisting>
  383. </section>
  384. </section>
  385. <section id="dvb-frontend-event">
  386. <title>frontend events</title>
  387. <programlisting>
  388. struct dvb_frontend_event {
  389. fe_status_t status;
  390. struct dvb_frontend_parameters parameters;
  391. };
  392. </programlisting>
  393. </section>
  394. </section>
  395. <section id="frontend_fcalls">
  396. <title>Frontend Function Calls</title>
  397. <section id="frontend_f_open">
  398. <title>open()</title>
  399. <para>DESCRIPTION</para>
  400. <informaltable><tgroup cols="1"><tbody><row>
  401. <entry align="char">
  402. <para>This system call opens a named frontend device (/dev/dvb/adapter0/frontend0)
  403. for subsequent use. Usually the first thing to do after a successful open is to
  404. find out the frontend type with <link linkend="FE_GET_INFO">FE_GET_INFO</link>.</para>
  405. <para>The device can be opened in read-only mode, which only allows monitoring of
  406. device status and statistics, or read/write mode, which allows any kind of use
  407. (e.g. performing tuning operations.)
  408. </para>
  409. <para>In a system with multiple front-ends, it is usually the case that multiple devices
  410. cannot be open in read/write mode simultaneously. As long as a front-end
  411. device is opened in read/write mode, other open() calls in read/write mode will
  412. either fail or block, depending on whether non-blocking or blocking mode was
  413. specified. A front-end device opened in blocking mode can later be put into
  414. non-blocking mode (and vice versa) using the F_SETFL command of the fcntl
  415. system call. This is a standard system call, documented in the Linux manual
  416. page for fcntl. When an open() call has succeeded, the device will be ready
  417. for use in the specified mode. This implies that the corresponding hardware is
  418. powered up, and that other front-ends may have been powered down to make
  419. that possible.</para>
  420. </entry>
  421. </row></tbody></tgroup></informaltable>
  422. <para>SYNOPSIS</para>
  423. <informaltable><tgroup cols="1"><tbody><row><entry
  424. align="char">
  425. <para>int open(const char &#x22C6;deviceName, int flags);</para>
  426. </entry>
  427. </row></tbody></tgroup></informaltable>
  428. <para>PARAMETERS
  429. </para>
  430. <informaltable><tgroup cols="2"><tbody><row><entry
  431. align="char">
  432. <para>const char
  433. *deviceName</para>
  434. </entry><entry
  435. align="char">
  436. <para>Name of specific video device.</para>
  437. </entry>
  438. </row><row><entry
  439. align="char">
  440. <para>int flags</para>
  441. </entry><entry
  442. align="char">
  443. <para>A bit-wise OR of the following flags:</para>
  444. </entry>
  445. </row><row><entry
  446. align="char">
  447. </entry><entry
  448. align="char">
  449. <para>O_RDONLY read-only access</para>
  450. </entry>
  451. </row><row><entry
  452. align="char">
  453. </entry><entry
  454. align="char">
  455. <para>O_RDWR read/write access</para>
  456. </entry>
  457. </row><row><entry
  458. align="char">
  459. </entry><entry
  460. align="char">
  461. <para>O_NONBLOCK open in non-blocking mode</para>
  462. </entry>
  463. </row><row><entry
  464. align="char">
  465. </entry><entry
  466. align="char">
  467. <para>(blocking mode is the default)</para>
  468. </entry>
  469. </row></tbody></tgroup></informaltable>
  470. <para>ERRORS
  471. </para>
  472. <informaltable><tgroup cols="2"><tbody><row><entry
  473. align="char">
  474. <para>ENODEV</para>
  475. </entry><entry
  476. align="char">
  477. <para>Device driver not loaded/available.</para>
  478. </entry>
  479. </row><row><entry
  480. align="char">
  481. <para>EINTERNAL</para>
  482. </entry><entry
  483. align="char">
  484. <para>Internal error.</para>
  485. </entry>
  486. </row><row><entry
  487. align="char">
  488. <para>EBUSY</para>
  489. </entry><entry
  490. align="char">
  491. <para>Device or resource busy.</para>
  492. </entry>
  493. </row><row><entry
  494. align="char">
  495. <para>EINVAL</para>
  496. </entry><entry
  497. align="char">
  498. <para>Invalid argument.</para>
  499. </entry>
  500. </row></tbody></tgroup></informaltable>
  501. </section>
  502. <section id="frontend_f_close">
  503. <title>close()</title>
  504. <para>DESCRIPTION
  505. </para>
  506. <informaltable><tgroup cols="1"><tbody><row><entry
  507. align="char">
  508. <para>This system call closes a previously opened front-end device. After closing
  509. a front-end device, its corresponding hardware might be powered down
  510. automatically.</para>
  511. </entry>
  512. </row></tbody></tgroup></informaltable>
  513. <para>SYNOPSIS
  514. </para>
  515. <informaltable><tgroup cols="1"><tbody><row><entry
  516. align="char">
  517. <para>int close(int fd);</para>
  518. </entry>
  519. </row></tbody></tgroup></informaltable>
  520. <para>PARAMETERS
  521. </para>
  522. <informaltable><tgroup cols="2"><tbody><row><entry
  523. align="char">
  524. <para>int fd</para>
  525. </entry><entry
  526. align="char">
  527. <para>File descriptor returned by a previous call to open().</para>
  528. </entry>
  529. </row></tbody></tgroup></informaltable>
  530. <para>ERRORS
  531. </para>
  532. <informaltable><tgroup cols="2"><tbody><row><entry
  533. align="char">
  534. <para>EBADF</para>
  535. </entry><entry
  536. align="char">
  537. <para>fd is not a valid open file descriptor.</para>
  538. </entry>
  539. </row></tbody></tgroup></informaltable>
  540. </section>
  541. <section id="FE_READ_STATUS">
  542. <title>FE_READ_STATUS</title>
  543. <para>DESCRIPTION
  544. </para>
  545. <informaltable><tgroup cols="1"><tbody><row><entry
  546. align="char">
  547. <para>This ioctl call returns status information about the front-end. This call only
  548. requires read-only access to the device.</para>
  549. </entry>
  550. </row></tbody></tgroup></informaltable>
  551. <para>SYNOPSIS
  552. </para>
  553. <informaltable><tgroup cols="1"><tbody><row><entry
  554. align="char">
  555. <para>int ioctl(int fd, int request = <link linkend="FE_READ_STATUS">FE_READ_STATUS</link>,
  556. fe_status_t &#x22C6;status);</para>
  557. </entry>
  558. </row></tbody></tgroup></informaltable>
  559. <para>PARAMETERS
  560. </para>
  561. <informaltable><tgroup cols="2"><tbody><row><entry
  562. align="char">
  563. <para>int fd</para>
  564. </entry><entry
  565. align="char">
  566. <para>File descriptor returned by a previous call to open().</para>
  567. </entry>
  568. </row><row><entry
  569. align="char">
  570. <para>int request</para>
  571. </entry><entry
  572. align="char">
  573. <para>Equals <link linkend="FE_READ_STATUS">FE_READ_STATUS</link> for this command.</para>
  574. </entry>
  575. </row><row><entry
  576. align="char">
  577. <para>struct fe_status_t
  578. *status</para>
  579. </entry><entry
  580. align="char">
  581. <para>Points to the location where the front-end status word is
  582. to be stored.</para>
  583. </entry>
  584. </row></tbody></tgroup></informaltable>
  585. <para>ERRORS
  586. </para>
  587. <informaltable><tgroup cols="2"><tbody><row><entry
  588. align="char">
  589. <para>EBADF</para>
  590. </entry><entry
  591. align="char">
  592. <para>fd is not a valid open file descriptor.</para>
  593. </entry>
  594. </row><row><entry
  595. align="char">
  596. <para>EFAULT</para>
  597. </entry><entry
  598. align="char">
  599. <para>status points to invalid address.</para>
  600. </entry>
  601. </row></tbody></tgroup></informaltable>
  602. </section>
  603. <section id="FE_READ_BER">
  604. <title>FE_READ_BER</title>
  605. <para>DESCRIPTION
  606. </para>
  607. <informaltable><tgroup cols="1"><tbody><row><entry
  608. align="char">
  609. <para>This ioctl call returns the bit error rate for the signal currently
  610. received/demodulated by the front-end. For this command, read-only access to
  611. the device is sufficient.</para>
  612. </entry>
  613. </row></tbody></tgroup></informaltable>
  614. <para>SYNOPSIS
  615. </para>
  616. <informaltable><tgroup cols="1"><tbody><row><entry
  617. align="char">
  618. <para>int ioctl(int fd, int request = <link linkend="FE_READ_BER">FE_READ_BER</link>,
  619. uint32_t &#x22C6;ber);</para>
  620. </entry>
  621. </row></tbody></tgroup></informaltable>
  622. <para>PARAMETERS
  623. </para>
  624. <informaltable><tgroup cols="2"><tbody><row><entry
  625. align="char">
  626. <para>int fd</para>
  627. </entry><entry
  628. align="char">
  629. <para>File descriptor returned by a previous call to open().</para>
  630. </entry>
  631. </row><row><entry
  632. align="char">
  633. <para>int request</para>
  634. </entry><entry
  635. align="char">
  636. <para>Equals <link linkend="FE_READ_BER">FE_READ_BER</link> for this command.</para>
  637. </entry>
  638. </row><row><entry
  639. align="char">
  640. <para>uint32_t *ber</para>
  641. </entry><entry
  642. align="char">
  643. <para>The bit error rate is stored into *ber.</para>
  644. </entry>
  645. </row></tbody></tgroup></informaltable>
  646. <para>ERRORS
  647. </para>
  648. <informaltable><tgroup cols="2"><tbody><row><entry
  649. align="char">
  650. <para>EBADF</para>
  651. </entry><entry
  652. align="char">
  653. <para>fd is not a valid open file descriptor.</para>
  654. </entry>
  655. </row><row><entry
  656. align="char">
  657. <para>EFAULT</para>
  658. </entry><entry
  659. align="char">
  660. <para>ber points to invalid address.</para>
  661. </entry>
  662. </row><row><entry
  663. align="char">
  664. <para>ENOSIGNAL</para>
  665. </entry><entry
  666. align="char">
  667. <para>There is no signal, thus no meaningful bit error rate. Also
  668. returned if the front-end is not turned on.</para>
  669. </entry>
  670. </row><row><entry
  671. align="char">
  672. <para>ENOSYS</para>
  673. </entry><entry
  674. align="char">
  675. <para>Function not available for this device.</para>
  676. </entry>
  677. </row></tbody></tgroup></informaltable>
  678. </section>
  679. <section id="FE_READ_SNR">
  680. <title>FE_READ_SNR</title>
  681. <para>DESCRIPTION
  682. </para>
  683. <informaltable><tgroup cols="1"><tbody><row><entry
  684. align="char">
  685. <para>This ioctl call returns the signal-to-noise ratio for the signal currently received
  686. by the front-end. For this command, read-only access to the device is sufficient.</para>
  687. </entry>
  688. </row></tbody></tgroup></informaltable>
  689. <para>SYNOPSIS
  690. </para>
  691. <informaltable><tgroup cols="1"><tbody><row><entry
  692. align="char">
  693. <para>int ioctl(int fd, int request = <link linkend="FE_READ_SNR">FE_READ_SNR</link>, int16_t
  694. &#x22C6;snr);</para>
  695. </entry>
  696. </row></tbody></tgroup></informaltable>
  697. <para>PARAMETERS
  698. </para>
  699. <informaltable><tgroup cols="2"><tbody><row><entry
  700. align="char">
  701. <para>int fd</para>
  702. </entry><entry
  703. align="char">
  704. <para>File descriptor returned by a previous call to open().</para>
  705. </entry>
  706. </row><row><entry
  707. align="char">
  708. <para>int request</para>
  709. </entry><entry
  710. align="char">
  711. <para>Equals <link linkend="FE_READ_SNR">FE_READ_SNR</link> for this command.</para>
  712. </entry>
  713. </row><row><entry
  714. align="char">
  715. <para>int16_t *snr</para>
  716. </entry><entry
  717. align="char">
  718. <para>The signal-to-noise ratio is stored into *snr.</para>
  719. </entry>
  720. </row></tbody></tgroup></informaltable>
  721. <para>ERRORS
  722. </para>
  723. <informaltable><tgroup cols="2"><tbody><row><entry
  724. align="char">
  725. <para>EBADF</para>
  726. </entry><entry
  727. align="char">
  728. <para>fd is not a valid open file descriptor.</para>
  729. </entry>
  730. </row><row><entry
  731. align="char">
  732. <para>EFAULT</para>
  733. </entry><entry
  734. align="char">
  735. <para>snr points to invalid address.</para>
  736. </entry>
  737. </row><row><entry
  738. align="char">
  739. <para>ENOSIGNAL</para>
  740. </entry><entry
  741. align="char">
  742. <para>There is no signal, thus no meaningful signal strength
  743. value. Also returned if front-end is not turned on.</para>
  744. </entry>
  745. </row><row><entry
  746. align="char">
  747. <para>ENOSYS</para>
  748. </entry><entry
  749. align="char">
  750. <para>Function not available for this device.</para>
  751. </entry>
  752. </row></tbody></tgroup></informaltable>
  753. </section>
  754. <section id="FE_READ_SIGNAL_STRENGTH">
  755. <title>FE_READ_SIGNAL_STRENGTH</title>
  756. <para>DESCRIPTION
  757. </para>
  758. <informaltable><tgroup cols="1"><tbody><row><entry
  759. align="char">
  760. <para>This ioctl call returns the signal strength value for the signal currently received
  761. by the front-end. For this command, read-only access to the device is sufficient.</para>
  762. </entry>
  763. </row></tbody></tgroup></informaltable>
  764. <para>SYNOPSIS
  765. </para>
  766. <informaltable><tgroup cols="1"><tbody><row><entry
  767. align="char">
  768. <para>int ioctl( int fd, int request =
  769. <link linkend="FE_READ_SIGNAL_STRENGTH">FE_READ_SIGNAL_STRENGTH</link>, int16_t &#x22C6;strength);</para>
  770. </entry>
  771. </row></tbody></tgroup></informaltable>
  772. <para>PARAMETERS
  773. </para>
  774. <informaltable><tgroup cols="2"><tbody><row><entry
  775. align="char">
  776. <para>int fd</para>
  777. </entry><entry
  778. align="char">
  779. <para>File descriptor returned by a previous call to open().</para>
  780. </entry>
  781. </row><row><entry
  782. align="char">
  783. <para>int request</para>
  784. </entry><entry
  785. align="char">
  786. <para>Equals <link linkend="FE_READ_SIGNAL_STRENGTH">FE_READ_SIGNAL_STRENGTH</link> for this
  787. command.</para>
  788. </entry>
  789. </row><row><entry
  790. align="char">
  791. <para>int16_t *strength</para>
  792. </entry><entry
  793. align="char">
  794. <para>The signal strength value is stored into *strength.</para>
  795. </entry>
  796. </row></tbody></tgroup></informaltable>
  797. <para>ERRORS
  798. </para>
  799. <informaltable><tgroup cols="2"><tbody><row><entry
  800. align="char">
  801. <para>EBADF</para>
  802. </entry><entry
  803. align="char">
  804. <para>fd is not a valid open file descriptor.</para>
  805. </entry>
  806. </row><row><entry
  807. align="char">
  808. <para>EFAULT</para>
  809. </entry><entry
  810. align="char">
  811. <para>status points to invalid address.</para>
  812. </entry>
  813. </row><row><entry
  814. align="char">
  815. <para>ENOSIGNAL</para>
  816. </entry><entry
  817. align="char">
  818. <para>There is no signal, thus no meaningful signal strength
  819. value. Also returned if front-end is not turned on.</para>
  820. </entry>
  821. </row><row><entry
  822. align="char">
  823. <para>ENOSYS</para>
  824. </entry><entry
  825. align="char">
  826. <para>Function not available for this device.</para>
  827. </entry>
  828. </row></tbody></tgroup></informaltable>
  829. </section>
  830. <section id="FE_READ_UNCORRECTED_BLOCKS">
  831. <title>FE_READ_UNCORRECTED_BLOCKS</title>
  832. <para>DESCRIPTION
  833. </para>
  834. <informaltable><tgroup cols="1"><tbody><row><entry
  835. align="char">
  836. <para>This ioctl call returns the number of uncorrected blocks detected by the device
  837. driver during its lifetime. For meaningful measurements, the increment in block
  838. count during a specific time interval should be calculated. For this command,
  839. read-only access to the device is sufficient.</para>
  840. </entry>
  841. </row><row><entry
  842. align="char">
  843. <para>Note that the counter will wrap to zero after its maximum count has been
  844. reached.</para>
  845. </entry>
  846. </row></tbody></tgroup></informaltable>
  847. <para>SYNOPSIS
  848. </para>
  849. <informaltable><tgroup cols="1"><tbody><row><entry
  850. align="char">
  851. <para>int ioctl( int fd, int request =
  852. <link linkend="FE_READ_UNCORRECTED_BLOCKS">FE_READ_UNCORRECTED_BLOCKS</link>, uint32_t &#x22C6;ublocks);</para>
  853. </entry>
  854. </row></tbody></tgroup></informaltable>
  855. <para>PARAMETERS
  856. </para>
  857. <informaltable><tgroup cols="2"><tbody><row><entry
  858. align="char">
  859. <para>int fd</para>
  860. </entry><entry
  861. align="char">
  862. <para>File descriptor returned by a previous call to open().</para>
  863. </entry>
  864. </row><row><entry
  865. align="char">
  866. <para>int request</para>
  867. </entry><entry
  868. align="char">
  869. <para>Equals <link linkend="FE_READ_UNCORRECTED_BLOCKS">FE_READ_UNCORRECTED_BLOCKS</link> for this
  870. command.</para>
  871. </entry>
  872. </row><row><entry
  873. align="char">
  874. <para>uint32_t *ublocks</para>
  875. </entry><entry
  876. align="char">
  877. <para>The total number of uncorrected blocks seen by the driver
  878. so far.</para>
  879. </entry>
  880. </row></tbody></tgroup></informaltable>
  881. <para>ERRORS
  882. </para>
  883. <informaltable><tgroup cols="2"><tbody><row><entry
  884. align="char">
  885. <para>EBADF</para>
  886. </entry><entry
  887. align="char">
  888. <para>fd is not a valid open file descriptor.</para>
  889. </entry>
  890. </row><row><entry
  891. align="char">
  892. <para>EFAULT</para>
  893. </entry><entry
  894. align="char">
  895. <para>ublocks points to invalid address.</para>
  896. </entry>
  897. </row><row><entry
  898. align="char">
  899. <para>ENOSYS</para>
  900. </entry><entry
  901. align="char">
  902. <para>Function not available for this device.</para>
  903. </entry>
  904. </row></tbody></tgroup></informaltable>
  905. </section>
  906. <section id="FE_SET_FRONTEND">
  907. <title>FE_SET_FRONTEND</title>
  908. <para>DESCRIPTION
  909. </para>
  910. <informaltable><tgroup cols="1"><tbody><row><entry
  911. align="char">
  912. <para>This ioctl call starts a tuning operation using specified parameters. The result
  913. of this call will be successful if the parameters were valid and the tuning could
  914. be initiated. The result of the tuning operation in itself, however, will arrive
  915. asynchronously as an event (see documentation for <link linkend="FE_GET_EVENT">FE_GET_EVENT</link> and
  916. FrontendEvent.) If a new <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> operation is initiated before
  917. the previous one was completed, the previous operation will be aborted in favor
  918. of the new one. This command requires read/write access to the device.</para>
  919. </entry>
  920. </row></tbody></tgroup></informaltable>
  921. <para>SYNOPSIS
  922. </para>
  923. <informaltable><tgroup cols="1"><tbody><row><entry
  924. align="char">
  925. <para>int ioctl(int fd, int request = <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link>,
  926. struct dvb_frontend_parameters &#x22C6;p);</para>
  927. </entry>
  928. </row></tbody></tgroup></informaltable>
  929. <para>PARAMETERS
  930. </para>
  931. <informaltable><tgroup cols="2"><tbody><row><entry
  932. align="char">
  933. <para>int fd</para>
  934. </entry><entry
  935. align="char">
  936. <para>File descriptor returned by a previous call to open().</para>
  937. </entry>
  938. </row><row><entry
  939. align="char">
  940. <para>int request</para>
  941. </entry><entry
  942. align="char">
  943. <para>Equals <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> for this command.</para>
  944. </entry>
  945. </row><row><entry
  946. align="char">
  947. <para>struct
  948. dvb_frontend_parameters
  949. *p</para>
  950. </entry><entry
  951. align="char">
  952. <para>Points to parameters for tuning operation.</para>
  953. </entry>
  954. </row></tbody></tgroup></informaltable>
  955. <para>ERRORS
  956. </para>
  957. <informaltable><tgroup cols="2"><tbody><row><entry
  958. align="char">
  959. <para>EBADF</para>
  960. </entry><entry
  961. align="char">
  962. <para>fd is not a valid open file descriptor.</para>
  963. </entry>
  964. </row><row><entry
  965. align="char">
  966. <para>EFAULT</para>
  967. </entry><entry
  968. align="char">
  969. <para>p points to invalid address.</para>
  970. </entry>
  971. </row><row><entry
  972. align="char">
  973. <para>EINVAL</para>
  974. </entry><entry
  975. align="char">
  976. <para>Maximum supported symbol rate reached.</para>
  977. </entry>
  978. </row></tbody></tgroup></informaltable>
  979. </section>
  980. <section id="FE_GET_FRONTEND">
  981. <title>FE_GET_FRONTEND</title>
  982. <para>DESCRIPTION
  983. </para>
  984. <informaltable><tgroup cols="1"><tbody><row><entry
  985. align="char">
  986. <para>This ioctl call queries the currently effective frontend parameters. For this
  987. command, read-only access to the device is sufficient.</para>
  988. </entry>
  989. </row></tbody></tgroup></informaltable>
  990. <para>SYNOPSIS
  991. </para>
  992. <informaltable><tgroup cols="1"><tbody><row><entry
  993. align="char">
  994. <para>int ioctl(int fd, int request = <link linkend="FE_GET_FRONTEND">FE_GET_FRONTEND</link>,
  995. struct dvb_frontend_parameters &#x22C6;p);</para>
  996. </entry>
  997. </row></tbody></tgroup></informaltable>
  998. <para>PARAMETERS
  999. </para>
  1000. <informaltable><tgroup cols="2"><tbody><row><entry
  1001. align="char">
  1002. <para>int fd</para>
  1003. </entry><entry
  1004. align="char">
  1005. <para>File descriptor returned by a previous call to open().</para>
  1006. </entry>
  1007. </row><row><entry
  1008. align="char">
  1009. <para>int request</para>
  1010. </entry><entry
  1011. align="char">
  1012. <para>Equals <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> for this command.</para>
  1013. </entry>
  1014. </row><row><entry
  1015. align="char">
  1016. <para>struct
  1017. dvb_frontend_parameters
  1018. *p</para>
  1019. </entry><entry
  1020. align="char">
  1021. <para>Points to parameters for tuning operation.</para>
  1022. </entry>
  1023. </row></tbody></tgroup></informaltable>
  1024. <para>ERRORS
  1025. </para>
  1026. <informaltable><tgroup cols="2"><tbody><row><entry
  1027. align="char">
  1028. <para>EBADF</para>
  1029. </entry><entry
  1030. align="char">
  1031. <para>fd is not a valid open file descriptor.</para>
  1032. </entry>
  1033. </row><row><entry
  1034. align="char">
  1035. <para>EFAULT</para>
  1036. </entry><entry
  1037. align="char">
  1038. <para>p points to invalid address.</para>
  1039. </entry>
  1040. </row><row><entry
  1041. align="char">
  1042. <para>EINVAL</para>
  1043. </entry><entry
  1044. align="char">
  1045. <para>Maximum supported symbol rate reached.</para>
  1046. </entry>
  1047. </row></tbody></tgroup></informaltable>
  1048. </section>
  1049. <section id="FE_GET_EVENT">
  1050. <title>FE_GET_EVENT</title>
  1051. <para>DESCRIPTION
  1052. </para>
  1053. <informaltable><tgroup cols="1"><tbody><row><entry
  1054. align="char">
  1055. <para>This ioctl call returns a frontend event if available. If an event is not
  1056. available, the behavior depends on whether the device is in blocking or
  1057. non-blocking mode. In the latter case, the call fails immediately with errno
  1058. set to EWOULDBLOCK. In the former case, the call blocks until an event
  1059. becomes available.</para>
  1060. </entry>
  1061. </row><row><entry
  1062. align="char">
  1063. <para>The standard Linux poll() and/or select() system calls can be used with the
  1064. device file descriptor to watch for new events. For select(), the file descriptor
  1065. should be included in the exceptfds argument, and for poll(), POLLPRI should
  1066. be specified as the wake-up condition. Since the event queue allocated is
  1067. rather small (room for 8 events), the queue must be serviced regularly to avoid
  1068. overflow. If an overflow happens, the oldest event is discarded from the queue,
  1069. and an error (EOVERFLOW) occurs the next time the queue is read. After
  1070. reporting the error condition in this fashion, subsequent
  1071. <link linkend="FE_GET_EVENT">FE_GET_EVENT</link>
  1072. calls will return events from the queue as usual.</para>
  1073. </entry>
  1074. </row><row><entry
  1075. align="char">
  1076. <para>For the sake of implementation simplicity, this command requires read/write
  1077. access to the device.</para>
  1078. </entry>
  1079. </row></tbody></tgroup></informaltable>
  1080. <para>SYNOPSIS
  1081. </para>
  1082. <informaltable><tgroup cols="1"><tbody><row><entry
  1083. align="char">
  1084. <para>int ioctl(int fd, int request = QPSK_GET_EVENT,
  1085. struct dvb_frontend_event &#x22C6;ev);</para>
  1086. </entry>
  1087. </row></tbody></tgroup></informaltable>
  1088. <para>PARAMETERS
  1089. </para>
  1090. <informaltable><tgroup cols="2"><tbody><row><entry
  1091. align="char">
  1092. <para>int fd</para>
  1093. </entry><entry
  1094. align="char">
  1095. <para>File descriptor returned by a previous call to open().</para>
  1096. </entry>
  1097. </row><row><entry
  1098. align="char">
  1099. <para>int request</para>
  1100. </entry><entry
  1101. align="char">
  1102. <para>Equals <link linkend="FE_GET_EVENT">FE_GET_EVENT</link> for this command.</para>
  1103. </entry>
  1104. </row><row><entry
  1105. align="char">
  1106. <para>struct
  1107. dvb_frontend_event
  1108. *ev</para>
  1109. </entry><entry
  1110. align="char">
  1111. <para>Points to the location where the event,</para>
  1112. </entry>
  1113. </row><row><entry
  1114. align="char">
  1115. </entry><entry
  1116. align="char">
  1117. <para>if any, is to be stored.</para>
  1118. </entry>
  1119. </row></tbody></tgroup></informaltable>
  1120. <para>ERRORS
  1121. </para>
  1122. <informaltable><tgroup cols="2"><tbody><row><entry
  1123. align="char">
  1124. <para>EBADF</para>
  1125. </entry><entry
  1126. align="char">
  1127. <para>fd is not a valid open file descriptor.</para>
  1128. </entry>
  1129. </row><row><entry
  1130. align="char">
  1131. <para>EFAULT</para>
  1132. </entry><entry
  1133. align="char">
  1134. <para>ev points to invalid address.</para>
  1135. </entry>
  1136. </row><row><entry
  1137. align="char">
  1138. <para>EWOULDBLOCK</para>
  1139. </entry><entry
  1140. align="char">
  1141. <para>There is no event pending, and the device is in
  1142. non-blocking mode.</para>
  1143. </entry>
  1144. </row><row><entry
  1145. align="char">
  1146. <para>EOVERFLOW</para>
  1147. </entry><entry
  1148. align="char">
  1149. </entry>
  1150. </row><row><entry
  1151. align="char">
  1152. </entry><entry
  1153. align="char">
  1154. <para>Overflow in event queue - one or more events were lost.</para>
  1155. </entry>
  1156. </row></tbody></tgroup></informaltable>
  1157. </section>
  1158. <section id="FE_GET_INFO">
  1159. <title>FE_GET_INFO</title>
  1160. <para>DESCRIPTION
  1161. </para>
  1162. <informaltable><tgroup cols="1"><tbody><row><entry
  1163. align="char">
  1164. <para>This ioctl call returns information about the front-end. This call only requires
  1165. read-only access to the device.</para>
  1166. </entry>
  1167. </row></tbody></tgroup></informaltable>
  1168. <para>SYNOPSIS
  1169. </para>
  1170. <informaltable><tgroup cols="1"><tbody><row><entry
  1171. align="char">
  1172. <para> int ioctl(int fd, int request = <link linkend="FE_GET_INFO">FE_GET_INFO</link>, struct
  1173. dvb_frontend_info &#x22C6;info);</para>
  1174. </entry>
  1175. </row></tbody></tgroup></informaltable>
  1176. <para>PARAMETERS
  1177. </para>
  1178. <informaltable><tgroup cols="2"><tbody><row><entry
  1179. align="char">
  1180. <para>int fd</para>
  1181. </entry><entry
  1182. align="char">
  1183. <para>File descriptor returned by a previous call to open().</para>
  1184. </entry>
  1185. </row><row><entry
  1186. align="char">
  1187. <para>int request</para>
  1188. </entry><entry
  1189. align="char">
  1190. <para>Equals <link linkend="FE_GET_INFO">FE_GET_INFO</link> for this command.</para>
  1191. </entry>
  1192. </row><row><entry
  1193. align="char">
  1194. <para>struct
  1195. dvb_frontend_info
  1196. *info</para>
  1197. </entry><entry
  1198. align="char">
  1199. <para>Points to the location where the front-end information is
  1200. to be stored.</para>
  1201. </entry>
  1202. </row></tbody></tgroup></informaltable>
  1203. <para>ERRORS
  1204. </para>
  1205. <informaltable><tgroup cols="2"><tbody><row><entry
  1206. align="char">
  1207. <para>EBADF</para>
  1208. </entry><entry
  1209. align="char">
  1210. <para>fd is not a valid open file descriptor.</para>
  1211. </entry>
  1212. </row><row><entry
  1213. align="char">
  1214. <para>EFAULT</para>
  1215. </entry><entry
  1216. align="char">
  1217. <para>info points to invalid address.</para>
  1218. </entry>
  1219. </row></tbody></tgroup></informaltable>
  1220. </section>
  1221. <section id="FE_DISEQC_RESET_OVERLOAD">
  1222. <title>FE_DISEQC_RESET_OVERLOAD</title>
  1223. <para>DESCRIPTION
  1224. </para>
  1225. <informaltable><tgroup cols="1"><tbody><row><entry
  1226. align="char">
  1227. <para>If the bus has been automatically powered off due to power overload, this ioctl
  1228. call restores the power to the bus. The call requires read/write access to the
  1229. device. This call has no effect if the device is manually powered off. Not all
  1230. DVB adapters support this ioctl.</para>
  1231. </entry>
  1232. </row></tbody></tgroup></informaltable>
  1233. <para>SYNOPSIS
  1234. </para>
  1235. <informaltable><tgroup cols="1"><tbody><row><entry
  1236. align="char">
  1237. <para>int ioctl(int fd, int request =
  1238. <link linkend="FE_DISEQC_RESET_OVERLOAD">FE_DISEQC_RESET_OVERLOAD</link>);</para>
  1239. </entry>
  1240. </row></tbody></tgroup></informaltable>
  1241. <para>PARAMETERS
  1242. </para>
  1243. <informaltable><tgroup cols="2"><tbody><row><entry
  1244. align="char">
  1245. <para>int fd</para>
  1246. </entry><entry
  1247. align="char">
  1248. <para>File descriptor returned by a previous call to open().</para>
  1249. </entry>
  1250. </row><row><entry
  1251. align="char">
  1252. <para>int request</para>
  1253. </entry><entry
  1254. align="char">
  1255. <para>Equals <link linkend="FE_DISEQC_RESET_OVERLOAD">FE_DISEQC_RESET_OVERLOAD</link> for this
  1256. command.</para>
  1257. </entry>
  1258. </row></tbody></tgroup></informaltable>
  1259. <para>ERRORS
  1260. </para>
  1261. <informaltable><tgroup cols="2"><tbody><row><entry
  1262. align="char">
  1263. <para>EBADF</para>
  1264. </entry><entry
  1265. align="char">
  1266. <para>fd is not a valid file descriptor.</para>
  1267. </entry>
  1268. </row><row><entry
  1269. align="char">
  1270. <para>EPERM</para>
  1271. </entry><entry
  1272. align="char">
  1273. <para>Permission denied (needs read/write access).</para>
  1274. </entry>
  1275. </row><row><entry
  1276. align="char">
  1277. <para>EINTERNAL</para>
  1278. </entry><entry
  1279. align="char">
  1280. <para>Internal error in the device driver.</para>
  1281. </entry>
  1282. </row></tbody></tgroup></informaltable>
  1283. </section>
  1284. <section id="FE_DISEQC_SEND_MASTER_CMD">
  1285. <title>FE_DISEQC_SEND_MASTER_CMD</title>
  1286. <para>DESCRIPTION
  1287. </para>
  1288. <informaltable><tgroup cols="1"><tbody><row><entry
  1289. align="char">
  1290. <para>This ioctl call is used to send a a DiSEqC command.</para>
  1291. </entry>
  1292. </row></tbody></tgroup></informaltable>
  1293. <para>SYNOPSIS
  1294. </para>
  1295. <informaltable><tgroup cols="1"><tbody><row><entry
  1296. align="char">
  1297. <para>int ioctl(int fd, int request =
  1298. <link linkend="FE_DISEQC_SEND_MASTER_CMD">FE_DISEQC_SEND_MASTER_CMD</link>, struct
  1299. dvb_diseqc_master_cmd &#x22C6;cmd);</para>
  1300. </entry>
  1301. </row></tbody></tgroup></informaltable>
  1302. <para>PARAMETERS
  1303. </para>
  1304. <informaltable><tgroup cols="2"><tbody><row><entry
  1305. align="char">
  1306. <para>int fd</para>
  1307. </entry><entry
  1308. align="char">
  1309. <para>File descriptor returned by a previous call to open().</para>
  1310. </entry>
  1311. </row><row><entry
  1312. align="char">
  1313. <para>int request</para>
  1314. </entry><entry
  1315. align="char">
  1316. <para>Equals <link linkend="FE_DISEQC_SEND_MASTER_CMD">FE_DISEQC_SEND_MASTER_CMD</link> for this
  1317. command.</para>
  1318. </entry>
  1319. </row><row><entry
  1320. align="char">
  1321. <para>struct
  1322. dvb_diseqc_master_cmd
  1323. *cmd</para>
  1324. </entry><entry
  1325. align="char">
  1326. <para>Pointer to the command to be transmitted.</para>
  1327. </entry>
  1328. </row></tbody></tgroup></informaltable>
  1329. <para>ERRORS
  1330. </para>
  1331. <informaltable><tgroup cols="2"><tbody><row><entry
  1332. align="char">
  1333. <para>EBADF</para>
  1334. </entry><entry
  1335. align="char">
  1336. <para>fd is not a valid file descriptor.</para>
  1337. </entry>
  1338. </row><row><entry
  1339. align="char">
  1340. <para>EFAULT</para>
  1341. </entry><entry
  1342. align="char">
  1343. <para>Seq points to an invalid address.</para>
  1344. </entry>
  1345. </row><row><entry
  1346. align="char">
  1347. <para>EINVAL</para>
  1348. </entry><entry
  1349. align="char">
  1350. <para>The data structure referred to by seq is invalid in some
  1351. way.</para>
  1352. </entry>
  1353. </row><row><entry
  1354. align="char">
  1355. <para>EPERM</para>
  1356. </entry><entry
  1357. align="char">
  1358. <para>Permission denied (needs read/write access).</para>
  1359. </entry>
  1360. </row><row><entry
  1361. align="char">
  1362. <para>EINTERNAL</para>
  1363. </entry><entry
  1364. align="char">
  1365. <para>Internal error in the device driver.</para>
  1366. </entry>
  1367. </row></tbody></tgroup></informaltable>
  1368. </section>
  1369. <section id="FE_DISEQC_RECV_SLAVE_REPLY">
  1370. <title>FE_DISEQC_RECV_SLAVE_REPLY</title>
  1371. <para>DESCRIPTION
  1372. </para>
  1373. <informaltable><tgroup cols="1"><tbody><row><entry
  1374. align="char">
  1375. <para>This ioctl call is used to receive reply to a DiSEqC 2.0 command.</para>
  1376. </entry>
  1377. </row></tbody></tgroup></informaltable>
  1378. <para>SYNOPSIS
  1379. </para>
  1380. <informaltable><tgroup cols="1"><tbody><row><entry
  1381. align="char">
  1382. <para>int ioctl(int fd, int request =
  1383. <link linkend="FE_DISEQC_RECV_SLAVE_REPLY">FE_DISEQC_RECV_SLAVE_REPLY</link>, struct
  1384. dvb_diseqc_slave_reply &#x22C6;reply);</para>
  1385. </entry>
  1386. </row></tbody></tgroup></informaltable>
  1387. <para>PARAMETERS
  1388. </para>
  1389. <informaltable><tgroup cols="2"><tbody><row><entry
  1390. align="char">
  1391. <para>int fd</para>
  1392. </entry><entry
  1393. align="char">
  1394. <para>File descriptor returned by a previous call to open().</para>
  1395. </entry>
  1396. </row><row><entry
  1397. align="char">
  1398. <para>int request</para>
  1399. </entry><entry
  1400. align="char">
  1401. <para>Equals <link linkend="FE_DISEQC_RECV_SLAVE_REPLY">FE_DISEQC_RECV_SLAVE_REPLY</link> for this
  1402. command.</para>
  1403. </entry>
  1404. </row><row><entry
  1405. align="char">
  1406. <para>struct
  1407. dvb_diseqc_slave_reply
  1408. *reply</para>
  1409. </entry><entry
  1410. align="char">
  1411. <para>Pointer to the command to be received.</para>
  1412. </entry>
  1413. </row></tbody></tgroup></informaltable>
  1414. <para>ERRORS
  1415. </para>
  1416. <informaltable><tgroup cols="2"><tbody><row><entry
  1417. align="char">
  1418. <para>EBADF</para>
  1419. </entry><entry
  1420. align="char">
  1421. <para>fd is not a valid file descriptor.</para>
  1422. </entry>
  1423. </row><row><entry
  1424. align="char">
  1425. <para>EFAULT</para>
  1426. </entry><entry
  1427. align="char">
  1428. <para>Seq points to an invalid address.</para>
  1429. </entry>
  1430. </row><row><entry
  1431. align="char">
  1432. <para>EINVAL</para>
  1433. </entry><entry
  1434. align="char">
  1435. <para>The data structure referred to by seq is invalid in some
  1436. way.</para>
  1437. </entry>
  1438. </row><row><entry
  1439. align="char">
  1440. <para>EPERM</para>
  1441. </entry><entry
  1442. align="char">
  1443. <para>Permission denied (needs read/write access).</para>
  1444. </entry>
  1445. </row><row><entry
  1446. align="char">
  1447. <para>EINTERNAL</para>
  1448. </entry><entry
  1449. align="char">
  1450. <para>Internal error in the device driver.</para>
  1451. </entry>
  1452. </row></tbody></tgroup></informaltable>
  1453. </section>
  1454. <section id="FE_DISEQC_SEND_BURST">
  1455. <title>FE_DISEQC_SEND_BURST</title>
  1456. <para>DESCRIPTION
  1457. </para>
  1458. <informaltable><tgroup cols="1"><tbody><row><entry
  1459. align="char">
  1460. <para>This ioctl call is used to send a 22KHz tone burst.</para>
  1461. </entry>
  1462. </row></tbody></tgroup></informaltable>
  1463. <para>SYNOPSIS
  1464. </para>
  1465. <informaltable><tgroup cols="1"><tbody><row><entry
  1466. align="char">
  1467. <para>int ioctl(int fd, int request =
  1468. <link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link>, fe_sec_mini_cmd_t burst);</para>
  1469. </entry>
  1470. </row></tbody></tgroup></informaltable>
  1471. <para>PARAMETERS
  1472. </para>
  1473. <informaltable><tgroup cols="2"><tbody><row><entry
  1474. align="char">
  1475. <para>int fd</para>
  1476. </entry><entry
  1477. align="char">
  1478. <para>File descriptor returned by a previous call to open().</para>
  1479. </entry>
  1480. </row><row><entry
  1481. align="char">
  1482. <para>int request</para>
  1483. </entry><entry
  1484. align="char">
  1485. <para>Equals <link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link> for this command.</para>
  1486. </entry>
  1487. </row><row><entry
  1488. align="char">
  1489. <para>fe_sec_mini_cmd_t
  1490. burst</para>
  1491. </entry><entry
  1492. align="char">
  1493. <para>burst A or B.</para>
  1494. </entry>
  1495. </row></tbody></tgroup></informaltable>
  1496. <para>ERRORS
  1497. </para>
  1498. <informaltable><tgroup cols="2"><tbody><row><entry
  1499. align="char">
  1500. <para>EBADF</para>
  1501. </entry><entry
  1502. align="char">
  1503. <para>fd is not a valid file descriptor.</para>
  1504. </entry>
  1505. </row><row><entry
  1506. align="char">
  1507. <para>EFAULT</para>
  1508. </entry><entry
  1509. align="char">
  1510. <para>Seq points to an invalid address.</para>
  1511. </entry>
  1512. </row><row><entry
  1513. align="char">
  1514. <para>EINVAL</para>
  1515. </entry><entry
  1516. align="char">
  1517. <para>The data structure referred to by seq is invalid in some
  1518. way.</para>
  1519. </entry>
  1520. </row><row><entry
  1521. align="char">
  1522. <para>EPERM</para>
  1523. </entry><entry
  1524. align="char">
  1525. <para>Permission denied (needs read/write access).</para>
  1526. </entry>
  1527. </row><row><entry
  1528. align="char">
  1529. <para>EINTERNAL</para>
  1530. </entry><entry
  1531. align="char">
  1532. <para>Internal error in the device driver.</para>
  1533. </entry>
  1534. </row></tbody></tgroup></informaltable>
  1535. </section>
  1536. <section id="FE_SET_TONE">
  1537. <title>FE_SET_TONE</title>
  1538. <para>DESCRIPTION
  1539. </para>
  1540. <informaltable><tgroup cols="1"><tbody><row><entry
  1541. align="char">
  1542. <para>This call is used to set the generation of the continuous 22kHz tone. This call
  1543. requires read/write permissions.</para>
  1544. </entry>
  1545. </row></tbody></tgroup></informaltable>
  1546. <para>SYNOPSIS
  1547. </para>
  1548. <informaltable><tgroup cols="1"><tbody><row><entry
  1549. align="char">
  1550. <para>int ioctl(int fd, int request = <link linkend="FE_SET_TONE">FE_SET_TONE</link>,
  1551. fe_sec_tone_mode_t tone);</para>
  1552. </entry>
  1553. </row></tbody></tgroup></informaltable>
  1554. <para>PARAMETERS
  1555. </para>
  1556. <informaltable><tgroup cols="2"><tbody><row><entry
  1557. align="char">
  1558. <para>int fd</para>
  1559. </entry><entry
  1560. align="char">
  1561. <para>File descriptor returned by a previous call to open().</para>
  1562. </entry>
  1563. </row><row><entry
  1564. align="char">
  1565. <para>int request</para>
  1566. </entry><entry
  1567. align="char">
  1568. <para>Equals <link linkend="FE_SET_TONE">FE_SET_TONE</link> for this command.</para>
  1569. </entry>
  1570. </row><row><entry
  1571. align="char">
  1572. <para>fe_sec_tone_mode_t
  1573. tone</para>
  1574. </entry><entry
  1575. align="char">
  1576. <para>The requested tone generation mode (on/off).</para>
  1577. </entry>
  1578. </row></tbody></tgroup></informaltable>
  1579. <para>ERRORS
  1580. </para>
  1581. <informaltable><tgroup cols="2"><tbody><row><entry
  1582. align="char">
  1583. <para>ENODEV</para>
  1584. </entry><entry
  1585. align="char">
  1586. <para>Device driver not loaded/available.</para>
  1587. </entry>
  1588. </row><row><entry
  1589. align="char">
  1590. <para>EBUSY</para>
  1591. </entry><entry
  1592. align="char">
  1593. <para>Device or resource busy.</para>
  1594. </entry>
  1595. </row><row><entry
  1596. align="char">
  1597. <para>EINVAL</para>
  1598. </entry><entry
  1599. align="char">
  1600. <para>Invalid argument.</para>
  1601. </entry>
  1602. </row><row><entry
  1603. align="char">
  1604. <para>EPERM</para>
  1605. </entry><entry
  1606. align="char">
  1607. <para>File not opened with read permissions.</para>
  1608. </entry>
  1609. </row><row><entry
  1610. align="char">
  1611. <para>EINTERNAL</para>
  1612. </entry><entry
  1613. align="char">
  1614. <para>Internal error in the device driver.</para>
  1615. </entry>
  1616. </row></tbody></tgroup></informaltable>
  1617. </section>
  1618. <section id="FE_SET_VOLTAGE">
  1619. <title>FE_SET_VOLTAGE</title>
  1620. <para>DESCRIPTION
  1621. </para>
  1622. <informaltable><tgroup cols="1"><tbody><row><entry
  1623. align="char">
  1624. <para>This call is used to set the bus voltage. This call requires read/write
  1625. permissions.</para>
  1626. </entry>
  1627. </row></tbody></tgroup></informaltable>
  1628. <para>SYNOPSIS
  1629. </para>
  1630. <informaltable><tgroup cols="1"><tbody><row><entry
  1631. align="char">
  1632. <para>int ioctl(int fd, int request = <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link>,
  1633. fe_sec_voltage_t voltage);</para>
  1634. </entry>
  1635. </row></tbody></tgroup></informaltable>
  1636. <para>PARAMETERS
  1637. </para>
  1638. <informaltable><tgroup cols="2"><tbody><row><entry
  1639. align="char">
  1640. <para>int fd</para>
  1641. </entry><entry
  1642. align="char">
  1643. <para>File descriptor returned by a previous call to open().</para>
  1644. </entry>
  1645. </row><row><entry
  1646. align="char">
  1647. <para>int request</para>
  1648. </entry><entry
  1649. align="char">
  1650. <para>Equals <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link> for this command.</para>
  1651. </entry>
  1652. </row><row><entry
  1653. align="char">
  1654. <para>fe_sec_voltage_t
  1655. voltage</para>
  1656. </entry><entry
  1657. align="char">
  1658. <para>The requested bus voltage.</para>
  1659. </entry>
  1660. </row></tbody></tgroup></informaltable>
  1661. <para>ERRORS
  1662. </para>
  1663. <informaltable><tgroup cols="2"><tbody><row><entry
  1664. align="char">
  1665. <para>ENODEV</para>
  1666. </entry><entry
  1667. align="char">
  1668. <para>Device driver not loaded/available.</para>
  1669. </entry>
  1670. </row><row><entry
  1671. align="char">
  1672. <para>EBUSY</para>
  1673. </entry><entry
  1674. align="char">
  1675. <para>Device or resource busy.</para>
  1676. </entry>
  1677. </row><row><entry
  1678. align="char">
  1679. <para>EINVAL</para>
  1680. </entry><entry
  1681. align="char">
  1682. <para>Invalid argument.</para>
  1683. </entry>
  1684. </row><row><entry
  1685. align="char">
  1686. <para>EPERM</para>
  1687. </entry><entry
  1688. align="char">
  1689. <para>File not opened with read permissions.</para>
  1690. </entry>
  1691. </row><row><entry
  1692. align="char">
  1693. <para>EINTERNAL</para>
  1694. </entry><entry
  1695. align="char">
  1696. <para>Internal error in the device driver.</para>
  1697. </entry>
  1698. </row></tbody></tgroup></informaltable>
  1699. </section>
  1700. <section id="FE_ENABLE_HIGH_LNB_VOLTAGE">
  1701. <title>FE_ENABLE_HIGH_LNB_VOLTAGE</title>
  1702. <para>DESCRIPTION
  1703. </para>
  1704. <informaltable><tgroup cols="1"><tbody><row><entry
  1705. align="char">
  1706. <para>If high != 0 enables slightly higher voltages instead of 13/18V (to compensate
  1707. for long cables). This call requires read/write permissions. Not all DVB
  1708. adapters support this ioctl.</para>
  1709. </entry>
  1710. </row></tbody></tgroup></informaltable>
  1711. <para>SYNOPSIS
  1712. </para>
  1713. <informaltable><tgroup cols="1"><tbody><row><entry
  1714. align="char">
  1715. <para>int ioctl(int fd, int request =
  1716. <link linkend="FE_ENABLE_HIGH_LNB_VOLTAGE">FE_ENABLE_HIGH_LNB_VOLTAGE</link>, int high);</para>
  1717. </entry>
  1718. </row></tbody></tgroup></informaltable>
  1719. <para>PARAMETERS
  1720. </para>
  1721. <informaltable><tgroup cols="2"><tbody><row><entry
  1722. align="char">
  1723. <para>int fd</para>
  1724. </entry><entry
  1725. align="char">
  1726. <para>File descriptor returned by a previous call to open().</para>
  1727. </entry>
  1728. </row><row><entry
  1729. align="char">
  1730. <para>int request</para>
  1731. </entry><entry
  1732. align="char">
  1733. <para>Equals <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link> for this command.</para>
  1734. </entry>
  1735. </row><row><entry
  1736. align="char">
  1737. <para>int high</para>
  1738. </entry><entry
  1739. align="char">
  1740. <para>The requested bus voltage.</para>
  1741. </entry>
  1742. </row></tbody></tgroup></informaltable>
  1743. <para>ERRORS
  1744. </para>
  1745. <informaltable><tgroup cols="2"><tbody><row><entry
  1746. align="char">
  1747. <para>ENODEV</para>
  1748. </entry><entry
  1749. align="char">
  1750. <para>Device driver not loaded/available.</para>
  1751. </entry>
  1752. </row><row><entry
  1753. align="char">
  1754. <para>EBUSY</para>
  1755. </entry><entry
  1756. align="char">
  1757. <para>Device or resource busy.</para>
  1758. </entry>
  1759. </row><row><entry
  1760. align="char">
  1761. <para>EINVAL</para>
  1762. </entry><entry
  1763. align="char">
  1764. <para>Invalid argument.</para>
  1765. </entry>
  1766. </row><row><entry
  1767. align="char">
  1768. <para>EPERM</para>
  1769. </entry><entry
  1770. align="char">
  1771. <para>File not opened with read permissions.</para>
  1772. </entry>
  1773. </row><row><entry
  1774. align="char">
  1775. <para>EINTERNAL</para>
  1776. </entry><entry
  1777. align="char">
  1778. <para>Internal error in the device driver.</para>
  1779. </entry>
  1780. </row></tbody></tgroup></informaltable>
  1781. </section>
  1782. <section id="FE_SET_FRONTEND_TUNE_MODE">
  1783. <title>FE_SET_FRONTEND_TUNE_MODE</title>
  1784. <para>DESCRIPTION</para>
  1785. <informaltable><tgroup cols="1"><tbody><row>
  1786. <entry align="char">
  1787. <para>Allow setting tuner mode flags to the frontend.</para>
  1788. </entry>
  1789. </row></tbody></tgroup></informaltable>
  1790. <para>SYNOPSIS</para>
  1791. <informaltable><tgroup cols="1"><tbody><row>
  1792. <entry align="char">
  1793. <para>int ioctl(int fd, int request =
  1794. <link linkend="FE_SET_FRONTEND_TUNE_MODE">FE_SET_FRONTEND_TUNE_MODE</link>, unsigned int flags);</para>
  1795. </entry>
  1796. </row></tbody></tgroup></informaltable>
  1797. <para>PARAMETERS</para>
  1798. <informaltable><tgroup cols="2"><tbody><row>
  1799. <entry align="char">
  1800. <para>unsigned int flags</para>
  1801. </entry>
  1802. <entry align="char">
  1803. <para>
  1804. FE_TUNE_MODE_ONESHOT When set, this flag will disable any zigzagging or other "normal" tuning behaviour. Additionally, there will be no automatic monitoring of the lock status, and hence no frontend events will be generated. If a frontend device is closed, this flag will be automatically turned off when the device is reopened read-write.
  1805. </para>
  1806. </entry>
  1807. </row></tbody></tgroup></informaltable>
  1808. <para>ERRORS</para>
  1809. <informaltable><tgroup cols="2"><tbody><row>
  1810. <entry align="char"><para>EINVAL</para></entry>
  1811. <entry align="char"><para>Invalid argument.</para></entry>
  1812. </row></tbody></tgroup></informaltable>
  1813. </section>
  1814. <section id="FE_DISHNETWORK_SEND_LEGACY_CMD">
  1815. <title>FE_DISHNETWORK_SEND_LEGACY_CMD</title>
  1816. <para>DESCRIPTION</para>
  1817. <informaltable><tgroup cols="1"><tbody><row>
  1818. <entry align="char">
  1819. <para>WARNING: This is a very obscure legacy command, used only at stv0299 driver. Should not be used on newer drivers.</para>
  1820. <para>It provides a non-standard method for selecting Diseqc voltage on the frontend, for Dish Network legacy switches.</para>
  1821. <para>As support for this ioctl were added in 2004, this means that such dishes were already legacy in 2004.</para>
  1822. </entry>
  1823. </row></tbody></tgroup></informaltable>
  1824. <para>SYNOPSIS</para>
  1825. <informaltable><tgroup cols="1"><tbody><row>
  1826. <entry align="char">
  1827. <para>int ioctl(int fd, int request =
  1828. <link linkend="FE_DISHNETWORK_SEND_LEGACY_CMD">FE_DISHNETWORK_SEND_LEGACY_CMD</link>, unsigned long cmd);</para>
  1829. </entry>
  1830. </row></tbody></tgroup></informaltable>
  1831. <para>PARAMETERS</para>
  1832. <informaltable><tgroup cols="2"><tbody><row>
  1833. <entry align="char">
  1834. <para>unsigned long cmd</para>
  1835. </entry>
  1836. <entry align="char">
  1837. <para>
  1838. sends the specified raw cmd to the dish via DISEqC.
  1839. </para>
  1840. </entry>
  1841. </row></tbody></tgroup></informaltable>
  1842. <para>ERRORS</para>
  1843. <informaltable><tgroup cols="1"><tbody><row>
  1844. <entry align="char">
  1845. <para>There are no errors in use for this call</para>
  1846. </entry>
  1847. </row></tbody></tgroup></informaltable>
  1848. </section>
  1849. </section>
  1850. &sub-dvbproperty;