V4L/DVB: em28xx: g_tuner must set type field
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 1 May 2010 21:06:50 +0000 (18:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:55 +0000 (12:58 -0300)
The 'type' field was undefined but should be set to ANALOG_TV.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-video.c

index 8565fb3ff94518b9046390ea83103bbeacb0f5c8..20090e34173a617c8cd6030124948f2110533917 100644 (file)
@@ -1500,6 +1500,7 @@ static int vidioc_g_tuner(struct file *file, void *priv,
                return -EINVAL;
 
        strcpy(t->name, "Tuner");
+       t->type = V4L2_TUNER_ANALOG_TV;
 
        mutex_lock(&dev->lock);
        v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t);