[media] media/platform: fix querycap
Querycap shouldn't set the version field (the core does that for you), but it should set the device_caps field. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Scott Jiang <scott.jiang.linux@gmail.com> Cc: Gerhard Sittig <gsi@denx.de> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
7027c448d2
commit
a020c747bf
@@ -985,9 +985,9 @@ static int viacam_querycap(struct file *filp, void *priv,
|
||||
{
|
||||
strcpy(cap->driver, "via-camera");
|
||||
strcpy(cap->card, "via-camera");
|
||||
cap->version = 1;
|
||||
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE |
|
||||
cap->device_caps = V4L2_CAP_VIDEO_CAPTURE |
|
||||
V4L2_CAP_READWRITE | V4L2_CAP_STREAMING;
|
||||
cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user