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>struct v4l2_dv_timings *<parameter>argp</parameter></paramdef>
25 <title>Arguments</title>
29 <term><parameter>fd</parameter></term>
35 <term><parameter>request</parameter></term>
37 <para>VIDIOC_G_DV_TIMINGS, VIDIOC_S_DV_TIMINGS</para>
41 <term><parameter>argp</parameter></term>
50 <title>Description</title>
51 <para>To set custom DV timings for the input or output, applications use the
52 <constant>VIDIOC_S_DV_TIMINGS</constant> ioctl and to get the current custom timings,
53 applications use the <constant>VIDIOC_G_DV_TIMINGS</constant> ioctl. The detailed timing
54 information is filled in using the structure &v4l2-dv-timings;. These ioctls take
55 a pointer to the &v4l2-dv-timings; structure as argument. If the ioctl is not supported
56 or the timing values are not correct, the driver returns &EINVAL;.</para>
64 <term><errorcode>EINVAL</errorcode></term>
66 <para>This ioctl is not supported, or the
67 <constant>VIDIOC_S_DV_TIMINGS</constant> parameter was unsuitable.</para>
71 <term><errorcode>EBUSY</errorcode></term>
73 <para>The device is busy and therefore can not change the timings.</para>
78 <table pgwide="1" frame="none" id="v4l2-bt-timings">
79 <title>struct <structname>v4l2_bt_timings</structname></title>
85 <entry><structfield>width</structfield></entry>
86 <entry>Width of the active video in pixels</entry>
90 <entry><structfield>height</structfield></entry>
91 <entry>Height of the active video in lines</entry>
95 <entry><structfield>interlaced</structfield></entry>
96 <entry>Progressive (0) or interlaced (1)</entry>
100 <entry><structfield>polarities</structfield></entry>
101 <entry>This is a bit mask that defines polarities of sync signals.
102 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
103 (1) it is positive polarity and if is cleared (0), it is negative polarity.</entry>
107 <entry><structfield>pixelclock</structfield></entry>
108 <entry>Pixel clock in Hz. Ex. 74.25MHz->74250000</entry>
112 <entry><structfield>hfrontporch</structfield></entry>
113 <entry>Horizontal front porch in pixels</entry>
117 <entry><structfield>hsync</structfield></entry>
118 <entry>Horizontal sync length in pixels</entry>
122 <entry><structfield>hbackporch</structfield></entry>
123 <entry>Horizontal back porch in pixels</entry>
127 <entry><structfield>vfrontporch</structfield></entry>
128 <entry>Vertical front porch in lines</entry>
132 <entry><structfield>vsync</structfield></entry>
133 <entry>Vertical sync length in lines</entry>
137 <entry><structfield>vbackporch</structfield></entry>
138 <entry>Vertical back porch in lines</entry>
142 <entry><structfield>il_vfrontporch</structfield></entry>
143 <entry>Vertical front porch in lines for bottom field of interlaced field formats</entry>
147 <entry><structfield>il_vsync</structfield></entry>
148 <entry>Vertical sync length in lines for bottom field of interlaced field formats</entry>
152 <entry><structfield>il_vbackporch</structfield></entry>
153 <entry>Vertical back porch in lines for bottom field of interlaced field formats</entry>
159 <table pgwide="1" frame="none" id="v4l2-dv-timings">
160 <title>struct <structname>v4l2_dv_timings</structname></title>
166 <entry><structfield>type</structfield></entry>
168 <entry>Type of DV timings as listed in <xref linkend="dv-timing-types"/>.</entry>
172 <entry><structfield></structfield></entry>
177 <entry>&v4l2-bt-timings;</entry>
178 <entry><structfield>bt</structfield></entry>
179 <entry>Timings defined by BT.656/1120 specifications</entry>
184 <entry><structfield>reserved</structfield>[32]</entry>
191 <table pgwide="1" frame="none" id="dv-timing-types">
192 <title>DV Timing types</title>
197 <entry>Timing type</entry>
199 <entry>Description</entry>
207 <entry>V4L2_DV_BT_656_1120</entry>
209 <entry>BT.656/1120 timings</entry>
220 sgml-parent-document: "v4l2.sgml"
221 indent-tabs-mode: nil