From ade8e6ad74cfe5e1f764d49807ddf09a3138ca0d Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sun, 18 Jan 2009 14:23:26 +0100 Subject: v4l2-spec: document VIDIOC_S_HW_FREQ_SEEK From: Hans Verkuil Priority: normal Signed-off-by: Hans Verkuil --- v4l2-spec/Makefile | 3 + v4l2-spec/compat.sgml | 10 +++ v4l2-spec/v4l2.sgml | 1 + v4l2-spec/vidioc-querycap.sgml | 6 ++ v4l2-spec/vidioc-s-hw-freq-seek.sgml | 138 +++++++++++++++++++++++++++++++++++ 5 files changed, 158 insertions(+) create mode 100644 v4l2-spec/vidioc-s-hw-freq-seek.sgml diff --git a/v4l2-spec/Makefile b/v4l2-spec/Makefile index d7fed7edd..9da6c6d61 100644 --- a/v4l2-spec/Makefile +++ b/v4l2-spec/Makefile @@ -87,6 +87,7 @@ SGMLS = \ vidioc-queryctrl.sgml \ vidioc-querystd.sgml \ vidioc-reqbufs.sgml \ + vidioc-s-hw-freq-seek.sgml \ vidioc-streamon.sgml \ PDFPICS = \ @@ -185,6 +186,7 @@ IOCTLS = \ VIDIOC_S_FBUF \ VIDIOC_S_FMT \ VIDIOC_S_FREQUENCY \ + VIDIOC_S_HW_FREQ_SEEK \ VIDIOC_S_INPUT \ VIDIOC_S_JPEGCOMP \ VIDIOC_S_MPEGCOMP \ @@ -240,6 +242,7 @@ STRUCTS = \ v4l2_frmsize_discrete \ v4l2_frmsize_stepwise \ v4l2_frmsizeenum \ + v4l2_hw_freq_seek \ v4l2_input \ v4l2_jpegcompression \ v4l2_modulator \ diff --git a/v4l2-spec/compat.sgml b/v4l2-spec/compat.sgml index 5c1815182..62930ad25 100644 --- a/v4l2-spec/compat.sgml +++ b/v4l2-spec/compat.sgml @@ -2203,6 +2203,16 @@ interface in Linux 2.6.18, where finally removed from the +
+ V4L2 in Linux 2.6.27 + + + The &VIDIOC-S-HW-FREQ-SEEK; ioctl and the +V4L2_CAP_HW_FREQ_SEEK capability were added. + + +
+
V4L2 in Linux 2.6.29 diff --git a/v4l2-spec/v4l2.sgml b/v4l2-spec/v4l2.sgml index 735ebc320..e487f2d80 100644 --- a/v4l2-spec/v4l2.sgml +++ b/v4l2-spec/v4l2.sgml @@ -427,6 +427,7 @@ and http://li &sub-queryctrl; &sub-querystd; &sub-reqbufs; + &sub-s-hw-freq-seek; &sub-streamon; &sub-mmap; diff --git a/v4l2-spec/vidioc-querycap.sgml b/v4l2-spec/vidioc-querycap.sgml index 89aa84cf6..2715289d8 100644 --- a/v4l2-spec/vidioc-querycap.sgml +++ b/v4l2-spec/vidioc-querycap.sgml @@ -198,6 +198,12 @@ When the driver sets this flag, it must clear the versa.The &v4l2-framebuffer; lacks an &v4l2-buf-type; field, therefore the type of overlay is implied by the driver capabilities. + + + V4L2_CAP_HW_FREQ_SEEK + 0x00000400 + The device supports the &VIDIOC-S-HW-FREQ-SEEK; ioctl for +hardware frequency seeking. V4L2_CAP_TUNER diff --git a/v4l2-spec/vidioc-s-hw-freq-seek.sgml b/v4l2-spec/vidioc-s-hw-freq-seek.sgml new file mode 100644 index 000000000..7ef695a83 --- /dev/null +++ b/v4l2-spec/vidioc-s-hw-freq-seek.sgml @@ -0,0 +1,138 @@ + + + ioctl VIDIOC_S_HW_FREQ_SEEK + &manvol; + + + + VIDIOC_S_HW_FREQ_SEEK + Perform a hardware frequency seek + + + + + + int ioctl + int fd + int request + struct v4l2_hw_freq_seek +*argp + + + + + int ioctl + int fd + int request + struct v4l2_hw_freq_seek +*argp + + + + + + Arguments + + + + fd + + &fd; + + + + request + + VIDIOC_S_HW_FREQ_SEEK + + + + argp + + + + + + + + + Description + + Start a hardware frequency seek from the current frequency. +To do this applications initialize the tuner, +type, seek_upward and +wrap_around fields, and zero out the +reserved array of a &v4l2-hw-freq-seek; and +call the VIDIOC_S_HW_FREQ_SEEK ioctl with a pointer +to this structure. + + This ioctl is supported if the V4L2_CAP_HW_FREQ_SEEK capability is set. + + + struct <structname>v4l2_hw_freq_seek</structname> + + &cs-str; + + + __u32 + tuner + The tuner index number. This is the +same value as in the &v4l2-input; tuner +field and the &v4l2-tuner; index field. + + + &v4l2-tuner-type; + type + The tuner type. This is the same value as in the +&v4l2-tuner; type field. + + + __u32 + seek_upward + If non-zero, seek upward from the current frequency, else seek downward. + + + __u32 + wrap_around + If non-zero, wrap around when at the end of the frequency range, else stop seeking. + + + __u32 + reserved[8]; + Reserved for future extensions. Drivers and + applications must set the array to zero. + + + +
+
+ + + &return-value; + + + + EINVAL + + The tuner index is out of +bounds or the value in the type field is +wrong. + + + + EAGAIN + + The ioctl timed-out. Try again. + + + + +
+ + -- cgit v1.2.3