From 0eed42e48a6292ebc96606c6a7105c69b37666d0 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sat, 1 May 2010 18:06:50 -0300 Subject: [PATCH] V4L/DVB: em28xx: g_tuner must set type field The 'type' field was undefined but should be set to ANALOG_TV. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/em28xx/em28xx-video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index 8565fb3ff945..20090e34173a 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c @@ -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); -- GitLab