]> err.no Git - linux-2.6/commitdiff
[PATCH] v4l: 821: set tuner type in vidioc_g_tuner
authorElad Lahav <elad_lahav@users.sourceforge.net>
Wed, 9 Nov 2005 05:37:59 +0000 (21:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:22 +0000 (07:56 -0800)
- Set tuner type in VIDIOC_G_TUNER.

Signed-off-by: Elad Lahav <elad_lahav@users.sourceforge.net>
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/cx88/cx88-video.c
drivers/media/video/saa7134/saa7134-video.c

index cedd1d79ac13a72c9b403ecd1157cbee5d2f5ee0..24a48f8a48c18a16be2dd96e278703ae7f153753 100644 (file)
@@ -1506,6 +1506,7 @@ static int radio_do_ioctl(struct inode *inode, struct file *file,
 
                memset(t,0,sizeof(*t));
                strcpy(t->name, "Radio");
+               t->type = V4L2_TUNER_RADIO;
 
                cx88_call_i2c_clients(core,VIDIOC_G_TUNER,t);
                return 0;
index 632ebe8724ec7443cda03709765f49f1e9e18df6..45c852df13ed56c24c2f0332314144a1ef05d3ff 100644 (file)
@@ -1862,6 +1862,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file,
                                break;
                if (NULL != card_in(dev,n).name) {
                        strcpy(t->name, "Television");
+                       t->type = V4L2_TUNER_ANALOG_TV;
                        t->capability = V4L2_TUNER_CAP_NORM |
                                V4L2_TUNER_CAP_STEREO |
                                V4L2_TUNER_CAP_LANG1 |
@@ -2165,6 +2166,7 @@ static int radio_do_ioctl(struct inode *inode, struct file *file,
 
                memset(t,0,sizeof(*t));
                strcpy(t->name, "Radio");
+               t->type = V4L2_TUNER_RADIO;
 
                saa7134_i2c_call_clients(dev, VIDIOC_G_TUNER, t);