MLK-11618: pxp output: Fix warning message
authorSandor Yu <R01008@freescale.com>
Thu, 24 Sep 2015 06:52:02 +0000 (14:52 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:42 +0000 (14:48 -0500)
Fill device_caps in pxp output driver.

Signed-off-by: Sandor Yu <R01008@freescale.com>
drivers/media/platform/mxc/output/mxc_pxp_v4l2.c

index 1c74af7..005bb92 100644 (file)
@@ -954,9 +954,9 @@ static int pxp_querycap(struct file *file, void *fh,
 
        cap->version = (PXP_DRIVER_MAJOR << 8) + PXP_DRIVER_MINOR;
 
-       cap->capabilities = V4L2_CAP_VIDEO_OUTPUT |
-                               V4L2_CAP_VIDEO_OUTPUT_OVERLAY |
-                               V4L2_CAP_STREAMING;
+       cap->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_OUTPUT |
+                               V4L2_CAP_VIDEO_OUTPUT_OVERLAY;
+       cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
 
        return 0;
 }