1 <refentry id="vidioc-g-dv-preset">
3 <refentrytitle>ioctl VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET</refentrytitle>
8 <refname>VIDIOC_G_DV_PRESET</refname>
9 <refname>VIDIOC_S_DV_PRESET</refname>
10 <refpurpose>Query or select the DV preset of the current 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-preset;
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_PRESET, VIDIOC_S_DV_PRESET</para>
42 <term><parameter>argp</parameter></term>
51 <title>Description</title>
52 <para>To query and select the current DV preset, applications
53 use the <constant>VIDIOC_G_DV_PRESET</constant> and <constant>VIDIOC_S_DV_PRESET</constant>
54 ioctls which take a pointer to a &v4l2-dv-preset; type as argument.
55 Applications must zero the reserved array in &v4l2-dv-preset;.
56 <constant>VIDIOC_G_DV_PRESET</constant> returns a dv preset in the field
57 <structfield>preset</structfield> of &v4l2-dv-preset;.</para>
59 <para><constant>VIDIOC_S_DV_PRESET</constant> accepts a pointer to a &v4l2-dv-preset;
60 that has the preset value to be set. Applications must zero the reserved array in &v4l2-dv-preset;.
61 If the preset is not supported, it returns an &EINVAL; </para>
69 <term><errorcode>EINVAL</errorcode></term>
71 <para>This ioctl is not supported, or the
72 <constant>VIDIOC_S_DV_PRESET</constant>,<constant>VIDIOC_S_DV_PRESET</constant> parameter was unsuitable.</para>
76 <term><errorcode>EBUSY</errorcode></term>
78 <para>The device is busy and therefore can not change the preset.</para>
83 <table pgwide="1" frame="none" id="v4l2-dv-preset">
84 <title>struct <structname>v4l2_dv_preset</structname></title>
90 <entry><structfield>preset</structfield></entry>
91 <entry>Preset value to represent the digital video timings</entry>
95 <entry><structfield>reserved[4]</structfield></entry>
96 <entry>Reserved fields for future use</entry>
108 sgml-parent-document: "v4l2.sgml"
109 indent-tabs-mode: nil