aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vino.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-11-24 04:37:25 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-02 08:31:34 -0500
commita020c747bf177b96b931ddbb8d87ed6fc800036d (patch)
tree743b713740d5fc9855303ae5df158eba7802620f /drivers/media/platform/vino.c
parent7027c448d2408827ce6f952a161fcb6254fb2234 (diff)
[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>
Diffstat (limited to 'drivers/media/platform/vino.c')
-rw-r--r--drivers/media/platform/vino.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/platform/vino.c b/drivers/media/platform/vino.c
index 91d44ea16f27..2c85357f774d 100644
--- a/drivers/media/platform/vino.c
+++ b/drivers/media/platform/vino.c
@@ -2932,10 +2932,8 @@ static int vino_querycap(struct file *file, void *__fh,
2932 strcpy(cap->driver, vino_driver_name); 2932 strcpy(cap->driver, vino_driver_name);
2933 strcpy(cap->card, vino_driver_description); 2933 strcpy(cap->card, vino_driver_description);
2934 strcpy(cap->bus_info, vino_bus_name); 2934 strcpy(cap->bus_info, vino_bus_name);
2935 cap->capabilities = 2935 cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
2936 V4L2_CAP_VIDEO_CAPTURE | 2936 cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
2937 V4L2_CAP_STREAMING;
2938 // V4L2_CAP_OVERLAY, V4L2_CAP_READWRITE
2939 return 0; 2937 return 0;
2940} 2938}
2941 2939