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