vidioc-enum-dv-timings.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <refentry id="vidioc-enum-dv-timings">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_ENUM_DV_TIMINGS, VIDIOC_SUBDEV_ENUM_DV_TIMINGS</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_ENUM_DV_TIMINGS</refname>
  8. <refname>VIDIOC_SUBDEV_ENUM_DV_TIMINGS</refname>
  9. <refpurpose>Enumerate supported Digital Video timings</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_enum_dv_timings *<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_ENUM_DV_TIMINGS, VIDIOC_SUBDEV_ENUM_DV_TIMINGS</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. <note>
  47. <title>Experimental</title>
  48. <para>This is an <link linkend="experimental"> experimental </link>
  49. interface and may change in the future.</para>
  50. </note>
  51. <para>While some DV receivers or transmitters support a wide range of timings, others
  52. support only a limited number of timings. With this ioctl applications can enumerate a list
  53. of known supported timings. Call &VIDIOC-DV-TIMINGS-CAP; to check if it also supports other
  54. standards or even custom timings that are not in this list.</para>
  55. <para>To query the available timings, applications initialize the
  56. <structfield>index</structfield> field and zero the reserved array of &v4l2-enum-dv-timings;
  57. and call the <constant>VIDIOC_ENUM_DV_TIMINGS</constant> ioctl on a video node with a
  58. pointer to this structure. Drivers fill the rest of the structure or return an
  59. &EINVAL; when the index is out of bounds. To enumerate all supported DV timings,
  60. applications shall begin at index zero, incrementing by one until the
  61. driver returns <errorcode>EINVAL</errorcode>. Note that drivers may enumerate a
  62. different set of DV timings after switching the video input or
  63. output.</para>
  64. <para>When implemented by the driver DV timings of subdevices can be queried
  65. by calling the <constant>VIDIOC_SUBDEV_ENUM_DV_TIMINGS</constant> ioctl directly
  66. on a subdevice node. The DV timings are specific to inputs (for DV receivers) or
  67. outputs (for DV transmitters), applications must specify the desired pad number
  68. in the &v4l2-enum-dv-timings; <structfield>pad</structfield> field. Attempts to
  69. enumerate timings on a pad that doesn't support them will return an &EINVAL;.</para>
  70. <table pgwide="1" frame="none" id="v4l2-enum-dv-timings">
  71. <title>struct <structname>v4l2_enum_dv_timings</structname></title>
  72. <tgroup cols="3">
  73. &cs-str;
  74. <tbody valign="top">
  75. <row>
  76. <entry>__u32</entry>
  77. <entry><structfield>index</structfield></entry>
  78. <entry>Number of the DV timings, set by the
  79. application.</entry>
  80. </row>
  81. <row>
  82. <entry>__u32</entry>
  83. <entry><structfield>pad</structfield></entry>
  84. <entry>Pad number as reported by the media controller API. This field
  85. is only used when operating on a subdevice node. When operating on a
  86. video node applications must set this field to zero.</entry>
  87. </row>
  88. <row>
  89. <entry>__u32</entry>
  90. <entry><structfield>reserved</structfield>[2]</entry>
  91. <entry>Reserved for future extensions. Drivers and applications must
  92. set the array to zero.</entry>
  93. </row>
  94. <row>
  95. <entry>&v4l2-dv-timings;</entry>
  96. <entry><structfield>timings</structfield></entry>
  97. <entry>The timings.</entry>
  98. </row>
  99. </tbody>
  100. </tgroup>
  101. </table>
  102. </refsect1>
  103. <refsect1>
  104. &return-value;
  105. <variablelist>
  106. <varlistentry>
  107. <term><errorcode>EINVAL</errorcode></term>
  108. <listitem>
  109. <para>The &v4l2-enum-dv-timings; <structfield>index</structfield>
  110. is out of bounds or the <structfield>pad</structfield> number is invalid.</para>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry>
  114. <term><errorcode>ENODATA</errorcode></term>
  115. <listitem>
  116. <para>Digital video presets are not supported for this input or output.</para>
  117. </listitem>
  118. </varlistentry>
  119. </variablelist>
  120. </refsect1>
  121. </refentry>