vidioc-s-hw-freq-seek.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <refentry id="vidioc-s-hw-freq-seek">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_S_HW_FREQ_SEEK</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_S_HW_FREQ_SEEK</refname>
  8. <refpurpose>Perform a hardware frequency seek</refpurpose>
  9. </refnamediv>
  10. <refsynopsisdiv>
  11. <funcsynopsis>
  12. <funcprototype>
  13. <funcdef>int <function>ioctl</function></funcdef>
  14. <paramdef>int <parameter>fd</parameter></paramdef>
  15. <paramdef>int <parameter>request</parameter></paramdef>
  16. <paramdef>struct v4l2_hw_freq_seek
  17. *<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_S_HW_FREQ_SEEK</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>Start a hardware frequency seek from the current frequency.
  47. To do this applications initialize the <structfield>tuner</structfield>,
  48. <structfield>type</structfield>, <structfield>seek_upward</structfield> and
  49. <structfield>wrap_around</structfield> fields, and zero out the
  50. <structfield>reserved</structfield> array of a &v4l2-hw-freq-seek; and
  51. call the <constant>VIDIOC_S_HW_FREQ_SEEK</constant> ioctl with a pointer
  52. to this structure.</para>
  53. <para>This ioctl is supported if the <constant>V4L2_CAP_HW_FREQ_SEEK</constant> capability is set.</para>
  54. <table pgwide="1" frame="none" id="v4l2-hw-freq-seek">
  55. <title>struct <structname>v4l2_hw_freq_seek</structname></title>
  56. <tgroup cols="3">
  57. &cs-str;
  58. <tbody valign="top">
  59. <row>
  60. <entry>__u32</entry>
  61. <entry><structfield>tuner</structfield></entry>
  62. <entry>The tuner index number. This is the
  63. same value as in the &v4l2-input; <structfield>tuner</structfield>
  64. field and the &v4l2-tuner; <structfield>index</structfield> field.</entry>
  65. </row>
  66. <row>
  67. <entry>&v4l2-tuner-type;</entry>
  68. <entry><structfield>type</structfield></entry>
  69. <entry>The tuner type. This is the same value as in the
  70. &v4l2-tuner; <structfield>type</structfield> field.</entry>
  71. </row>
  72. <row>
  73. <entry>__u32</entry>
  74. <entry><structfield>seek_upward</structfield></entry>
  75. <entry>If non-zero, seek upward from the current frequency, else seek downward.</entry>
  76. </row>
  77. <row>
  78. <entry>__u32</entry>
  79. <entry><structfield>wrap_around</structfield></entry>
  80. <entry>If non-zero, wrap around when at the end of the frequency range, else stop seeking.</entry>
  81. </row>
  82. <row>
  83. <entry>__u32</entry>
  84. <entry><structfield>reserved</structfield>[8]</entry>
  85. <entry>Reserved for future extensions. Drivers and
  86. applications must set the array to zero.</entry>
  87. </row>
  88. </tbody>
  89. </tgroup>
  90. </table>
  91. </refsect1>
  92. <refsect1>
  93. &return-value;
  94. <variablelist>
  95. <varlistentry>
  96. <term><errorcode>EINVAL</errorcode></term>
  97. <listitem>
  98. <para>The <structfield>tuner</structfield> index is out of
  99. bounds or the value in the <structfield>type</structfield> field is
  100. wrong.</para>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry>
  104. <term><errorcode>EAGAIN</errorcode></term>
  105. <listitem>
  106. <para>The ioctl timed-out. Try again.</para>
  107. </listitem>
  108. </varlistentry>
  109. </variablelist>
  110. </refsect1>
  111. </refentry>
  112. <!--
  113. Local Variables:
  114. mode: sgml
  115. sgml-parent-document: "v4l2.sgml"
  116. indent-tabs-mode: nil
  117. End:
  118. -->