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 <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
cf19cd3d8a
commit
0eed42e48a
@@ -1500,6 +1500,7 @@ static int vidioc_g_tuner(struct file *file, void *priv,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
strcpy(t->name, "Tuner");
|
strcpy(t->name, "Tuner");
|
||||||
|
t->type = V4L2_TUNER_ANALOG_TV;
|
||||||
|
|
||||||
mutex_lock(&dev->lock);
|
mutex_lock(&dev->lock);
|
||||||
v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t);
|
v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t);
|
||||||
|
Reference in New Issue
Block a user