1 <refentry id="vidioc-g-dv-timings">
3 <refentrytitle>ioctl VIDIOC_G_DV_TIMINGS, VIDIOC_S_DV_TIMINGS</refentrytitle>
8 <refname>VIDIOC_G_DV_TIMINGS</refname>
9 <refname>VIDIOC_S_DV_TIMINGS</refname>
10 <refpurpose>Get or set custom DV timings for input or output</refpurpose>
16 <funcdef>int <function>ioctl</function></funcdef>
17 <paramdef>int <parameter>fd</parameter></paramdef>
18 <paramdef>int <parameter>request</parameter></paramdef>
19 <paramdef>&v4l2-dv-timings;
20 *<parameter>argp</parameter></paramdef>
26 <title>Arguments</title>
30 <term><parameter>fd</parameter></term>
36 <term><parameter>request</parameter></term>
38 <para>VIDIOC_G_DV_TIMINGS, VIDIOC_S_DV_TIMINGS</para>
42 <term><parameter>argp</parameter></term>
51 <title>Description</title>
52 <para>To set custom DV timings for the input or output, applications use the
53 <constant>VIDIOC_S_DV_TIMINGS</constant> ioctl and to get the current custom timings,
54 applications use the <constant>VIDIOC_G_DV_TIMINGS</constant> ioctl. The detailed timing
55 information is filled in using the structure &v4l2-dv-timings;. These ioctls take
56 a pointer to the &v4l2-dv-timings; structure as argument. If the ioctl is not supported
57 or the timing values are not correct, the driver returns &EINVAL;.</para>
65 <term><errorcode>EINVAL</errorcode></term>
67 <para>This ioctl is not supported, or the
68 <constant>VIDIOC_S_DV_TIMINGS</constant> parameter was unsuitable.</para>
72 <term><errorcode>EBUSY</errorcode></term>
74 <para>The device is busy and therefore can not change the timings.</para>
79 <table pgwide="1" frame="none" id="v4l2-bt-timings">
80 <title>struct <structname>v4l2_bt_timings</structname></title>
86 <entry><structfield>width</structfield></entry>
87 <entry>Width of the active video in pixels</entry>
91 <entry><structfield>height</structfield></entry>
92 <entry>Height of the active video in lines</entry>
96 <entry><structfield>interlaced</structfield></entry>
97 <entry>Progressive (0) or interlaced (1)</entry>
101 <entry><structfield>polarities</structfield></entry>
102 <entry>This is a bit mask that defines polarities of sync signals.
103 bit 0 (V4L2_DV_VSYNC_POS_POL) is for vertical sync polarity and bit 1 (V4L2_DV_HSYNC_POS_POL) is for horizontal sync polarity. If the bit is set
104 (1) it is positive polarity and if is cleared (0), it is negative polarity.</entry>
108 <entry><structfield>pixelclock</structfield></entry>
109 <entry>Pixel clock in Hz. Ex. 74.25MHz->74250000</entry>
113 <entry><structfield>hfrontporch</structfield></entry>
114 <entry>Horizontal front porch in pixels</entry>
118 <entry><structfield>hsync</structfield></entry>
119 <entry>Horizontal sync length in pixels</entry>
123 <entry><structfield>hbackporch</structfield></entry>
124 <entry>Horizontal back porch in pixels</entry>
128 <entry><structfield>vfrontporch</structfield></entry>
129 <entry>Vertical front porch in lines</entry>
133 <entry><structfield>vsync</structfield></entry>
134 <entry>Vertical sync length in lines</entry>
138 <entry><structfield>vbackporch</structfield></entry>
139 <entry>Vertical back porch in lines</entry>
143 <entry><structfield>il_vfrontporch</structfield></entry>
144 <entry>Vertical front porch in lines for bottom field of interlaced field formats</entry>
148 <entry><structfield>il_vsync</structfield></entry>
149 <entry>Vertical sync length in lines for bottom field of interlaced field formats</entry>
153 <entry><structfield>il_vbackporch</structfield></entry>
154 <entry>Vertical back porch in lines for bottom field of interlaced field formats</entry>
160 <table pgwide="1" frame="none" id="v4l2-dv-timings">
161 <title>struct <structname>v4l2_dv_timings</structname></title>
167 <entry><structfield>type</structfield></entry>
169 <entry>Type of DV timings as listed in <xref linkend="dv-timing-types"/>.</entry>
173 <entry><structfield></structfield></entry>
178 <entry>&v4l2-bt-timings;</entry>
179 <entry><structfield>bt</structfield></entry>
180 <entry>Timings defined by BT.656/1120 specifications</entry>
185 <entry><structfield>reserved</structfield>[32]</entry>
192 <table pgwide="1" frame="none" id="dv-timing-types">
193 <title>DV Timing types</title>
198 <entry>Timing type</entry>
200 <entry>Description</entry>
208 <entry>V4L2_DV_BT_656_1120</entry>
210 <entry>BT.656/1120 timings</entry>
221 sgml-parent-document: "v4l2.sgml"
222 indent-tabs-mode: nil