提交 243d8c0f 编写于 作者: M Mauro Carvalho Chehab

V4L/DVB (5103): Fix vidioc_g_tuner handling

Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册