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>struct v4l2_dv_preset *<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_PRESET, VIDIOC_S_DV_PRESET</para>
41 <term><parameter>argp</parameter></term>
50 <title>Description</title>
51 <para>To query and select the current DV preset, applications
52 use the <constant>VIDIOC_G_DV_PRESET</constant> and <constant>VIDIOC_S_DV_PRESET</constant>
53 ioctls which take a pointer to a &v4l2-dv-preset; type as argument.
54 Applications must zero the reserved array in &v4l2-dv-preset;.
55 <constant>VIDIOC_G_DV_PRESET</constant> returns a dv preset in the field
56 <structfield>preset</structfield> of &v4l2-dv-preset;.</para>
58 <para><constant>VIDIOC_S_DV_PRESET</constant> accepts a pointer to a &v4l2-dv-preset;
59 that has the preset value to be set. Applications must zero the reserved array in &v4l2-dv-preset;.
60 If the preset is not supported, it returns an &EINVAL; </para>
68 <term><errorcode>EINVAL</errorcode></term>
70 <para>This ioctl is not supported, or the
71 <constant>VIDIOC_S_DV_PRESET</constant>,<constant>VIDIOC_S_DV_PRESET</constant> parameter was unsuitable.</para>
75 <term><errorcode>EBUSY</errorcode></term>
77 <para>The device is busy and therefore can not change the preset.</para>
82 <table pgwide="1" frame="none" id="v4l2-dv-preset">
83 <title>struct <structname>v4l2_dv_preset</structname></title>
89 <entry><structfield>preset</structfield></entry>
90 <entry>Preset value to represent the digital video timings</entry>
94 <entry><structfield>reserved[4]</structfield></entry>
95 <entry>Reserved fields for future use</entry>
107 sgml-parent-document: "v4l2.sgml"
108 indent-tabs-mode: nil