vidioc-g-dv-preset.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <refentry id="vidioc-g-dv-preset">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_G_DV_PRESET</refname>
  8. <refname>VIDIOC_S_DV_PRESET</refname>
  9. <refpurpose>Query or select the DV preset of the current input or output</refpurpose>
  10. </refnamediv>
  11. <refsynopsisdiv>
  12. <funcsynopsis>
  13. <funcprototype>
  14. <funcdef>int <function>ioctl</function></funcdef>
  15. <paramdef>int <parameter>fd</parameter></paramdef>
  16. <paramdef>int <parameter>request</parameter></paramdef>
  17. <paramdef>struct v4l2_dv_preset *<parameter>argp</parameter></paramdef>
  18. </funcprototype>
  19. </funcsynopsis>
  20. </refsynopsisdiv>
  21. <refsect1>
  22. <title>Arguments</title>
  23. <variablelist>
  24. <varlistentry>
  25. <term><parameter>fd</parameter></term>
  26. <listitem>
  27. <para>&fd;</para>
  28. </listitem>
  29. </varlistentry>
  30. <varlistentry>
  31. <term><parameter>request</parameter></term>
  32. <listitem>
  33. <para>VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET</para>
  34. </listitem>
  35. </varlistentry>
  36. <varlistentry>
  37. <term><parameter>argp</parameter></term>
  38. <listitem>
  39. <para></para>
  40. </listitem>
  41. </varlistentry>
  42. </variablelist>
  43. </refsect1>
  44. <refsect1>
  45. <title>Description</title>
  46. <para>These ioctls are <emphasis role="bold">deprecated</emphasis>.
  47. New drivers and applications should use &VIDIOC-G-DV-TIMINGS; and &VIDIOC-S-DV-TIMINGS;
  48. instead.
  49. </para>
  50. <para>To query and select the current DV preset, applications
  51. use the <constant>VIDIOC_G_DV_PRESET</constant> and <constant>VIDIOC_S_DV_PRESET</constant>
  52. ioctls which take a pointer to a &v4l2-dv-preset; type as argument.
  53. Applications must zero the reserved array in &v4l2-dv-preset;.
  54. <constant>VIDIOC_G_DV_PRESET</constant> returns a dv preset in the field
  55. <structfield>preset</structfield> of &v4l2-dv-preset;.</para>
  56. <para><constant>VIDIOC_S_DV_PRESET</constant> accepts a pointer to a &v4l2-dv-preset;
  57. that has the preset value to be set. Applications must zero the reserved array in &v4l2-dv-preset;.
  58. If the preset is not supported, it returns an &EINVAL; </para>
  59. </refsect1>
  60. <refsect1>
  61. &return-value;
  62. <variablelist>
  63. <varlistentry>
  64. <term><errorcode>EINVAL</errorcode></term>
  65. <listitem>
  66. <para>This ioctl is not supported, or the
  67. <constant>VIDIOC_S_DV_PRESET</constant>,<constant>VIDIOC_S_DV_PRESET</constant> parameter was unsuitable.</para>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry>
  71. <term><errorcode>EBUSY</errorcode></term>
  72. <listitem>
  73. <para>The device is busy and therefore can not change the preset.</para>
  74. </listitem>
  75. </varlistentry>
  76. </variablelist>
  77. <table pgwide="1" frame="none" id="v4l2-dv-preset">
  78. <title>struct <structname>v4l2_dv_preset</structname></title>
  79. <tgroup cols="3">
  80. &cs-str;
  81. <tbody valign="top">
  82. <row>
  83. <entry>__u32</entry>
  84. <entry><structfield>preset</structfield></entry>
  85. <entry>Preset value to represent the digital video timings</entry>
  86. </row>
  87. <row>
  88. <entry>__u32</entry>
  89. <entry><structfield>reserved[4]</structfield></entry>
  90. <entry>Reserved fields for future use</entry>
  91. </row>
  92. </tbody>
  93. </tgroup>
  94. </table>
  95. </refsect1>
  96. <refsect1>
  97. &return-value;
  98. </refsect1>
  99. </refentry>