diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-11-20 10:10:04 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 06:04:58 -0500 |
commit | 2aa92ffd58493887adde850fe510031e48f12bac (patch) | |
tree | 9e7ae52a8cd16bac6274a7a3834c2a5a50ff90d8 /drivers/media/video/v4l1-compat.c | |
parent | c6aeb11127a8a4266d613563f737a1d60cfae628 (diff) |
V4L/DVB (4858): Fix: implement missing VIDIOCSTUNER on v4l1-compat module
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/v4l1-compat.c')
-rw-r--r-- | drivers/media/video/v4l1-compat.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/media/video/v4l1-compat.c b/drivers/media/video/v4l1-compat.c index 06221a0c38aa..701856e6adbf 100644 --- a/drivers/media/video/v4l1-compat.c +++ b/drivers/media/video/v4l1-compat.c | |||
@@ -708,7 +708,16 @@ v4l_compat_translate_ioctl(struct inode *inode, | |||
708 | } | 708 | } |
709 | case VIDIOCSTUNER: /* select a tuner input */ | 709 | case VIDIOCSTUNER: /* select a tuner input */ |
710 | { | 710 | { |
711 | err = 0; | 711 | struct video_tuner *tun = arg; |
712 | struct v4l2_tuner t; | ||
713 | memset(&t,0,sizeof(t)); | ||
714 | |||
715 | t.index=tun->tuner; | ||
716 | |||
717 | err = drv(inode, file, VIDIOC_S_INPUT, &t); | ||
718 | if (err < 0) | ||
719 | dprintk("VIDIOCSTUNER / VIDIOC_S_INPUT: %d\n",err); | ||
720 | |||
712 | break; | 721 | break; |
713 | } | 722 | } |
714 | case VIDIOCGFREQ: /* get frequency */ | 723 | case VIDIOCGFREQ: /* get frequency */ |