From: Mauro Carvalho Chehab Date: Mon, 20 Nov 2006 15:10:04 +0000 (-0300) Subject: V4L/DVB (4858): Fix: implement missing VIDIOCSTUNER on v4l1-compat module X-Git-Tag: v2.6.20-rc2~85^2~18^2~73 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2aa92ffd58493887adde850fe510031e48f12bac;p=linux-2.6-omap-h63xx.git V4L/DVB (4858): Fix: implement missing VIDIOCSTUNER on v4l1-compat module Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/v4l1-compat.c b/drivers/media/video/v4l1-compat.c index 06221a0c38a..701856e6adb 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, } case VIDIOCSTUNER: /* select a tuner input */ { - err = 0; + struct video_tuner *tun = arg; + struct v4l2_tuner t; + memset(&t,0,sizeof(t)); + + t.index=tun->tuner; + + err = drv(inode, file, VIDIOC_S_INPUT, &t); + if (err < 0) + dprintk("VIDIOCSTUNER / VIDIOC_S_INPUT: %d\n",err); + break; } case VIDIOCGFREQ: /* get frequency */