controls.xml 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067
  1. <section id="control">
  2. <title>User Controls</title>
  3. <para>Devices typically have a number of user-settable controls
  4. such as brightness, saturation and so on, which would be presented to
  5. the user on a graphical user interface. But, different devices
  6. will have different controls available, and furthermore, the range of
  7. possible values, and the default value will vary from device to
  8. device. The control ioctls provide the information and a mechanism to
  9. create a nice user interface for these controls that will work
  10. correctly with any device.</para>
  11. <para>All controls are accessed using an ID value. V4L2 defines
  12. several IDs for specific purposes. Drivers can also implement their
  13. own custom controls using <constant>V4L2_CID_PRIVATE_BASE</constant>
  14. and higher values. The pre-defined control IDs have the prefix
  15. <constant>V4L2_CID_</constant>, and are listed in <xref
  16. linkend="control-id" />. The ID is used when querying the attributes of
  17. a control, and when getting or setting the current value.</para>
  18. <para>Generally applications should present controls to the user
  19. without assumptions about their purpose. Each control comes with a
  20. name string the user is supposed to understand. When the purpose is
  21. non-intuitive the driver writer should provide a user manual, a user
  22. interface plug-in or a driver specific panel application. Predefined
  23. IDs were introduced to change a few controls programmatically, for
  24. example to mute a device during a channel switch.</para>
  25. <para>Drivers may enumerate different controls after switching
  26. the current video input or output, tuner or modulator, or audio input
  27. or output. Different in the sense of other bounds, another default and
  28. current value, step size or other menu items. A control with a certain
  29. <emphasis>custom</emphasis> ID can also change name and
  30. type.<footnote>
  31. <para>It will be more convenient for applications if drivers
  32. make use of the <constant>V4L2_CTRL_FLAG_DISABLED</constant> flag, but
  33. that was never required.</para>
  34. </footnote> Control values are stored globally, they do not
  35. change when switching except to stay within the reported bounds. They
  36. also do not change &eg; when the device is opened or closed, when the
  37. tuner radio frequency is changed or generally never without
  38. application request. Since V4L2 specifies no event mechanism, panel
  39. applications intended to cooperate with other panel applications (be
  40. they built into a larger application, as a TV viewer) may need to
  41. regularly poll control values to update their user
  42. interface.<footnote>
  43. <para>Applications could call an ioctl to request events.
  44. After another process called &VIDIOC-S-CTRL; or another ioctl changing
  45. shared properties the &func-select; function would indicate
  46. readability until any ioctl (querying the properties) is
  47. called.</para>
  48. </footnote></para>
  49. <table pgwide="1" frame="none" id="control-id">
  50. <title>Control IDs</title>
  51. <tgroup cols="3">
  52. &cs-def;
  53. <thead>
  54. <row>
  55. <entry>ID</entry>
  56. <entry>Type</entry>
  57. <entry>Description</entry>
  58. </row>
  59. </thead>
  60. <tbody valign="top">
  61. <row>
  62. <entry><constant>V4L2_CID_BASE</constant></entry>
  63. <entry></entry>
  64. <entry>First predefined ID, equal to
  65. <constant>V4L2_CID_BRIGHTNESS</constant>.</entry>
  66. </row>
  67. <row>
  68. <entry><constant>V4L2_CID_USER_BASE</constant></entry>
  69. <entry></entry>
  70. <entry>Synonym of <constant>V4L2_CID_BASE</constant>.</entry>
  71. </row>
  72. <row>
  73. <entry><constant>V4L2_CID_BRIGHTNESS</constant></entry>
  74. <entry>integer</entry>
  75. <entry>Picture brightness, or more precisely, the black
  76. level.</entry>
  77. </row>
  78. <row>
  79. <entry><constant>V4L2_CID_CONTRAST</constant></entry>
  80. <entry>integer</entry>
  81. <entry>Picture contrast or luma gain.</entry>
  82. </row>
  83. <row>
  84. <entry><constant>V4L2_CID_SATURATION</constant></entry>
  85. <entry>integer</entry>
  86. <entry>Picture color saturation or chroma gain.</entry>
  87. </row>
  88. <row>
  89. <entry><constant>V4L2_CID_HUE</constant></entry>
  90. <entry>integer</entry>
  91. <entry>Hue or color balance.</entry>
  92. </row>
  93. <row>
  94. <entry><constant>V4L2_CID_AUDIO_VOLUME</constant></entry>
  95. <entry>integer</entry>
  96. <entry>Overall audio volume. Note some drivers also
  97. provide an OSS or ALSA mixer interface.</entry>
  98. </row>
  99. <row>
  100. <entry><constant>V4L2_CID_AUDIO_BALANCE</constant></entry>
  101. <entry>integer</entry>
  102. <entry>Audio stereo balance. Minimum corresponds to all
  103. the way left, maximum to right.</entry>
  104. </row>
  105. <row>
  106. <entry><constant>V4L2_CID_AUDIO_BASS</constant></entry>
  107. <entry>integer</entry>
  108. <entry>Audio bass adjustment.</entry>
  109. </row>
  110. <row>
  111. <entry><constant>V4L2_CID_AUDIO_TREBLE</constant></entry>
  112. <entry>integer</entry>
  113. <entry>Audio treble adjustment.</entry>
  114. </row>
  115. <row>
  116. <entry><constant>V4L2_CID_AUDIO_MUTE</constant></entry>
  117. <entry>boolean</entry>
  118. <entry>Mute audio, &ie; set the volume to zero, however
  119. without affecting <constant>V4L2_CID_AUDIO_VOLUME</constant>. Like
  120. ALSA drivers, V4L2 drivers must mute at load time to avoid excessive
  121. noise. Actually the entire device should be reset to a low power
  122. consumption state.</entry>
  123. </row>
  124. <row>
  125. <entry><constant>V4L2_CID_AUDIO_LOUDNESS</constant></entry>
  126. <entry>boolean</entry>
  127. <entry>Loudness mode (bass boost).</entry>
  128. </row>
  129. <row>
  130. <entry><constant>V4L2_CID_BLACK_LEVEL</constant></entry>
  131. <entry>integer</entry>
  132. <entry>Another name for brightness (not a synonym of
  133. <constant>V4L2_CID_BRIGHTNESS</constant>). This control is deprecated
  134. and should not be used in new drivers and applications.</entry>
  135. </row>
  136. <row>
  137. <entry><constant>V4L2_CID_AUTO_WHITE_BALANCE</constant></entry>
  138. <entry>boolean</entry>
  139. <entry>Automatic white balance (cameras).</entry>
  140. </row>
  141. <row>
  142. <entry><constant>V4L2_CID_DO_WHITE_BALANCE</constant></entry>
  143. <entry>button</entry>
  144. <entry>This is an action control. When set (the value is
  145. ignored), the device will do a white balance and then hold the current
  146. setting. Contrast this with the boolean
  147. <constant>V4L2_CID_AUTO_WHITE_BALANCE</constant>, which, when
  148. activated, keeps adjusting the white balance.</entry>
  149. </row>
  150. <row>
  151. <entry><constant>V4L2_CID_RED_BALANCE</constant></entry>
  152. <entry>integer</entry>
  153. <entry>Red chroma balance.</entry>
  154. </row>
  155. <row>
  156. <entry><constant>V4L2_CID_BLUE_BALANCE</constant></entry>
  157. <entry>integer</entry>
  158. <entry>Blue chroma balance.</entry>
  159. </row>
  160. <row>
  161. <entry><constant>V4L2_CID_GAMMA</constant></entry>
  162. <entry>integer</entry>
  163. <entry>Gamma adjust.</entry>
  164. </row>
  165. <row>
  166. <entry><constant>V4L2_CID_WHITENESS</constant></entry>
  167. <entry>integer</entry>
  168. <entry>Whiteness for grey-scale devices. This is a synonym
  169. for <constant>V4L2_CID_GAMMA</constant>. This control is deprecated
  170. and should not be used in new drivers and applications.</entry>
  171. </row>
  172. <row>
  173. <entry><constant>V4L2_CID_EXPOSURE</constant></entry>
  174. <entry>integer</entry>
  175. <entry>Exposure (cameras). [Unit?]</entry>
  176. </row>
  177. <row>
  178. <entry><constant>V4L2_CID_AUTOGAIN</constant></entry>
  179. <entry>boolean</entry>
  180. <entry>Automatic gain/exposure control.</entry>
  181. </row>
  182. <row>
  183. <entry><constant>V4L2_CID_GAIN</constant></entry>
  184. <entry>integer</entry>
  185. <entry>Gain control.</entry>
  186. </row>
  187. <row>
  188. <entry><constant>V4L2_CID_HFLIP</constant></entry>
  189. <entry>boolean</entry>
  190. <entry>Mirror the picture horizontally.</entry>
  191. </row>
  192. <row>
  193. <entry><constant>V4L2_CID_VFLIP</constant></entry>
  194. <entry>boolean</entry>
  195. <entry>Mirror the picture vertically.</entry>
  196. </row>
  197. <row>
  198. <entry><constant>V4L2_CID_HCENTER_DEPRECATED</constant> (formerly <constant>V4L2_CID_HCENTER</constant>)</entry>
  199. <entry>integer</entry>
  200. <entry>Horizontal image centering. This control is
  201. deprecated. New drivers and applications should use the <link
  202. linkend="camera-controls">Camera class controls</link>
  203. <constant>V4L2_CID_PAN_ABSOLUTE</constant>,
  204. <constant>V4L2_CID_PAN_RELATIVE</constant> and
  205. <constant>V4L2_CID_PAN_RESET</constant> instead.</entry>
  206. </row>
  207. <row>
  208. <entry><constant>V4L2_CID_VCENTER_DEPRECATED</constant>
  209. (formerly <constant>V4L2_CID_VCENTER</constant>)</entry>
  210. <entry>integer</entry>
  211. <entry>Vertical image centering. Centering is intended to
  212. <emphasis>physically</emphasis> adjust cameras. For image cropping see
  213. <xref linkend="crop" />, for clipping <xref linkend="overlay" />. This
  214. control is deprecated. New drivers and applications should use the
  215. <link linkend="camera-controls">Camera class controls</link>
  216. <constant>V4L2_CID_TILT_ABSOLUTE</constant>,
  217. <constant>V4L2_CID_TILT_RELATIVE</constant> and
  218. <constant>V4L2_CID_TILT_RESET</constant> instead.</entry>
  219. </row>
  220. <row id="v4l2-power-line-frequency">
  221. <entry><constant>V4L2_CID_POWER_LINE_FREQUENCY</constant></entry>
  222. <entry>enum</entry>
  223. <entry>Enables a power line frequency filter to avoid
  224. flicker. Possible values for <constant>enum v4l2_power_line_frequency</constant> are:
  225. <constant>V4L2_CID_POWER_LINE_FREQUENCY_DISABLED</constant> (0),
  226. <constant>V4L2_CID_POWER_LINE_FREQUENCY_50HZ</constant> (1) and
  227. <constant>V4L2_CID_POWER_LINE_FREQUENCY_60HZ</constant> (2).</entry>
  228. </row>
  229. <row>
  230. <entry><constant>V4L2_CID_HUE_AUTO</constant></entry>
  231. <entry>boolean</entry>
  232. <entry>Enables automatic hue control by the device. The
  233. effect of setting <constant>V4L2_CID_HUE</constant> while automatic
  234. hue control is enabled is undefined, drivers should ignore such
  235. request.</entry>
  236. </row>
  237. <row>
  238. <entry><constant>V4L2_CID_WHITE_BALANCE_TEMPERATURE</constant></entry>
  239. <entry>integer</entry>
  240. <entry>This control specifies the white balance settings
  241. as a color temperature in Kelvin. A driver should have a minimum of
  242. 2800 (incandescent) to 6500 (daylight). For more information about
  243. color temperature see <ulink
  244. url="http://en.wikipedia.org/wiki/Color_temperature">Wikipedia</ulink>.</entry>
  245. </row>
  246. <row>
  247. <entry><constant>V4L2_CID_SHARPNESS</constant></entry>
  248. <entry>integer</entry>
  249. <entry>Adjusts the sharpness filters in a camera. The
  250. minimum value disables the filters, higher values give a sharper
  251. picture.</entry>
  252. </row>
  253. <row>
  254. <entry><constant>V4L2_CID_BACKLIGHT_COMPENSATION</constant></entry>
  255. <entry>integer</entry>
  256. <entry>Adjusts the backlight compensation in a camera. The
  257. minimum value disables backlight compensation.</entry>
  258. </row>
  259. <row>
  260. <entry><constant>V4L2_CID_CHROMA_AGC</constant></entry>
  261. <entry>boolean</entry>
  262. <entry>Chroma automatic gain control.</entry>
  263. </row>
  264. <row>
  265. <entry><constant>V4L2_CID_COLOR_KILLER</constant></entry>
  266. <entry>boolean</entry>
  267. <entry>Enable the color killer (&ie; force a black &amp; white image in case of a weak video signal).</entry>
  268. </row>
  269. <row id="v4l2-colorfx">
  270. <entry><constant>V4L2_CID_COLORFX</constant></entry>
  271. <entry>enum</entry>
  272. <entry>Selects a color effect. Possible values for
  273. <constant>enum v4l2_colorfx</constant> are:
  274. <constant>V4L2_COLORFX_NONE</constant> (0),
  275. <constant>V4L2_COLORFX_BW</constant> (1) and
  276. <constant>V4L2_COLORFX_SEPIA</constant> (2).</entry>
  277. </row>
  278. <row>
  279. <entry><constant>V4L2_CID_ROTATE</constant></entry>
  280. <entry>integer</entry>
  281. <entry>Rotates the image by specified angle. Common angles are 90,
  282. 270 and 180. Rotating the image to 90 and 270 will reverse the height
  283. and width of the display window. It is necessary to set the new height and
  284. width of the picture using the &VIDIOC-S-FMT; ioctl according to
  285. the rotation angle selected.</entry>
  286. </row>
  287. <row>
  288. <entry><constant>V4L2_CID_BG_COLOR</constant></entry>
  289. <entry>integer</entry>
  290. <entry>Sets the background color on the current output device.
  291. Background color needs to be specified in the RGB24 format. The
  292. supplied 32 bit value is interpreted as bits 0-7 Red color information,
  293. bits 8-15 Green color information, bits 16-23 Blue color
  294. information and bits 24-31 must be zero.</entry>
  295. </row>
  296. <row>
  297. <entry><constant>V4L2_CID_LASTP1</constant></entry>
  298. <entry></entry>
  299. <entry>End of the predefined control IDs (currently
  300. <constant>V4L2_CID_BG_COLOR</constant> + 1).</entry>
  301. </row>
  302. <row>
  303. <entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>
  304. <entry></entry>
  305. <entry>ID of the first custom (driver specific) control.
  306. Applications depending on particular custom controls should check the
  307. driver name and version, see <xref linkend="querycap" />.</entry>
  308. </row>
  309. </tbody>
  310. </tgroup>
  311. </table>
  312. <para>Applications can enumerate the available controls with the
  313. &VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls, get and set a
  314. control value with the &VIDIOC-G-CTRL; and &VIDIOC-S-CTRL; ioctls.
  315. Drivers must implement <constant>VIDIOC_QUERYCTRL</constant>,
  316. <constant>VIDIOC_G_CTRL</constant> and
  317. <constant>VIDIOC_S_CTRL</constant> when the device has one or more
  318. controls, <constant>VIDIOC_QUERYMENU</constant> when it has one or
  319. more menu type controls.</para>
  320. <example>
  321. <title>Enumerating all controls</title>
  322. <programlisting>
  323. &v4l2-queryctrl; queryctrl;
  324. &v4l2-querymenu; querymenu;
  325. static void
  326. enumerate_menu (void)
  327. {
  328. printf (" Menu items:\n");
  329. memset (&amp;querymenu, 0, sizeof (querymenu));
  330. querymenu.id = queryctrl.id;
  331. for (querymenu.index = queryctrl.minimum;
  332. querymenu.index &lt;= queryctrl.maximum;
  333. querymenu.index++) {
  334. if (0 == ioctl (fd, &VIDIOC-QUERYMENU;, &amp;querymenu)) {
  335. printf (" %s\n", querymenu.name);
  336. } else {
  337. perror ("VIDIOC_QUERYMENU");
  338. exit (EXIT_FAILURE);
  339. }
  340. }
  341. }
  342. memset (&amp;queryctrl, 0, sizeof (queryctrl));
  343. for (queryctrl.id = V4L2_CID_BASE;
  344. queryctrl.id &lt; V4L2_CID_LASTP1;
  345. queryctrl.id++) {
  346. if (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
  347. if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED)
  348. continue;
  349. printf ("Control %s\n", queryctrl.name);
  350. if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
  351. enumerate_menu ();
  352. } else {
  353. if (errno == EINVAL)
  354. continue;
  355. perror ("VIDIOC_QUERYCTRL");
  356. exit (EXIT_FAILURE);
  357. }
  358. }
  359. for (queryctrl.id = V4L2_CID_PRIVATE_BASE;;
  360. queryctrl.id++) {
  361. if (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
  362. if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED)
  363. continue;
  364. printf ("Control %s\n", queryctrl.name);
  365. if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
  366. enumerate_menu ();
  367. } else {
  368. if (errno == EINVAL)
  369. break;
  370. perror ("VIDIOC_QUERYCTRL");
  371. exit (EXIT_FAILURE);
  372. }
  373. }
  374. </programlisting>
  375. </example>
  376. <example>
  377. <title>Changing controls</title>
  378. <programlisting>
  379. &v4l2-queryctrl; queryctrl;
  380. &v4l2-control; control;
  381. memset (&amp;queryctrl, 0, sizeof (queryctrl));
  382. queryctrl.id = V4L2_CID_BRIGHTNESS;
  383. if (-1 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;queryctrl)) {
  384. if (errno != EINVAL) {
  385. perror ("VIDIOC_QUERYCTRL");
  386. exit (EXIT_FAILURE);
  387. } else {
  388. printf ("V4L2_CID_BRIGHTNESS is not supported\n");
  389. }
  390. } else if (queryctrl.flags &amp; V4L2_CTRL_FLAG_DISABLED) {
  391. printf ("V4L2_CID_BRIGHTNESS is not supported\n");
  392. } else {
  393. memset (&amp;control, 0, sizeof (control));
  394. control.id = V4L2_CID_BRIGHTNESS;
  395. control.value = queryctrl.default_value;
  396. if (-1 == ioctl (fd, &VIDIOC-S-CTRL;, &amp;control)) {
  397. perror ("VIDIOC_S_CTRL");
  398. exit (EXIT_FAILURE);
  399. }
  400. }
  401. memset (&amp;control, 0, sizeof (control));
  402. control.id = V4L2_CID_CONTRAST;
  403. if (0 == ioctl (fd, &VIDIOC-G-CTRL;, &amp;control)) {
  404. control.value += 1;
  405. /* The driver may clamp the value or return ERANGE, ignored here */
  406. if (-1 == ioctl (fd, &VIDIOC-S-CTRL;, &amp;control)
  407. &amp;&amp; errno != ERANGE) {
  408. perror ("VIDIOC_S_CTRL");
  409. exit (EXIT_FAILURE);
  410. }
  411. /* Ignore if V4L2_CID_CONTRAST is unsupported */
  412. } else if (errno != EINVAL) {
  413. perror ("VIDIOC_G_CTRL");
  414. exit (EXIT_FAILURE);
  415. }
  416. control.id = V4L2_CID_AUDIO_MUTE;
  417. control.value = TRUE; /* silence */
  418. /* Errors ignored */
  419. ioctl (fd, VIDIOC_S_CTRL, &amp;control);
  420. </programlisting>
  421. </example>
  422. </section>
  423. <section id="extended-controls">
  424. <title>Extended Controls</title>
  425. <section>
  426. <title>Introduction</title>
  427. <para>The control mechanism as originally designed was meant
  428. to be used for user settings (brightness, saturation, etc). However,
  429. it turned out to be a very useful model for implementing more
  430. complicated driver APIs where each driver implements only a subset of
  431. a larger API.</para>
  432. <para>The MPEG encoding API was the driving force behind
  433. designing and implementing this extended control mechanism: the MPEG
  434. standard is quite large and the currently supported hardware MPEG
  435. encoders each only implement a subset of this standard. Further more,
  436. many parameters relating to how the video is encoded into an MPEG
  437. stream are specific to the MPEG encoding chip since the MPEG standard
  438. only defines the format of the resulting MPEG stream, not how the
  439. video is actually encoded into that format.</para>
  440. <para>Unfortunately, the original control API lacked some
  441. features needed for these new uses and so it was extended into the
  442. (not terribly originally named) extended control API.</para>
  443. <para>Even though the MPEG encoding API was the first effort
  444. to use the Extended Control API, nowadays there are also other classes
  445. of Extended Controls, such as Camera Controls and FM Transmitter Controls.
  446. The Extended Controls API as well as all Extended Controls classes are
  447. described in the following text.</para>
  448. </section>
  449. <section>
  450. <title>The Extended Control API</title>
  451. <para>Three new ioctls are available: &VIDIOC-G-EXT-CTRLS;,
  452. &VIDIOC-S-EXT-CTRLS; and &VIDIOC-TRY-EXT-CTRLS;. These ioctls act on
  453. arrays of controls (as opposed to the &VIDIOC-G-CTRL; and
  454. &VIDIOC-S-CTRL; ioctls that act on a single control). This is needed
  455. since it is often required to atomically change several controls at
  456. once.</para>
  457. <para>Each of the new ioctls expects a pointer to a
  458. &v4l2-ext-controls;. This structure contains a pointer to the control
  459. array, a count of the number of controls in that array and a control
  460. class. Control classes are used to group similar controls into a
  461. single class. For example, control class
  462. <constant>V4L2_CTRL_CLASS_USER</constant> contains all user controls
  463. (&ie; all controls that can also be set using the old
  464. <constant>VIDIOC_S_CTRL</constant> ioctl). Control class
  465. <constant>V4L2_CTRL_CLASS_MPEG</constant> contains all controls
  466. relating to MPEG encoding, etc.</para>
  467. <para>All controls in the control array must belong to the
  468. specified control class. An error is returned if this is not the
  469. case.</para>
  470. <para>It is also possible to use an empty control array (count
  471. == 0) to check whether the specified control class is
  472. supported.</para>
  473. <para>The control array is a &v4l2-ext-control; array. The
  474. <structname>v4l2_ext_control</structname> structure is very similar to
  475. &v4l2-control;, except for the fact that it also allows for 64-bit
  476. values and pointers to be passed.</para>
  477. <para>It is important to realize that due to the flexibility of
  478. controls it is necessary to check whether the control you want to set
  479. actually is supported in the driver and what the valid range of values
  480. is. So use the &VIDIOC-QUERYCTRL; and &VIDIOC-QUERYMENU; ioctls to
  481. check this. Also note that it is possible that some of the menu
  482. indices in a control of type <constant>V4L2_CTRL_TYPE_MENU</constant>
  483. may not be supported (<constant>VIDIOC_QUERYMENU</constant> will
  484. return an error). A good example is the list of supported MPEG audio
  485. bitrates. Some drivers only support one or two bitrates, others
  486. support a wider range.</para>
  487. </section>
  488. <section>
  489. <title>Enumerating Extended Controls</title>
  490. <para>The recommended way to enumerate over the extended
  491. controls is by using &VIDIOC-QUERYCTRL; in combination with the
  492. <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag:</para>
  493. <informalexample>
  494. <programlisting>
  495. &v4l2-queryctrl; qctrl;
  496. qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL;
  497. while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;qctrl)) {
  498. /* ... */
  499. qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
  500. }
  501. </programlisting>
  502. </informalexample>
  503. <para>The initial control ID is set to 0 ORed with the
  504. <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant> flag. The
  505. <constant>VIDIOC_QUERYCTRL</constant> ioctl will return the first
  506. control with a higher ID than the specified one. When no such controls
  507. are found an error is returned.</para>
  508. <para>If you want to get all controls within a specific control
  509. class, then you can set the initial
  510. <structfield>qctrl.id</structfield> value to the control class and add
  511. an extra check to break out of the loop when a control of another
  512. control class is found:</para>
  513. <informalexample>
  514. <programlisting>
  515. qctrl.id = V4L2_CTRL_CLASS_MPEG | V4L2_CTRL_FLAG_NEXT_CTRL;
  516. while (0 == ioctl (fd, &VIDIOC-QUERYCTRL;, &amp;qctrl)) {
  517. if (V4L2_CTRL_ID2CLASS (qctrl.id) != V4L2_CTRL_CLASS_MPEG)
  518. break;
  519. /* ... */
  520. qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
  521. }
  522. </programlisting>
  523. </informalexample>
  524. <para>The 32-bit <structfield>qctrl.id</structfield> value is
  525. subdivided into three bit ranges: the top 4 bits are reserved for
  526. flags (&eg; <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>) and are not
  527. actually part of the ID. The remaining 28 bits form the control ID, of
  528. which the most significant 12 bits define the control class and the
  529. least significant 16 bits identify the control within the control
  530. class. It is guaranteed that these last 16 bits are always non-zero
  531. for controls. The range of 0x1000 and up are reserved for
  532. driver-specific controls. The macro
  533. <constant>V4L2_CTRL_ID2CLASS(id)</constant> returns the control class
  534. ID based on a control ID.</para>
  535. <para>If the driver does not support extended controls, then
  536. <constant>VIDIOC_QUERYCTRL</constant> will fail when used in
  537. combination with <constant>V4L2_CTRL_FLAG_NEXT_CTRL</constant>. In
  538. that case the old method of enumerating control should be used (see
  539. 1.8). But if it is supported, then it is guaranteed to enumerate over
  540. all controls, including driver-private controls.</para>
  541. </section>
  542. <section>
  543. <title>Creating Control Panels</title>
  544. <para>It is possible to create control panels for a graphical
  545. user interface where the user can select the various controls.
  546. Basically you will have to iterate over all controls using the method
  547. described above. Each control class starts with a control of type
  548. <constant>V4L2_CTRL_TYPE_CTRL_CLASS</constant>.
  549. <constant>VIDIOC_QUERYCTRL</constant> will return the name of this
  550. control class which can be used as the title of a tab page within a
  551. control panel.</para>
  552. <para>The flags field of &v4l2-queryctrl; also contains hints on
  553. the behavior of the control. See the &VIDIOC-QUERYCTRL; documentation
  554. for more details.</para>
  555. </section>
  556. <section id="mpeg-controls">
  557. <title>MPEG Control Reference</title>
  558. <para>Below all controls within the MPEG control class are
  559. described. First the generic controls, then controls specific for
  560. certain hardware.</para>
  561. <section>
  562. <title>Generic MPEG Controls</title>
  563. <table pgwide="1" frame="none" id="mpeg-control-id">
  564. <title>MPEG Control IDs</title>
  565. <tgroup cols="4">
  566. <colspec colname="c1" colwidth="1*" />
  567. <colspec colname="c2" colwidth="6*" />
  568. <colspec colname="c3" colwidth="2*" />
  569. <colspec colname="c4" colwidth="6*" />
  570. <spanspec namest="c1" nameend="c2" spanname="id" />
  571. <spanspec namest="c2" nameend="c4" spanname="descr" />
  572. <thead>
  573. <row>
  574. <entry spanname="id" align="left">ID</entry>
  575. <entry align="left">Type</entry>
  576. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  577. </row>
  578. </thead>
  579. <tbody valign="top">
  580. <row><entry></entry></row>
  581. <row>
  582. <entry spanname="id"><constant>V4L2_CID_MPEG_CLASS</constant>&nbsp;</entry>
  583. <entry>class</entry>
  584. </row><row><entry spanname="descr">The MPEG class
  585. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  586. description of this control class. This description can be used as the
  587. caption of a Tab page in a GUI, for example.</entry>
  588. </row>
  589. <row><entry></entry></row>
  590. <row id="v4l2-mpeg-stream-type">
  591. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_TYPE</constant>&nbsp;</entry>
  592. <entry>enum&nbsp;v4l2_mpeg_stream_type</entry>
  593. </row><row><entry spanname="descr">The MPEG-1, -2 or -4
  594. output stream type. One cannot assume anything here. Each hardware
  595. MPEG encoder tends to support different subsets of the available MPEG
  596. stream types. The currently defined stream types are:</entry>
  597. </row>
  598. <row>
  599. <entrytbl spanname="descr" cols="2">
  600. <tbody valign="top">
  601. <row>
  602. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_PS</constant>&nbsp;</entry>
  603. <entry>MPEG-2 program stream</entry>
  604. </row>
  605. <row>
  606. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_TS</constant>&nbsp;</entry>
  607. <entry>MPEG-2 transport stream</entry>
  608. </row>
  609. <row>
  610. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_SS</constant>&nbsp;</entry>
  611. <entry>MPEG-1 system stream</entry>
  612. </row>
  613. <row>
  614. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_DVD</constant>&nbsp;</entry>
  615. <entry>MPEG-2 DVD-compatible stream</entry>
  616. </row>
  617. <row>
  618. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG1_VCD</constant>&nbsp;</entry>
  619. <entry>MPEG-1 VCD-compatible stream</entry>
  620. </row>
  621. <row>
  622. <entry><constant>V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD</constant>&nbsp;</entry>
  623. <entry>MPEG-2 SVCD-compatible stream</entry>
  624. </row>
  625. </tbody>
  626. </entrytbl>
  627. </row>
  628. <row><entry></entry></row>
  629. <row>
  630. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PMT</constant>&nbsp;</entry>
  631. <entry>integer</entry>
  632. </row><row><entry spanname="descr">Program Map Table
  633. Packet ID for the MPEG transport stream (default 16)</entry>
  634. </row>
  635. <row><entry></entry></row>
  636. <row>
  637. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_AUDIO</constant>&nbsp;</entry>
  638. <entry>integer</entry>
  639. </row><row><entry spanname="descr">Audio Packet ID for
  640. the MPEG transport stream (default 256)</entry>
  641. </row>
  642. <row><entry></entry></row>
  643. <row>
  644. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_VIDEO</constant>&nbsp;</entry>
  645. <entry>integer</entry>
  646. </row><row><entry spanname="descr">Video Packet ID for
  647. the MPEG transport stream (default 260)</entry>
  648. </row>
  649. <row><entry></entry></row>
  650. <row>
  651. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PID_PCR</constant>&nbsp;</entry>
  652. <entry>integer</entry>
  653. </row><row><entry spanname="descr">Packet ID for the
  654. MPEG transport stream carrying PCR fields (default 259)</entry>
  655. </row>
  656. <row><entry></entry></row>
  657. <row>
  658. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_AUDIO</constant>&nbsp;</entry>
  659. <entry>integer</entry>
  660. </row><row><entry spanname="descr">Audio ID for MPEG
  661. PES</entry>
  662. </row>
  663. <row><entry></entry></row>
  664. <row>
  665. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_PES_ID_VIDEO</constant>&nbsp;</entry>
  666. <entry>integer</entry>
  667. </row><row><entry spanname="descr">Video ID for MPEG
  668. PES</entry>
  669. </row>
  670. <row><entry></entry></row>
  671. <row id="v4l2-mpeg-stream-vbi-fmt">
  672. <entry spanname="id"><constant>V4L2_CID_MPEG_STREAM_VBI_FMT</constant>&nbsp;</entry>
  673. <entry>enum&nbsp;v4l2_mpeg_stream_vbi_fmt</entry>
  674. </row><row><entry spanname="descr">Some cards can embed
  675. VBI data (&eg; Closed Caption, Teletext) into the MPEG stream. This
  676. control selects whether VBI data should be embedded, and if so, what
  677. embedding method should be used. The list of possible VBI formats
  678. depends on the driver. The currently defined VBI format types
  679. are:</entry>
  680. </row>
  681. <row>
  682. <entrytbl spanname="descr" cols="2">
  683. <tbody valign="top">
  684. <row>
  685. <entry><constant>V4L2_MPEG_STREAM_VBI_FMT_NONE</constant>&nbsp;</entry>
  686. <entry>No VBI in the MPEG stream</entry>
  687. </row>
  688. <row>
  689. <entry><constant>V4L2_MPEG_STREAM_VBI_FMT_IVTV</constant>&nbsp;</entry>
  690. <entry>VBI in private packets, IVTV format (documented
  691. in the kernel sources in the file <filename>Documentation/video4linux/cx2341x/README.vbi</filename>)</entry>
  692. </row>
  693. </tbody>
  694. </entrytbl>
  695. </row>
  696. <row><entry></entry></row>
  697. <row id="v4l2-mpeg-audio-sampling-freq">
  698. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_SAMPLING_FREQ</constant>&nbsp;</entry>
  699. <entry>enum&nbsp;v4l2_mpeg_audio_sampling_freq</entry>
  700. </row><row><entry spanname="descr">MPEG Audio sampling
  701. frequency. Possible values are:</entry>
  702. </row>
  703. <row>
  704. <entrytbl spanname="descr" cols="2">
  705. <tbody valign="top">
  706. <row>
  707. <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100</constant>&nbsp;</entry>
  708. <entry>44.1 kHz</entry>
  709. </row>
  710. <row>
  711. <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000</constant>&nbsp;</entry>
  712. <entry>48 kHz</entry>
  713. </row>
  714. <row>
  715. <entry><constant>V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000</constant>&nbsp;</entry>
  716. <entry>32 kHz</entry>
  717. </row>
  718. </tbody>
  719. </entrytbl>
  720. </row>
  721. <row><entry></entry></row>
  722. <row id="v4l2-mpeg-audio-encoding">
  723. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_ENCODING</constant>&nbsp;</entry>
  724. <entry>enum&nbsp;v4l2_mpeg_audio_encoding</entry>
  725. </row><row><entry spanname="descr">MPEG Audio encoding.
  726. Possible values are:</entry>
  727. </row>
  728. <row>
  729. <entrytbl spanname="descr" cols="2">
  730. <tbody valign="top">
  731. <row>
  732. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_1</constant>&nbsp;</entry>
  733. <entry>MPEG-1/2 Layer I encoding</entry>
  734. </row>
  735. <row>
  736. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_2</constant>&nbsp;</entry>
  737. <entry>MPEG-1/2 Layer II encoding</entry>
  738. </row>
  739. <row>
  740. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_LAYER_3</constant>&nbsp;</entry>
  741. <entry>MPEG-1/2 Layer III encoding</entry>
  742. </row>
  743. <row>
  744. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_AAC</constant>&nbsp;</entry>
  745. <entry>MPEG-2/4 AAC (Advanced Audio Coding)</entry>
  746. </row>
  747. <row>
  748. <entry><constant>V4L2_MPEG_AUDIO_ENCODING_AC3</constant>&nbsp;</entry>
  749. <entry>AC-3 aka ATSC A/52 encoding</entry>
  750. </row>
  751. </tbody>
  752. </entrytbl>
  753. </row>
  754. <row><entry></entry></row>
  755. <row id="v4l2-mpeg-audio-l1-bitrate">
  756. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L1_BITRATE</constant>&nbsp;</entry>
  757. <entry>enum&nbsp;v4l2_mpeg_audio_l1_bitrate</entry>
  758. </row><row><entry spanname="descr">MPEG-1/2 Layer I bitrate.
  759. Possible values are:</entry>
  760. </row>
  761. <row>
  762. <entrytbl spanname="descr" cols="2">
  763. <tbody valign="top">
  764. <row>
  765. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_32K</constant>&nbsp;</entry>
  766. <entry>32 kbit/s</entry></row>
  767. <row>
  768. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_64K</constant>&nbsp;</entry>
  769. <entry>64 kbit/s</entry>
  770. </row>
  771. <row>
  772. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_96K</constant>&nbsp;</entry>
  773. <entry>96 kbit/s</entry>
  774. </row>
  775. <row>
  776. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_128K</constant>&nbsp;</entry>
  777. <entry>128 kbit/s</entry>
  778. </row>
  779. <row>
  780. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_160K</constant>&nbsp;</entry>
  781. <entry>160 kbit/s</entry>
  782. </row>
  783. <row>
  784. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_192K</constant>&nbsp;</entry>
  785. <entry>192 kbit/s</entry>
  786. </row>
  787. <row>
  788. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_224K</constant>&nbsp;</entry>
  789. <entry>224 kbit/s</entry>
  790. </row>
  791. <row>
  792. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_256K</constant>&nbsp;</entry>
  793. <entry>256 kbit/s</entry>
  794. </row>
  795. <row>
  796. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_288K</constant>&nbsp;</entry>
  797. <entry>288 kbit/s</entry>
  798. </row>
  799. <row>
  800. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_320K</constant>&nbsp;</entry>
  801. <entry>320 kbit/s</entry>
  802. </row>
  803. <row>
  804. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_352K</constant>&nbsp;</entry>
  805. <entry>352 kbit/s</entry>
  806. </row>
  807. <row>
  808. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_384K</constant>&nbsp;</entry>
  809. <entry>384 kbit/s</entry>
  810. </row>
  811. <row>
  812. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_416K</constant>&nbsp;</entry>
  813. <entry>416 kbit/s</entry>
  814. </row>
  815. <row>
  816. <entry><constant>V4L2_MPEG_AUDIO_L1_BITRATE_448K</constant>&nbsp;</entry>
  817. <entry>448 kbit/s</entry>
  818. </row>
  819. </tbody>
  820. </entrytbl>
  821. </row>
  822. <row><entry></entry></row>
  823. <row id="v4l2-mpeg-audio-l2-bitrate">
  824. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L2_BITRATE</constant>&nbsp;</entry>
  825. <entry>enum&nbsp;v4l2_mpeg_audio_l2_bitrate</entry>
  826. </row><row><entry spanname="descr">MPEG-1/2 Layer II bitrate.
  827. Possible values are:</entry>
  828. </row>
  829. <row>
  830. <entrytbl spanname="descr" cols="2">
  831. <tbody valign="top">
  832. <row>
  833. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_32K</constant>&nbsp;</entry>
  834. <entry>32 kbit/s</entry>
  835. </row>
  836. <row>
  837. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_48K</constant>&nbsp;</entry>
  838. <entry>48 kbit/s</entry>
  839. </row>
  840. <row>
  841. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_56K</constant>&nbsp;</entry>
  842. <entry>56 kbit/s</entry>
  843. </row>
  844. <row>
  845. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_64K</constant>&nbsp;</entry>
  846. <entry>64 kbit/s</entry>
  847. </row>
  848. <row>
  849. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_80K</constant>&nbsp;</entry>
  850. <entry>80 kbit/s</entry>
  851. </row>
  852. <row>
  853. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_96K</constant>&nbsp;</entry>
  854. <entry>96 kbit/s</entry>
  855. </row>
  856. <row>
  857. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_112K</constant>&nbsp;</entry>
  858. <entry>112 kbit/s</entry>
  859. </row>
  860. <row>
  861. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_128K</constant>&nbsp;</entry>
  862. <entry>128 kbit/s</entry>
  863. </row>
  864. <row>
  865. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_160K</constant>&nbsp;</entry>
  866. <entry>160 kbit/s</entry>
  867. </row>
  868. <row>
  869. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_192K</constant>&nbsp;</entry>
  870. <entry>192 kbit/s</entry>
  871. </row>
  872. <row>
  873. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_224K</constant>&nbsp;</entry>
  874. <entry>224 kbit/s</entry>
  875. </row>
  876. <row>
  877. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_256K</constant>&nbsp;</entry>
  878. <entry>256 kbit/s</entry>
  879. </row>
  880. <row>
  881. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_320K</constant>&nbsp;</entry>
  882. <entry>320 kbit/s</entry>
  883. </row>
  884. <row>
  885. <entry><constant>V4L2_MPEG_AUDIO_L2_BITRATE_384K</constant>&nbsp;</entry>
  886. <entry>384 kbit/s</entry>
  887. </row>
  888. </tbody>
  889. </entrytbl>
  890. </row>
  891. <row><entry></entry></row>
  892. <row id="v4l2-mpeg-audio-l3-bitrate">
  893. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_L3_BITRATE</constant>&nbsp;</entry>
  894. <entry>enum&nbsp;v4l2_mpeg_audio_l3_bitrate</entry>
  895. </row><row><entry spanname="descr">MPEG-1/2 Layer III bitrate.
  896. Possible values are:</entry>
  897. </row>
  898. <row>
  899. <entrytbl spanname="descr" cols="2">
  900. <tbody valign="top">
  901. <row>
  902. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_32K</constant>&nbsp;</entry>
  903. <entry>32 kbit/s</entry>
  904. </row>
  905. <row>
  906. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_40K</constant>&nbsp;</entry>
  907. <entry>40 kbit/s</entry>
  908. </row>
  909. <row>
  910. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_48K</constant>&nbsp;</entry>
  911. <entry>48 kbit/s</entry>
  912. </row>
  913. <row>
  914. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_56K</constant>&nbsp;</entry>
  915. <entry>56 kbit/s</entry>
  916. </row>
  917. <row>
  918. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_64K</constant>&nbsp;</entry>
  919. <entry>64 kbit/s</entry>
  920. </row>
  921. <row>
  922. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_80K</constant>&nbsp;</entry>
  923. <entry>80 kbit/s</entry>
  924. </row>
  925. <row>
  926. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_96K</constant>&nbsp;</entry>
  927. <entry>96 kbit/s</entry>
  928. </row>
  929. <row>
  930. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_112K</constant>&nbsp;</entry>
  931. <entry>112 kbit/s</entry>
  932. </row>
  933. <row>
  934. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_128K</constant>&nbsp;</entry>
  935. <entry>128 kbit/s</entry>
  936. </row>
  937. <row>
  938. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_160K</constant>&nbsp;</entry>
  939. <entry>160 kbit/s</entry>
  940. </row>
  941. <row>
  942. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_192K</constant>&nbsp;</entry>
  943. <entry>192 kbit/s</entry>
  944. </row>
  945. <row>
  946. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_224K</constant>&nbsp;</entry>
  947. <entry>224 kbit/s</entry>
  948. </row>
  949. <row>
  950. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_256K</constant>&nbsp;</entry>
  951. <entry>256 kbit/s</entry>
  952. </row>
  953. <row>
  954. <entry><constant>V4L2_MPEG_AUDIO_L3_BITRATE_320K</constant>&nbsp;</entry>
  955. <entry>320 kbit/s</entry>
  956. </row>
  957. </tbody>
  958. </entrytbl>
  959. </row>
  960. <row><entry></entry></row>
  961. <row>
  962. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AAC_BITRATE</constant>&nbsp;</entry>
  963. <entry>integer</entry>
  964. </row><row><entry spanname="descr">AAC bitrate in bits per second.</entry>
  965. </row>
  966. <row><entry></entry></row>
  967. <row id="v4l2-mpeg-audio-ac3-bitrate">
  968. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_AC3_BITRATE</constant>&nbsp;</entry>
  969. <entry>enum&nbsp;v4l2_mpeg_audio_ac3_bitrate</entry>
  970. </row><row><entry spanname="descr">AC-3 bitrate.
  971. Possible values are:</entry>
  972. </row>
  973. <row>
  974. <entrytbl spanname="descr" cols="2">
  975. <tbody valign="top">
  976. <row>
  977. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_32K</constant>&nbsp;</entry>
  978. <entry>32 kbit/s</entry>
  979. </row>
  980. <row>
  981. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_40K</constant>&nbsp;</entry>
  982. <entry>40 kbit/s</entry>
  983. </row>
  984. <row>
  985. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_48K</constant>&nbsp;</entry>
  986. <entry>48 kbit/s</entry>
  987. </row>
  988. <row>
  989. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_56K</constant>&nbsp;</entry>
  990. <entry>56 kbit/s</entry>
  991. </row>
  992. <row>
  993. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_64K</constant>&nbsp;</entry>
  994. <entry>64 kbit/s</entry>
  995. </row>
  996. <row>
  997. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_80K</constant>&nbsp;</entry>
  998. <entry>80 kbit/s</entry>
  999. </row>
  1000. <row>
  1001. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_96K</constant>&nbsp;</entry>
  1002. <entry>96 kbit/s</entry>
  1003. </row>
  1004. <row>
  1005. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_112K</constant>&nbsp;</entry>
  1006. <entry>112 kbit/s</entry>
  1007. </row>
  1008. <row>
  1009. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_128K</constant>&nbsp;</entry>
  1010. <entry>128 kbit/s</entry>
  1011. </row>
  1012. <row>
  1013. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_160K</constant>&nbsp;</entry>
  1014. <entry>160 kbit/s</entry>
  1015. </row>
  1016. <row>
  1017. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_192K</constant>&nbsp;</entry>
  1018. <entry>192 kbit/s</entry>
  1019. </row>
  1020. <row>
  1021. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_224K</constant>&nbsp;</entry>
  1022. <entry>224 kbit/s</entry>
  1023. </row>
  1024. <row>
  1025. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_256K</constant>&nbsp;</entry>
  1026. <entry>256 kbit/s</entry>
  1027. </row>
  1028. <row>
  1029. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_320K</constant>&nbsp;</entry>
  1030. <entry>320 kbit/s</entry>
  1031. </row>
  1032. <row>
  1033. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_384K</constant>&nbsp;</entry>
  1034. <entry>384 kbit/s</entry>
  1035. </row>
  1036. <row>
  1037. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_448K</constant>&nbsp;</entry>
  1038. <entry>448 kbit/s</entry>
  1039. </row>
  1040. <row>
  1041. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_512K</constant>&nbsp;</entry>
  1042. <entry>512 kbit/s</entry>
  1043. </row>
  1044. <row>
  1045. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_576K</constant>&nbsp;</entry>
  1046. <entry>576 kbit/s</entry>
  1047. </row>
  1048. <row>
  1049. <entry><constant>V4L2_MPEG_AUDIO_AC3_BITRATE_640K</constant>&nbsp;</entry>
  1050. <entry>640 kbit/s</entry>
  1051. </row>
  1052. </tbody>
  1053. </entrytbl>
  1054. </row>
  1055. <row><entry></entry></row>
  1056. <row id="v4l2-mpeg-audio-mode">
  1057. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE</constant>&nbsp;</entry>
  1058. <entry>enum&nbsp;v4l2_mpeg_audio_mode</entry>
  1059. </row><row><entry spanname="descr">MPEG Audio mode.
  1060. Possible values are:</entry>
  1061. </row>
  1062. <row>
  1063. <entrytbl spanname="descr" cols="2">
  1064. <tbody valign="top">
  1065. <row>
  1066. <entry><constant>V4L2_MPEG_AUDIO_MODE_STEREO</constant>&nbsp;</entry>
  1067. <entry>Stereo</entry>
  1068. </row>
  1069. <row>
  1070. <entry><constant>V4L2_MPEG_AUDIO_MODE_JOINT_STEREO</constant>&nbsp;</entry>
  1071. <entry>Joint Stereo</entry>
  1072. </row>
  1073. <row>
  1074. <entry><constant>V4L2_MPEG_AUDIO_MODE_DUAL</constant>&nbsp;</entry>
  1075. <entry>Bilingual</entry>
  1076. </row>
  1077. <row>
  1078. <entry><constant>V4L2_MPEG_AUDIO_MODE_MONO</constant>&nbsp;</entry>
  1079. <entry>Mono</entry>
  1080. </row>
  1081. </tbody>
  1082. </entrytbl>
  1083. </row>
  1084. <row><entry></entry></row>
  1085. <row id="v4l2-mpeg-audio-mode-extension">
  1086. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MODE_EXTENSION</constant>&nbsp;</entry>
  1087. <entry>enum&nbsp;v4l2_mpeg_audio_mode_extension</entry>
  1088. </row><row><entry spanname="descr">Joint Stereo
  1089. audio mode extension. In Layer I and II they indicate which subbands
  1090. are in intensity stereo. All other subbands are coded in stereo. Layer
  1091. III is not (yet) supported. Possible values
  1092. are:</entry>
  1093. </row>
  1094. <row>
  1095. <entrytbl spanname="descr" cols="2">
  1096. <tbody valign="top">
  1097. <row>
  1098. <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_4</constant>&nbsp;</entry>
  1099. <entry>Subbands 4-31 in intensity stereo</entry>
  1100. </row>
  1101. <row>
  1102. <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_8</constant>&nbsp;</entry>
  1103. <entry>Subbands 8-31 in intensity stereo</entry>
  1104. </row>
  1105. <row>
  1106. <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_12</constant>&nbsp;</entry>
  1107. <entry>Subbands 12-31 in intensity stereo</entry>
  1108. </row>
  1109. <row>
  1110. <entry><constant>V4L2_MPEG_AUDIO_MODE_EXTENSION_BOUND_16</constant>&nbsp;</entry>
  1111. <entry>Subbands 16-31 in intensity stereo</entry>
  1112. </row>
  1113. </tbody>
  1114. </entrytbl>
  1115. </row>
  1116. <row><entry></entry></row>
  1117. <row id="v4l2-mpeg-audio-emphasis">
  1118. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_EMPHASIS</constant>&nbsp;</entry>
  1119. <entry>enum&nbsp;v4l2_mpeg_audio_emphasis</entry>
  1120. </row><row><entry spanname="descr">Audio Emphasis.
  1121. Possible values are:</entry>
  1122. </row>
  1123. <row>
  1124. <entrytbl spanname="descr" cols="2">
  1125. <tbody valign="top">
  1126. <row>
  1127. <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_NONE</constant>&nbsp;</entry>
  1128. <entry>None</entry>
  1129. </row>
  1130. <row>
  1131. <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_50_DIV_15_uS</constant>&nbsp;</entry>
  1132. <entry>50/15 microsecond emphasis</entry>
  1133. </row>
  1134. <row>
  1135. <entry><constant>V4L2_MPEG_AUDIO_EMPHASIS_CCITT_J17</constant>&nbsp;</entry>
  1136. <entry>CCITT J.17</entry>
  1137. </row>
  1138. </tbody>
  1139. </entrytbl>
  1140. </row>
  1141. <row><entry></entry></row>
  1142. <row id="v4l2-mpeg-audio-crc">
  1143. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_CRC</constant>&nbsp;</entry>
  1144. <entry>enum&nbsp;v4l2_mpeg_audio_crc</entry>
  1145. </row><row><entry spanname="descr">CRC method. Possible
  1146. values are:</entry>
  1147. </row>
  1148. <row>
  1149. <entrytbl spanname="descr" cols="2">
  1150. <tbody valign="top">
  1151. <row>
  1152. <entry><constant>V4L2_MPEG_AUDIO_CRC_NONE</constant>&nbsp;</entry>
  1153. <entry>None</entry>
  1154. </row>
  1155. <row>
  1156. <entry><constant>V4L2_MPEG_AUDIO_CRC_CRC16</constant>&nbsp;</entry>
  1157. <entry>16 bit parity check</entry>
  1158. </row>
  1159. </tbody>
  1160. </entrytbl>
  1161. </row>
  1162. <row><entry></entry></row>
  1163. <row>
  1164. <entry spanname="id"><constant>V4L2_CID_MPEG_AUDIO_MUTE</constant>&nbsp;</entry>
  1165. <entry>boolean</entry>
  1166. </row><row><entry spanname="descr">Mutes the audio when
  1167. capturing. This is not done by muting audio hardware, which can still
  1168. produce a slight hiss, but in the encoder itself, guaranteeing a fixed
  1169. and reproducable audio bitstream. 0 = unmuted, 1 = muted.</entry>
  1170. </row>
  1171. <row><entry></entry></row>
  1172. <row id="v4l2-mpeg-video-encoding">
  1173. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ENCODING</constant>&nbsp;</entry>
  1174. <entry>enum&nbsp;v4l2_mpeg_video_encoding</entry>
  1175. </row><row><entry spanname="descr">MPEG Video encoding
  1176. method. Possible values are:</entry>
  1177. </row>
  1178. <row>
  1179. <entrytbl spanname="descr" cols="2">
  1180. <tbody valign="top">
  1181. <row>
  1182. <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_1</constant>&nbsp;</entry>
  1183. <entry>MPEG-1 Video encoding</entry>
  1184. </row>
  1185. <row>
  1186. <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_2</constant>&nbsp;</entry>
  1187. <entry>MPEG-2 Video encoding</entry>
  1188. </row>
  1189. <row>
  1190. <entry><constant>V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC</constant>&nbsp;</entry>
  1191. <entry>MPEG-4 AVC (H.264) Video encoding</entry>
  1192. </row>
  1193. </tbody>
  1194. </entrytbl>
  1195. </row>
  1196. <row><entry></entry></row>
  1197. <row id="v4l2-mpeg-video-aspect">
  1198. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_ASPECT</constant>&nbsp;</entry>
  1199. <entry>enum&nbsp;v4l2_mpeg_video_aspect</entry>
  1200. </row><row><entry spanname="descr">Video aspect.
  1201. Possible values are:</entry>
  1202. </row>
  1203. <row>
  1204. <entrytbl spanname="descr" cols="2">
  1205. <tbody valign="top">
  1206. <row>
  1207. <entry><constant>V4L2_MPEG_VIDEO_ASPECT_1x1</constant>&nbsp;</entry>
  1208. </row>
  1209. <row>
  1210. <entry><constant>V4L2_MPEG_VIDEO_ASPECT_4x3</constant>&nbsp;</entry>
  1211. </row>
  1212. <row>
  1213. <entry><constant>V4L2_MPEG_VIDEO_ASPECT_16x9</constant>&nbsp;</entry>
  1214. </row>
  1215. <row>
  1216. <entry><constant>V4L2_MPEG_VIDEO_ASPECT_221x100</constant>&nbsp;</entry>
  1217. </row>
  1218. </tbody>
  1219. </entrytbl>
  1220. </row>
  1221. <row><entry></entry></row>
  1222. <row>
  1223. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_B_FRAMES</constant>&nbsp;</entry>
  1224. <entry>integer</entry>
  1225. </row><row><entry spanname="descr">Number of B-Frames
  1226. (default 2)</entry>
  1227. </row>
  1228. <row><entry></entry></row>
  1229. <row>
  1230. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_SIZE</constant>&nbsp;</entry>
  1231. <entry>integer</entry>
  1232. </row><row><entry spanname="descr">GOP size (default
  1233. 12)</entry>
  1234. </row>
  1235. <row><entry></entry></row>
  1236. <row>
  1237. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_GOP_CLOSURE</constant>&nbsp;</entry>
  1238. <entry>boolean</entry>
  1239. </row><row><entry spanname="descr">GOP closure (default
  1240. 1)</entry>
  1241. </row>
  1242. <row><entry></entry></row>
  1243. <row>
  1244. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_PULLDOWN</constant>&nbsp;</entry>
  1245. <entry>boolean</entry>
  1246. </row><row><entry spanname="descr">Enable 3:2 pulldown
  1247. (default 0)</entry>
  1248. </row>
  1249. <row><entry></entry></row>
  1250. <row id="v4l2-mpeg-video-bitrate-mode">
  1251. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_MODE</constant>&nbsp;</entry>
  1252. <entry>enum&nbsp;v4l2_mpeg_video_bitrate_mode</entry>
  1253. </row><row><entry spanname="descr">Video bitrate mode.
  1254. Possible values are:</entry>
  1255. </row>
  1256. <row>
  1257. <entrytbl spanname="descr" cols="2">
  1258. <tbody valign="top">
  1259. <row>
  1260. <entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_VBR</constant>&nbsp;</entry>
  1261. <entry>Variable bitrate</entry>
  1262. </row>
  1263. <row>
  1264. <entry><constant>V4L2_MPEG_VIDEO_BITRATE_MODE_CBR</constant>&nbsp;</entry>
  1265. <entry>Constant bitrate</entry>
  1266. </row>
  1267. </tbody>
  1268. </entrytbl>
  1269. </row>
  1270. <row><entry></entry></row>
  1271. <row>
  1272. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE</constant>&nbsp;</entry>
  1273. <entry>integer</entry>
  1274. </row><row><entry spanname="descr">Video bitrate in bits
  1275. per second.</entry>
  1276. </row>
  1277. <row><entry></entry></row>
  1278. <row>
  1279. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_BITRATE_PEAK</constant>&nbsp;</entry>
  1280. <entry>integer</entry>
  1281. </row><row><entry spanname="descr">Peak video bitrate in
  1282. bits per second. Must be larger or equal to the average video bitrate.
  1283. It is ignored if the video bitrate mode is set to constant
  1284. bitrate.</entry>
  1285. </row>
  1286. <row><entry></entry></row>
  1287. <row>
  1288. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_TEMPORAL_DECIMATION</constant>&nbsp;</entry>
  1289. <entry>integer</entry>
  1290. </row><row><entry spanname="descr">For every captured
  1291. frame, skip this many subsequent frames (default 0).</entry>
  1292. </row>
  1293. <row><entry></entry></row>
  1294. <row>
  1295. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE</constant>&nbsp;</entry>
  1296. <entry>boolean</entry>
  1297. </row>
  1298. <row><entry spanname="descr">"Mutes" the video to a
  1299. fixed color when capturing. This is useful for testing, to produce a
  1300. fixed video bitstream. 0 = unmuted, 1 = muted.</entry>
  1301. </row>
  1302. <row><entry></entry></row>
  1303. <row>
  1304. <entry spanname="id"><constant>V4L2_CID_MPEG_VIDEO_MUTE_YUV</constant>&nbsp;</entry>
  1305. <entry>integer</entry>
  1306. </row><row><entry spanname="descr">Sets the "mute" color
  1307. of the video. The supplied 32-bit integer is interpreted as follows (bit
  1308. 0 = least significant bit):</entry>
  1309. </row>
  1310. <row>
  1311. <entrytbl spanname="descr" cols="2">
  1312. <tbody valign="top">
  1313. <row>
  1314. <entry>Bit 0:7</entry>
  1315. <entry>V chrominance information</entry>
  1316. </row>
  1317. <row>
  1318. <entry>Bit 8:15</entry>
  1319. <entry>U chrominance information</entry>
  1320. </row>
  1321. <row>
  1322. <entry>Bit 16:23</entry>
  1323. <entry>Y luminance information</entry>
  1324. </row>
  1325. <row>
  1326. <entry>Bit 24:31</entry>
  1327. <entry>Must be zero.</entry>
  1328. </row>
  1329. </tbody>
  1330. </entrytbl>
  1331. </row>
  1332. </tbody>
  1333. </tgroup>
  1334. </table>
  1335. </section>
  1336. <section>
  1337. <title>CX2341x MPEG Controls</title>
  1338. <para>The following MPEG class controls deal with MPEG
  1339. encoding settings that are specific to the Conexant CX23415 and
  1340. CX23416 MPEG encoding chips.</para>
  1341. <table pgwide="1" frame="none" id="cx2341x-control-id">
  1342. <title>CX2341x Control IDs</title>
  1343. <tgroup cols="4">
  1344. <colspec colname="c1" colwidth="1*" />
  1345. <colspec colname="c2" colwidth="6*" />
  1346. <colspec colname="c3" colwidth="2*" />
  1347. <colspec colname="c4" colwidth="6*" />
  1348. <spanspec namest="c1" nameend="c2" spanname="id" />
  1349. <spanspec namest="c2" nameend="c4" spanname="descr" />
  1350. <thead>
  1351. <row>
  1352. <entry spanname="id" align="left">ID</entry>
  1353. <entry align="left">Type</entry>
  1354. </row><row><entry spanname="descr" align="left">Description</entry>
  1355. </row>
  1356. </thead>
  1357. <tbody valign="top">
  1358. <row><entry></entry></row>
  1359. <row id="v4l2-mpeg-cx2341x-video-spatial-filter-mode">
  1360. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE</constant>&nbsp;</entry>
  1361. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_spatial_filter_mode</entry>
  1362. </row><row><entry spanname="descr">Sets the Spatial
  1363. Filter mode (default <constant>MANUAL</constant>). Possible values
  1364. are:</entry>
  1365. </row>
  1366. <row>
  1367. <entrytbl spanname="descr" cols="2">
  1368. <tbody valign="top">
  1369. <row>
  1370. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_MANUAL</constant>&nbsp;</entry>
  1371. <entry>Choose the filter manually</entry>
  1372. </row>
  1373. <row>
  1374. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_SPATIAL_FILTER_MODE_AUTO</constant>&nbsp;</entry>
  1375. <entry>Choose the filter automatically</entry>
  1376. </row>
  1377. </tbody>
  1378. </entrytbl>
  1379. </row>
  1380. <row><entry></entry></row>
  1381. <row>
  1382. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_SPATIAL_FILTER</constant>&nbsp;</entry>
  1383. <entry>integer&nbsp;(0-15)</entry>
  1384. </row><row><entry spanname="descr">The setting for the
  1385. Spatial Filter. 0 = off, 15 = maximum. (Default is 0.)</entry>
  1386. </row>
  1387. <row><entry></entry></row>
  1388. <row id="luma-spatial-filter-type">
  1389. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE</constant>&nbsp;</entry>
  1390. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_luma_spatial_filter_type</entry>
  1391. </row><row><entry spanname="descr">Select the algorithm
  1392. to use for the Luma Spatial Filter (default
  1393. <constant>1D_HOR</constant>). Possible values:</entry>
  1394. </row>
  1395. <row>
  1396. <entrytbl spanname="descr" cols="2">
  1397. <tbody valign="top">
  1398. <row>
  1399. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  1400. <entry>No filter</entry>
  1401. </row>
  1402. <row>
  1403. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_HOR</constant>&nbsp;</entry>
  1404. <entry>One-dimensional horizontal</entry>
  1405. </row>
  1406. <row>
  1407. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_1D_VERT</constant>&nbsp;</entry>
  1408. <entry>One-dimensional vertical</entry>
  1409. </row>
  1410. <row>
  1411. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_HV_SEPARABLE</constant>&nbsp;</entry>
  1412. <entry>Two-dimensional separable</entry>
  1413. </row>
  1414. <row>
  1415. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_LUMA_SPATIAL_FILTER_TYPE_2D_SYM_NON_SEPARABLE</constant>&nbsp;</entry>
  1416. <entry>Two-dimensional symmetrical
  1417. non-separable</entry>
  1418. </row>
  1419. </tbody>
  1420. </entrytbl>
  1421. </row>
  1422. <row><entry></entry></row>
  1423. <row id="chroma-spatial-filter-type">
  1424. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE</constant>&nbsp;</entry>
  1425. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_chroma_spatial_filter_type</entry>
  1426. </row><row><entry spanname="descr">Select the algorithm
  1427. for the Chroma Spatial Filter (default <constant>1D_HOR</constant>).
  1428. Possible values are:</entry>
  1429. </row>
  1430. <row>
  1431. <entrytbl spanname="descr" cols="2">
  1432. <tbody valign="top">
  1433. <row>
  1434. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  1435. <entry>No filter</entry>
  1436. </row>
  1437. <row>
  1438. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_CHROMA_SPATIAL_FILTER_TYPE_1D_HOR</constant>&nbsp;</entry>
  1439. <entry>One-dimensional horizontal</entry>
  1440. </row>
  1441. </tbody>
  1442. </entrytbl>
  1443. </row>
  1444. <row><entry></entry></row>
  1445. <row id="v4l2-mpeg-cx2341x-video-temporal-filter-mode">
  1446. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE</constant>&nbsp;</entry>
  1447. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_temporal_filter_mode</entry>
  1448. </row><row><entry spanname="descr">Sets the Temporal
  1449. Filter mode (default <constant>MANUAL</constant>). Possible values
  1450. are:</entry>
  1451. </row>
  1452. <row>
  1453. <entrytbl spanname="descr" cols="2">
  1454. <tbody valign="top">
  1455. <row>
  1456. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_MANUAL</constant>&nbsp;</entry>
  1457. <entry>Choose the filter manually</entry>
  1458. </row>
  1459. <row>
  1460. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER_MODE_AUTO</constant>&nbsp;</entry>
  1461. <entry>Choose the filter automatically</entry>
  1462. </row>
  1463. </tbody>
  1464. </entrytbl>
  1465. </row>
  1466. <row><entry></entry></row>
  1467. <row>
  1468. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_TEMPORAL_FILTER</constant>&nbsp;</entry>
  1469. <entry>integer&nbsp;(0-31)</entry>
  1470. </row><row><entry spanname="descr">The setting for the
  1471. Temporal Filter. 0 = off, 31 = maximum. (Default is 8 for full-scale
  1472. capturing and 0 for scaled capturing.)</entry>
  1473. </row>
  1474. <row><entry></entry></row>
  1475. <row id="v4l2-mpeg-cx2341x-video-median-filter-type">
  1476. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE</constant>&nbsp;</entry>
  1477. <entry>enum&nbsp;v4l2_mpeg_cx2341x_video_median_filter_type</entry>
  1478. </row><row><entry spanname="descr">Median Filter Type
  1479. (default <constant>OFF</constant>). Possible values are:</entry>
  1480. </row>
  1481. <row>
  1482. <entrytbl spanname="descr" cols="2">
  1483. <tbody valign="top">
  1484. <row>
  1485. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_OFF</constant>&nbsp;</entry>
  1486. <entry>No filter</entry>
  1487. </row>
  1488. <row>
  1489. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR</constant>&nbsp;</entry>
  1490. <entry>Horizontal filter</entry>
  1491. </row>
  1492. <row>
  1493. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_VERT</constant>&nbsp;</entry>
  1494. <entry>Vertical filter</entry>
  1495. </row>
  1496. <row>
  1497. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_HOR_VERT</constant>&nbsp;</entry>
  1498. <entry>Horizontal and vertical filter</entry>
  1499. </row>
  1500. <row>
  1501. <entry><constant>V4L2_MPEG_CX2341X_VIDEO_MEDIAN_FILTER_TYPE_DIAG</constant>&nbsp;</entry>
  1502. <entry>Diagonal filter</entry>
  1503. </row>
  1504. </tbody>
  1505. </entrytbl>
  1506. </row>
  1507. <row><entry></entry></row>
  1508. <row>
  1509. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_BOTTOM</constant>&nbsp;</entry>
  1510. <entry>integer&nbsp;(0-255)</entry>
  1511. </row><row><entry spanname="descr">Threshold above which
  1512. the luminance median filter is enabled (default 0)</entry>
  1513. </row>
  1514. <row><entry></entry></row>
  1515. <row>
  1516. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_LUMA_MEDIAN_FILTER_TOP</constant>&nbsp;</entry>
  1517. <entry>integer&nbsp;(0-255)</entry>
  1518. </row><row><entry spanname="descr">Threshold below which
  1519. the luminance median filter is enabled (default 255)</entry>
  1520. </row>
  1521. <row><entry></entry></row>
  1522. <row>
  1523. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_BOTTOM</constant>&nbsp;</entry>
  1524. <entry>integer&nbsp;(0-255)</entry>
  1525. </row><row><entry spanname="descr">Threshold above which
  1526. the chroma median filter is enabled (default 0)</entry>
  1527. </row>
  1528. <row><entry></entry></row>
  1529. <row>
  1530. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_VIDEO_CHROMA_MEDIAN_FILTER_TOP</constant>&nbsp;</entry>
  1531. <entry>integer&nbsp;(0-255)</entry>
  1532. </row><row><entry spanname="descr">Threshold below which
  1533. the chroma median filter is enabled (default 255)</entry>
  1534. </row>
  1535. <row><entry></entry></row>
  1536. <row>
  1537. <entry spanname="id"><constant>V4L2_CID_MPEG_CX2341X_STREAM_INSERT_NAV_PACKETS</constant>&nbsp;</entry>
  1538. <entry>boolean</entry>
  1539. </row>
  1540. <row><entry spanname="descr">The CX2341X MPEG encoder
  1541. can insert one empty MPEG-2 PES packet into the stream between every
  1542. four video frames. The packet size is 2048 bytes, including the
  1543. packet_start_code_prefix and stream_id fields. The stream_id is 0xBF
  1544. (private stream 2). The payload consists of 0x00 bytes, to be filled
  1545. in by the application. 0 = do not insert, 1 = insert packets.</entry>
  1546. </row>
  1547. </tbody>
  1548. </tgroup>
  1549. </table>
  1550. </section>
  1551. </section>
  1552. <section id="camera-controls">
  1553. <title>Camera Control Reference</title>
  1554. <para>The Camera class includes controls for mechanical (or
  1555. equivalent digital) features of a device such as controllable lenses
  1556. or sensors.</para>
  1557. <table pgwide="1" frame="none" id="camera-control-id">
  1558. <title>Camera Control IDs</title>
  1559. <tgroup cols="4">
  1560. <colspec colname="c1" colwidth="1*" />
  1561. <colspec colname="c2" colwidth="6*" />
  1562. <colspec colname="c3" colwidth="2*" />
  1563. <colspec colname="c4" colwidth="6*" />
  1564. <spanspec namest="c1" nameend="c2" spanname="id" />
  1565. <spanspec namest="c2" nameend="c4" spanname="descr" />
  1566. <thead>
  1567. <row>
  1568. <entry spanname="id" align="left">ID</entry>
  1569. <entry align="left">Type</entry>
  1570. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  1571. </row>
  1572. </thead>
  1573. <tbody valign="top">
  1574. <row><entry></entry></row>
  1575. <row>
  1576. <entry spanname="id"><constant>V4L2_CID_CAMERA_CLASS</constant>&nbsp;</entry>
  1577. <entry>class</entry>
  1578. </row><row><entry spanname="descr">The Camera class
  1579. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  1580. description of this control class.</entry>
  1581. </row>
  1582. <row><entry></entry></row>
  1583. <row id="v4l2-exposure-auto-type">
  1584. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO</constant>&nbsp;</entry>
  1585. <entry>enum&nbsp;v4l2_exposure_auto_type</entry>
  1586. </row><row><entry spanname="descr">Enables automatic
  1587. adjustments of the exposure time and/or iris aperture. The effect of
  1588. manual changes of the exposure time or iris aperture while these
  1589. features are enabled is undefined, drivers should ignore such
  1590. requests. Possible values are:</entry>
  1591. </row>
  1592. <row>
  1593. <entrytbl spanname="descr" cols="2">
  1594. <tbody valign="top">
  1595. <row>
  1596. <entry><constant>V4L2_EXPOSURE_AUTO</constant>&nbsp;</entry>
  1597. <entry>Automatic exposure time, automatic iris
  1598. aperture.</entry>
  1599. </row>
  1600. <row>
  1601. <entry><constant>V4L2_EXPOSURE_MANUAL</constant>&nbsp;</entry>
  1602. <entry>Manual exposure time, manual iris.</entry>
  1603. </row>
  1604. <row>
  1605. <entry><constant>V4L2_EXPOSURE_SHUTTER_PRIORITY</constant>&nbsp;</entry>
  1606. <entry>Manual exposure time, auto iris.</entry>
  1607. </row>
  1608. <row>
  1609. <entry><constant>V4L2_EXPOSURE_APERTURE_PRIORITY</constant>&nbsp;</entry>
  1610. <entry>Auto exposure time, manual iris.</entry>
  1611. </row>
  1612. </tbody>
  1613. </entrytbl>
  1614. </row>
  1615. <row><entry></entry></row>
  1616. <row>
  1617. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_ABSOLUTE</constant>&nbsp;</entry>
  1618. <entry>integer</entry>
  1619. </row><row><entry spanname="descr">Determines the exposure
  1620. time of the camera sensor. The exposure time is limited by the frame
  1621. interval. Drivers should interpret the values as 100 &micro;s units,
  1622. where the value 1 stands for 1/10000th of a second, 10000 for 1 second
  1623. and 100000 for 10 seconds.</entry>
  1624. </row>
  1625. <row><entry></entry></row>
  1626. <row>
  1627. <entry spanname="id"><constant>V4L2_CID_EXPOSURE_AUTO_PRIORITY</constant>&nbsp;</entry>
  1628. <entry>boolean</entry>
  1629. </row><row><entry spanname="descr">When
  1630. <constant>V4L2_CID_EXPOSURE_AUTO</constant> is set to
  1631. <constant>AUTO</constant> or <constant>APERTURE_PRIORITY</constant>,
  1632. this control determines if the device may dynamically vary the frame
  1633. rate. By default this feature is disabled (0) and the frame rate must
  1634. remain constant.</entry>
  1635. </row>
  1636. <row><entry></entry></row>
  1637. <row>
  1638. <entry spanname="id"><constant>V4L2_CID_PAN_RELATIVE</constant>&nbsp;</entry>
  1639. <entry>integer</entry>
  1640. </row><row><entry spanname="descr">This control turns the
  1641. camera horizontally by the specified amount. The unit is undefined. A
  1642. positive value moves the camera to the right (clockwise when viewed
  1643. from above), a negative value to the left. A value of zero does not
  1644. cause motion. This is a write-only control.</entry>
  1645. </row>
  1646. <row><entry></entry></row>
  1647. <row>
  1648. <entry spanname="id"><constant>V4L2_CID_TILT_RELATIVE</constant>&nbsp;</entry>
  1649. <entry>integer</entry>
  1650. </row><row><entry spanname="descr">This control turns the
  1651. camera vertically by the specified amount. The unit is undefined. A
  1652. positive value moves the camera up, a negative value down. A value of
  1653. zero does not cause motion. This is a write-only control.</entry>
  1654. </row>
  1655. <row><entry></entry></row>
  1656. <row>
  1657. <entry spanname="id"><constant>V4L2_CID_PAN_RESET</constant>&nbsp;</entry>
  1658. <entry>button</entry>
  1659. </row><row><entry spanname="descr">When this control is set,
  1660. the camera moves horizontally to the default position.</entry>
  1661. </row>
  1662. <row><entry></entry></row>
  1663. <row>
  1664. <entry spanname="id"><constant>V4L2_CID_TILT_RESET</constant>&nbsp;</entry>
  1665. <entry>button</entry>
  1666. </row><row><entry spanname="descr">When this control is set,
  1667. the camera moves vertically to the default position.</entry>
  1668. </row>
  1669. <row><entry></entry></row>
  1670. <row>
  1671. <entry spanname="id"><constant>V4L2_CID_PAN_ABSOLUTE</constant>&nbsp;</entry>
  1672. <entry>integer</entry>
  1673. </row><row><entry spanname="descr">This control
  1674. turns the camera horizontally to the specified position. Positive
  1675. values move the camera to the right (clockwise when viewed from above),
  1676. negative values to the left. Drivers should interpret the values as arc
  1677. seconds, with valid values between -180 * 3600 and +180 * 3600
  1678. inclusive.</entry>
  1679. </row>
  1680. <row><entry></entry></row>
  1681. <row>
  1682. <entry spanname="id"><constant>V4L2_CID_TILT_ABSOLUTE</constant>&nbsp;</entry>
  1683. <entry>integer</entry>
  1684. </row><row><entry spanname="descr">This control
  1685. turns the camera vertically to the specified position. Positive values
  1686. move the camera up, negative values down. Drivers should interpret the
  1687. values as arc seconds, with valid values between -180 * 3600 and +180
  1688. * 3600 inclusive.</entry>
  1689. </row>
  1690. <row><entry></entry></row>
  1691. <row>
  1692. <entry spanname="id"><constant>V4L2_CID_FOCUS_ABSOLUTE</constant>&nbsp;</entry>
  1693. <entry>integer</entry>
  1694. </row><row><entry spanname="descr">This control sets the
  1695. focal point of the camera to the specified position. The unit is
  1696. undefined. Positive values set the focus closer to the camera,
  1697. negative values towards infinity.</entry>
  1698. </row>
  1699. <row><entry></entry></row>
  1700. <row>
  1701. <entry spanname="id"><constant>V4L2_CID_FOCUS_RELATIVE</constant>&nbsp;</entry>
  1702. <entry>integer</entry>
  1703. </row><row><entry spanname="descr">This control moves the
  1704. focal point of the camera by the specified amount. The unit is
  1705. undefined. Positive values move the focus closer to the camera,
  1706. negative values towards infinity. This is a write-only control.</entry>
  1707. </row>
  1708. <row><entry></entry></row>
  1709. <row>
  1710. <entry spanname="id"><constant>V4L2_CID_FOCUS_AUTO</constant>&nbsp;</entry>
  1711. <entry>boolean</entry>
  1712. </row><row><entry spanname="descr">Enables automatic focus
  1713. adjustments. The effect of manual focus adjustments while this feature
  1714. is enabled is undefined, drivers should ignore such requests.</entry>
  1715. </row>
  1716. <row><entry></entry></row>
  1717. <row>
  1718. <entry spanname="id"><constant>V4L2_CID_ZOOM_ABSOLUTE</constant>&nbsp;</entry>
  1719. <entry>integer</entry>
  1720. </row><row><entry spanname="descr">Specify the objective lens
  1721. focal length as an absolute value. The zoom unit is driver-specific and its
  1722. value should be a positive integer.</entry>
  1723. </row>
  1724. <row><entry></entry></row>
  1725. <row>
  1726. <entry spanname="id"><constant>V4L2_CID_ZOOM_RELATIVE</constant>&nbsp;</entry>
  1727. <entry>integer</entry>
  1728. </row><row><entry spanname="descr">Specify the objective lens
  1729. focal length relatively to the current value. Positive values move the zoom
  1730. lens group towards the telephoto direction, negative values towards the
  1731. wide-angle direction. The zoom unit is driver-specific. This is a write-only control.</entry>
  1732. </row>
  1733. <row><entry></entry></row>
  1734. <row>
  1735. <entry spanname="id"><constant>V4L2_CID_ZOOM_CONTINUOUS</constant>&nbsp;</entry>
  1736. <entry>integer</entry>
  1737. </row><row><entry spanname="descr">Move the objective lens group
  1738. at the specified speed until it reaches physical device limits or until an
  1739. explicit request to stop the movement. A positive value moves the zoom lens
  1740. group towards the telephoto direction. A value of zero stops the zoom lens
  1741. group movement. A negative value moves the zoom lens group towards the
  1742. wide-angle direction. The zoom speed unit is driver-specific.</entry>
  1743. </row>
  1744. <row><entry></entry></row>
  1745. <row>
  1746. <entry spanname="id"><constant>V4L2_CID_PRIVACY</constant>&nbsp;</entry>
  1747. <entry>boolean</entry>
  1748. </row><row><entry spanname="descr">Prevent video from being acquired
  1749. by the camera. When this control is set to <constant>TRUE</constant> (1), no
  1750. image can be captured by the camera. Common means to enforce privacy are
  1751. mechanical obturation of the sensor and firmware image processing, but the
  1752. device is not restricted to these methods. Devices that implement the privacy
  1753. control must support read access and may support write access.</entry>
  1754. </row>
  1755. <row>
  1756. <entry spanname="id"><constant>V4L2_CID_BAND_STOP_FILTER</constant>&nbsp;</entry>
  1757. <entry>integer</entry>
  1758. </row><row><entry spanname="descr">Switch the band-stop filter of a
  1759. camera sensor on or off, or specify its strength. Such band-stop filters can
  1760. be used, for example, to filter out the fluorescent light component.</entry>
  1761. </row>
  1762. <row><entry></entry></row>
  1763. </tbody>
  1764. </tgroup>
  1765. </table>
  1766. </section>
  1767. <section id="fm-tx-controls">
  1768. <title>FM Transmitter Control Reference</title>
  1769. <para>The FM Transmitter (FM_TX) class includes controls for common features of
  1770. FM transmissions capable devices. Currently this class includes parameters for audio
  1771. compression, pilot tone generation, audio deviation limiter, RDS transmission and
  1772. tuning power features.</para>
  1773. <table pgwide="1" frame="none" id="fm-tx-control-id">
  1774. <title>FM_TX Control IDs</title>
  1775. <tgroup cols="4">
  1776. <colspec colname="c1" colwidth="1*" />
  1777. <colspec colname="c2" colwidth="6*" />
  1778. <colspec colname="c3" colwidth="2*" />
  1779. <colspec colname="c4" colwidth="6*" />
  1780. <spanspec namest="c1" nameend="c2" spanname="id" />
  1781. <spanspec namest="c2" nameend="c4" spanname="descr" />
  1782. <thead>
  1783. <row>
  1784. <entry spanname="id" align="left">ID</entry>
  1785. <entry align="left">Type</entry>
  1786. </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
  1787. </row>
  1788. </thead>
  1789. <tbody valign="top">
  1790. <row><entry></entry></row>
  1791. <row>
  1792. <entry spanname="id"><constant>V4L2_CID_FM_TX_CLASS</constant>&nbsp;</entry>
  1793. <entry>class</entry>
  1794. </row><row><entry spanname="descr">The FM_TX class
  1795. descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
  1796. description of this control class.</entry>
  1797. </row>
  1798. <row>
  1799. <entry spanname="id"><constant>V4L2_CID_RDS_TX_DEVIATION</constant>&nbsp;</entry>
  1800. <entry>integer</entry>
  1801. </row>
  1802. <row><entry spanname="descr">Configures RDS signal frequency deviation level in Hz.
  1803. The range and step are driver-specific.</entry>
  1804. </row>
  1805. <row>
  1806. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PI</constant>&nbsp;</entry>
  1807. <entry>integer</entry>
  1808. </row>
  1809. <row><entry spanname="descr">Sets the RDS Programme Identification field
  1810. for transmission.</entry>
  1811. </row>
  1812. <row>
  1813. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PTY</constant>&nbsp;</entry>
  1814. <entry>integer</entry>
  1815. </row>
  1816. <row><entry spanname="descr">Sets the RDS Programme Type field for transmission.
  1817. This encodes up to 31 pre-defined programme types.</entry>
  1818. </row>
  1819. <row>
  1820. <entry spanname="id"><constant>V4L2_CID_RDS_TX_PS_NAME</constant>&nbsp;</entry>
  1821. <entry>string</entry>
  1822. </row>
  1823. <row><entry spanname="descr">Sets the Programme Service name (PS_NAME) for transmission.
  1824. It is intended for static display on a receiver. It is the primary aid to listeners in programme service
  1825. identification and selection. In Annex E of <xref linkend="en50067" />, the RDS specification,
  1826. there is a full description of the correct character encoding for Programme Service name strings.
  1827. Also from RDS specification, PS is usually a single eight character text. However, it is also possible
  1828. to find receivers which can scroll strings sized as 8 x N characters. So, this control must be configured
  1829. with steps of 8 characters. The result is it must always contain a string with size multiple of 8.</entry>
  1830. </row>
  1831. <row>
  1832. <entry spanname="id"><constant>V4L2_CID_RDS_TX_RADIO_TEXT</constant>&nbsp;</entry>
  1833. <entry>string</entry>
  1834. </row>
  1835. <row><entry spanname="descr">Sets the Radio Text info for transmission. It is a textual description of
  1836. what is being broadcasted. RDS Radio Text can be applied when broadcaster wishes to transmit longer PS names,
  1837. programme-related information or any other text. In these cases, RadioText should be used in addition to
  1838. <constant>V4L2_CID_RDS_TX_PS_NAME</constant>. The encoding for Radio Text strings is also fully described
  1839. in Annex E of <xref linkend="en50067" />. The length of Radio Text strings depends on which RDS Block is being
  1840. used to transmit it, either 32 (2A block) or 64 (2B block). However, it is also possible
  1841. to find receivers which can scroll strings sized as 32 x N or 64 x N characters. So, this control must be configured
  1842. with steps of 32 or 64 characters. The result is it must always contain a string with size multiple of 32 or 64. </entry>
  1843. </row>
  1844. <row>
  1845. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_ENABLED</constant>&nbsp;</entry>
  1846. <entry>boolean</entry>
  1847. </row>
  1848. <row><entry spanname="descr">Enables or disables the audio deviation limiter feature.
  1849. The limiter is useful when trying to maximize the audio volume, minimize receiver-generated
  1850. distortion and prevent overmodulation.
  1851. </entry>
  1852. </row>
  1853. <row>
  1854. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_RELEASE_TIME</constant>&nbsp;</entry>
  1855. <entry>integer</entry>
  1856. </row>
  1857. <row><entry spanname="descr">Sets the audio deviation limiter feature release time.
  1858. Unit is in useconds. Step and range are driver-specific.</entry>
  1859. </row>
  1860. <row>
  1861. <entry spanname="id"><constant>V4L2_CID_AUDIO_LIMITER_DEVIATION</constant>&nbsp;</entry>
  1862. <entry>integer</entry>
  1863. </row>
  1864. <row><entry spanname="descr">Configures audio frequency deviation level in Hz.
  1865. The range and step are driver-specific.</entry>
  1866. </row>
  1867. <row>
  1868. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ENABLED</constant>&nbsp;</entry>
  1869. <entry>boolean</entry>
  1870. </row>
  1871. <row><entry spanname="descr">Enables or disables the audio compression feature.
  1872. This feature amplifies signals below the threshold by a fixed gain and compresses audio
  1873. signals above the threshold by the ratio of Threshold/(Gain + Threshold).</entry>
  1874. </row>
  1875. <row>
  1876. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_GAIN</constant>&nbsp;</entry>
  1877. <entry>integer</entry>
  1878. </row>
  1879. <row><entry spanname="descr">Sets the gain for audio compression feature. It is
  1880. a dB value. The range and step are driver-specific.</entry>
  1881. </row>
  1882. <row>
  1883. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_THRESHOLD</constant>&nbsp;</entry>
  1884. <entry>integer</entry>
  1885. </row>
  1886. <row><entry spanname="descr">Sets the threshold level for audio compression freature.
  1887. It is a dB value. The range and step are driver-specific.</entry>
  1888. </row>
  1889. <row>
  1890. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_ATTACK_TIME</constant>&nbsp;</entry>
  1891. <entry>integer</entry>
  1892. </row>
  1893. <row><entry spanname="descr">Sets the attack time for audio compression feature.
  1894. It is a useconds value. The range and step are driver-specific.</entry>
  1895. </row>
  1896. <row>
  1897. <entry spanname="id"><constant>V4L2_CID_AUDIO_COMPRESSION_RELEASE_TIME</constant>&nbsp;</entry>
  1898. <entry>integer</entry>
  1899. </row>
  1900. <row><entry spanname="descr">Sets the release time for audio compression feature.
  1901. It is a useconds value. The range and step are driver-specific.</entry>
  1902. </row>
  1903. <row>
  1904. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_ENABLED</constant>&nbsp;</entry>
  1905. <entry>boolean</entry>
  1906. </row>
  1907. <row><entry spanname="descr">Enables or disables the pilot tone generation feature.</entry>
  1908. </row>
  1909. <row>
  1910. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_DEVIATION</constant>&nbsp;</entry>
  1911. <entry>integer</entry>
  1912. </row>
  1913. <row><entry spanname="descr">Configures pilot tone frequency deviation level. Unit is
  1914. in Hz. The range and step are driver-specific.</entry>
  1915. </row>
  1916. <row>
  1917. <entry spanname="id"><constant>V4L2_CID_PILOT_TONE_FREQUENCY</constant>&nbsp;</entry>
  1918. <entry>integer</entry>
  1919. </row>
  1920. <row><entry spanname="descr">Configures pilot tone frequency value. Unit is
  1921. in Hz. The range and step are driver-specific.</entry>
  1922. </row>
  1923. <row>
  1924. <entry spanname="id"><constant>V4L2_CID_TUNE_PREEMPHASIS</constant>&nbsp;</entry>
  1925. <entry>integer</entry>
  1926. </row>
  1927. <row id="v4l2-preemphasis"><entry spanname="descr">Configures the pre-emphasis value for broadcasting.
  1928. A pre-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.
  1929. Depending on the region, a time constant of either 50 or 75 useconds is used. The enum&nbsp;v4l2_preemphasis
  1930. defines possible values for pre-emphasis. Here they are:</entry>
  1931. </row><row>
  1932. <entrytbl spanname="descr" cols="2">
  1933. <tbody valign="top">
  1934. <row>
  1935. <entry><constant>V4L2_PREEMPHASIS_DISABLED</constant>&nbsp;</entry>
  1936. <entry>No pre-emphasis is applied.</entry>
  1937. </row>
  1938. <row>
  1939. <entry><constant>V4L2_PREEMPHASIS_50_uS</constant>&nbsp;</entry>
  1940. <entry>A pre-emphasis of 50 uS is used.</entry>
  1941. </row>
  1942. <row>
  1943. <entry><constant>V4L2_PREEMPHASIS_75_uS</constant>&nbsp;</entry>
  1944. <entry>A pre-emphasis of 75 uS is used.</entry>
  1945. </row>
  1946. </tbody>
  1947. </entrytbl>
  1948. </row>
  1949. <row>
  1950. <entry spanname="id"><constant>V4L2_CID_TUNE_POWER_LEVEL</constant>&nbsp;</entry>
  1951. <entry>integer</entry>
  1952. </row>
  1953. <row><entry spanname="descr">Sets the output power level for signal transmission.
  1954. Unit is in dBuV. Range and step are driver-specific.</entry>
  1955. </row>
  1956. <row>
  1957. <entry spanname="id"><constant>V4L2_CID_TUNE_ANTENNA_CAPACITOR</constant>&nbsp;</entry>
  1958. <entry>integer</entry>
  1959. </row>
  1960. <row><entry spanname="descr">This selects the value of antenna tuning capacitor
  1961. manually or automatically if set to zero. Unit, range and step are driver-specific.</entry>
  1962. </row>
  1963. <row><entry></entry></row>
  1964. </tbody>
  1965. </tgroup>
  1966. </table>
  1967. <para>For more details about RDS specification, refer to
  1968. <xref linkend="en50067" /> document, from CENELEC.</para>
  1969. </section>
  1970. </section>
  1971. <!--
  1972. Local Variables:
  1973. mode: sgml
  1974. sgml-parent-document: "common.sgml"
  1975. indent-tabs-mode: nil
  1976. End:
  1977. -->