提交 2aa92ffd 编写于 作者: M Mauro Carvalho Chehab

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

Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册