V4L/DVB (4858): Fix: implement missing VIDIOCSTUNER on v4l1-compat module
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
c6aeb11127
commit
2aa92ffd58
1 changed files with 10 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue