Commit 243d8c0f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (5103): Fix vidioc_g_tuner handling

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 63ab1bdc
......@@ -1301,6 +1301,8 @@ static int vidioc_g_tuner (struct file *file, void *priv,
if (unlikely(UNSET == core->tuner_type))
return -EINVAL;
if (0 != t->index)
return -EINVAL;
strcpy(t->name, "Television");
t->type = V4L2_TUNER_ANALOG_TV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment