Commit 2aa92ffd authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (4858): Fix: implement missing VIDIOCSTUNER on v4l1-compat module

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent c6aeb111
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment