1 <refentry id="vidioc-s-hw-freq-seek">
3 <refentrytitle>ioctl VIDIOC_S_HW_FREQ_SEEK</refentrytitle>
8 <refname>VIDIOC_S_HW_FREQ_SEEK</refname>
9 <refpurpose>Perform a hardware frequency seek</refpurpose>
15 <funcdef>int <function>ioctl</function></funcdef>
16 <paramdef>int <parameter>fd</parameter></paramdef>
17 <paramdef>int <parameter>request</parameter></paramdef>
18 <paramdef>struct v4l2_hw_freq_seek
19 *<parameter>argp</parameter></paramdef>
25 <title>Arguments</title>
29 <term><parameter>fd</parameter></term>
35 <term><parameter>request</parameter></term>
37 <para>VIDIOC_S_HW_FREQ_SEEK</para>
41 <term><parameter>argp</parameter></term>
50 <title>Description</title>
52 <para>Start a hardware frequency seek from the current frequency.
53 To do this applications initialize the <structfield>tuner</structfield>,
54 <structfield>type</structfield>, <structfield>seek_upward</structfield> and
55 <structfield>wrap_around</structfield> fields, and zero out the
56 <structfield>reserved</structfield> array of a &v4l2-hw-freq-seek; and
57 call the <constant>VIDIOC_S_HW_FREQ_SEEK</constant> ioctl with a pointer
58 to this structure.</para>
60 <para>This ioctl is supported if the <constant>V4L2_CAP_HW_FREQ_SEEK</constant> capability is set.</para>
62 <table pgwide="1" frame="none" id="v4l2-hw-freq-seek">
63 <title>struct <structname>v4l2_hw_freq_seek</structname></title>
69 <entry><structfield>tuner</structfield></entry>
70 <entry>The tuner index number. This is the
71 same value as in the &v4l2-input; <structfield>tuner</structfield>
72 field and the &v4l2-tuner; <structfield>index</structfield> field.</entry>
75 <entry>&v4l2-tuner-type;</entry>
76 <entry><structfield>type</structfield></entry>
77 <entry>The tuner type. This is the same value as in the
78 &v4l2-tuner; <structfield>type</structfield> field.</entry>
82 <entry><structfield>seek_upward</structfield></entry>
83 <entry>If non-zero, seek upward from the current frequency, else seek downward.</entry>
87 <entry><structfield>wrap_around</structfield></entry>
88 <entry>If non-zero, wrap around when at the end of the frequency range, else stop seeking.</entry>
92 <entry><structfield>reserved</structfield>[8]</entry>
93 <entry>Reserved for future extensions. Drivers and
94 applications must set the array to zero.</entry>
106 <term><errorcode>EINVAL</errorcode></term>
108 <para>The <structfield>tuner</structfield> index is out of
109 bounds or the value in the <structfield>type</structfield> field is
114 <term><errorcode>EAGAIN</errorcode></term>
116 <para>The ioctl timed-out. Try again.</para>
126 sgml-parent-document: "v4l2.sgml"
127 indent-tabs-mode: nil