aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videodev.c
diff options
context:
space:
mode:
authorTobias Lorenz <tobias.lorenz@gmx.net>2008-05-26 17:40:46 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:07:12 -0400
commit1d0ba5f3784612fe6e91a12e0dec37c797d4f07c (patch)
tree8e05b0fc73664285504c4319892c842a78d6b63d /drivers/media/video/videodev.c
parentf90fe7a3f7fcba0abd89ce0978628ef1d86ecbf9 (diff)
V4L/DVB (7942): Hardware frequency seek ioctl interface
Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videodev.c')
-rw-r--r--drivers/media/video/videodev.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index 7649860a388d..52c56678ee69 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -278,6 +278,7 @@ static const char *v4l2_ioctls[] = {
278 [_IOC_NR(VIDIOC_DBG_G_REGISTER)] = "VIDIOC_DBG_G_REGISTER", 278 [_IOC_NR(VIDIOC_DBG_G_REGISTER)] = "VIDIOC_DBG_G_REGISTER",
279 279
280 [_IOC_NR(VIDIOC_G_CHIP_IDENT)] = "VIDIOC_G_CHIP_IDENT", 280 [_IOC_NR(VIDIOC_G_CHIP_IDENT)] = "VIDIOC_G_CHIP_IDENT",
281 [_IOC_NR(VIDIOC_S_HW_FREQ_SEEK)] = "VIDIOC_S_HW_FREQ_SEEK",
281#endif 282#endif
282}; 283};
283#define V4L2_IOCTLS ARRAY_SIZE(v4l2_ioctls) 284#define V4L2_IOCTLS ARRAY_SIZE(v4l2_ioctls)
@@ -1763,6 +1764,17 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
1763 ret = vfd->vidioc_default(file, fh, cmd, arg); 1764 ret = vfd->vidioc_default(file, fh, cmd, arg);
1764 break; 1765 break;
1765 } 1766 }
1767 case VIDIOC_S_HW_FREQ_SEEK:
1768 {
1769 struct v4l2_hw_freq_seek *p = arg;
1770 if (!vfd->vidioc_s_hw_freq_seek)
1771 break;
1772 dbgarg(cmd,
1773 "tuner=%d, type=%d, seek_upward=%d, wrap_around=%d\n",
1774 p->tuner, p->type, p->seek_upward, p->wrap_around);
1775 ret = vfd->vidioc_s_hw_freq_seek(file, fh, p);
1776 break;
1777 }
1766 } /* switch */ 1778 } /* switch */
1767 1779
1768 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) { 1780 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) {