diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-11-24 04:37:25 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-02 08:31:34 -0500 |
commit | a020c747bf177b96b931ddbb8d87ed6fc800036d (patch) | |
tree | 743b713740d5fc9855303ae5df158eba7802620f /drivers/media/platform/fsl-viu.c | |
parent | 7027c448d2408827ce6f952a161fcb6254fb2234 (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/fsl-viu.c')
-rw-r--r-- | drivers/media/platform/fsl-viu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c index d5dc198502ef..8afee3c17c1c 100644 --- a/drivers/media/platform/fsl-viu.c +++ b/drivers/media/platform/fsl-viu.c | |||
@@ -604,10 +604,11 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
604 | { | 604 | { |
605 | strcpy(cap->driver, "viu"); | 605 | strcpy(cap->driver, "viu"); |
606 | strcpy(cap->card, "viu"); | 606 | strcpy(cap->card, "viu"); |
607 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | | 607 | cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | |
608 | V4L2_CAP_STREAMING | | 608 | V4L2_CAP_STREAMING | |
609 | V4L2_CAP_VIDEO_OVERLAY | | 609 | V4L2_CAP_VIDEO_OVERLAY | |
610 | V4L2_CAP_READWRITE; | 610 | V4L2_CAP_READWRITE; |
611 | cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; | ||
611 | return 0; | 612 | return 0; |
612 | } | 613 | } |
613 | 614 | ||