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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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>,
  49. <structfield>spacing</structfield> and
  50. <structfield>wrap_around</structfield> fields, and zero out the
  51. <structfield>reserved</structfield> array of a &v4l2-hw-freq-seek; and
  52. call the <constant>VIDIOC_S_HW_FREQ_SEEK</constant> ioctl with a pointer
  53. to this structure.</para>
  54. <para>This ioctl is supported if the <constant>V4L2_CAP_HW_FREQ_SEEK</constant> capability is set.</para>
  55. <table pgwide="1" frame="none" id="v4l2-hw-freq-seek">
  56. <title>struct <structname>v4l2_hw_freq_seek</structname></title>
  57. <tgroup cols="3">
  58. &cs-str;
  59. <tbody valign="top">
  60. <row>
  61. <entry>__u32</entry>
  62. <entry><structfield>tuner</structfield></entry>
  63. <entry>The tuner index number. This is the
  64. same value as in the &v4l2-input; <structfield>tuner</structfield>
  65. field and the &v4l2-tuner; <structfield>index</structfield> field.</entry>
  66. </row>
  67. <row>
  68. <entry>&v4l2-tuner-type;</entry>
  69. <entry><structfield>type</structfield></entry>
  70. <entry>The tuner type. This is the same value as in the
  71. &v4l2-tuner; <structfield>type</structfield> field.</entry>
  72. </row>
  73. <row>
  74. <entry>__u32</entry>
  75. <entry><structfield>seek_upward</structfield></entry>
  76. <entry>If non-zero, seek upward from the current frequency, else seek downward.</entry>
  77. </row>
  78. <row>
  79. <entry>__u32</entry>
  80. <entry><structfield>wrap_around</structfield></entry>
  81. <entry>If non-zero, wrap around when at the end of the frequency range, else stop seeking.</entry>
  82. </row>
  83. <row>
  84. <entry>__u32</entry>
  85. <entry><structfield>spacing</structfield></entry>
  86. <entry>If non-zero, defines the hardware seek resolution in Hz. The driver selects the nearest value that is supported by the device. If spacing is zero a reasonable default value is used.</entry>
  87. </row>
  88. <row>
  89. <entry>__u32</entry>
  90. <entry><structfield>reserved</structfield>[7]</entry>
  91. <entry>Reserved for future extensions. Drivers and
  92. applications must set the array to zero.</entry>
  93. </row>
  94. </tbody>
  95. </tgroup>
  96. </table>
  97. </refsect1>
  98. <refsect1>
  99. &return-value;
  100. <variablelist>
  101. <varlistentry>
  102. <term><errorcode>EINVAL</errorcode></term>
  103. <listitem>
  104. <para>The <structfield>tuner</structfield> index is out of
  105. bounds or the value in the <structfield>type</structfield> field is
  106. wrong.</para>
  107. </listitem>
  108. </varlistentry>
  109. <varlistentry>
  110. <term><errorcode>EAGAIN</errorcode></term>
  111. <listitem>
  112. <para>The ioctl timed-out. Try again.</para>
  113. </listitem>
  114. </varlistentry>
  115. </variablelist>
  116. </refsect1>
  117. </refentry>
  118. <!--
  119. Local Variables:
  120. mode: sgml
  121. sgml-parent-document: "v4l2.sgml"
  122. indent-tabs-mode: nil
  123. End:
  124. -->