diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-26 18:40:46 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-26 18:40:46 +0000 |
commit | 78993359ab9b30ba9f34ee66e78f5d07cef503d5 (patch) | |
tree | 9d1e4a2a6497ac029944d519a1f93c5860559781 /linux/drivers/media/video/videodev.c | |
parent | fd74ddf5e83ee43ce2d5d38d281a403512bd4716 (diff) | |
download | mediapointer-dvb-s2-78993359ab9b30ba9f34ee66e78f5d07cef503d5.tar.gz mediapointer-dvb-s2-78993359ab9b30ba9f34ee66e78f5d07cef503d5.tar.bz2 |
Hardware frequency seek ioctl interface
From: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/videodev.c')
-rw-r--r-- | linux/drivers/media/video/videodev.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c index 50c504bc0..684c7e4b9 100644 --- a/linux/drivers/media/video/videodev.c +++ b/linux/drivers/media/video/videodev.c @@ -335,6 +335,7 @@ static const char *v4l2_ioctls[] = { [_IOC_NR(VIDIOC_DBG_G_REGISTER)] = "VIDIOC_DBG_G_REGISTER", [_IOC_NR(VIDIOC_G_CHIP_IDENT)] = "VIDIOC_G_CHIP_IDENT", + [_IOC_NR(VIDIOC_S_HW_FREQ_SEEK)] = "VIDIOC_S_HW_FREQ_SEEK", #endif }; #define V4L2_IOCTLS ARRAY_SIZE(v4l2_ioctls) @@ -1905,6 +1906,17 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, ret = vfd->vidioc_default(file, fh, cmd, arg); break; } + case VIDIOC_S_HW_FREQ_SEEK: + { + struct v4l2_hw_freq_seek *p = arg; + if (!vfd->vidioc_s_hw_freq_seek) + break; + dbgarg(cmd, + "tuner=%d, type=%d, seek_upward=%d, wrap_around=%d\n", + p->tuner, p->type, p->seek_upward, p->wrap_around); + ret = vfd->vidioc_s_hw_freq_seek(file, fh, p); + break; + } } /* switch */ if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) { |