]> err.no Git - linux-2.6/commitdiff
V4L/DVB (4858): Fix: implement missing VIDIOCSTUNER on v4l1-compat module
authorMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 20 Nov 2006 15:10:04 +0000 (12:10 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Dec 2006 11:04:58 +0000 (09:04 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/v4l1-compat.c

index 06221a0c38aaa56fa63e5f60cd4452e7561d4ffe..701856e6adbf2df38ec974bcec39c63df941b97b 100644 (file)
@@ -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  */