Skip to content

Commit

Permalink
V4L/DVB (4858): Fix: implement missing VIDIOCSTUNER on v4l1-compat mo…
Browse files Browse the repository at this point in the history
…dule

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Dec 10, 2006
1 parent c6aeb11 commit 2aa92ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion drivers/media/video/v4l1-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2aa92ff

Please sign in to comment.