From: Hans Verkuil Date: Tue, 30 Jul 2019 06:38:16 +0000 (-0300) Subject: media: omap_vout: fix various v4l2-compliance failures X-Git-Tag: v5.4-rc1~145^2~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=839b9d2c59b3b3e74cb58b457615ff61154d8a41;p=platform%2Fkernel%2Flinux-rpi.git media: omap_vout: fix various v4l2-compliance failures This patch fixes the following v4l2-compliance failures: - FIELD_ANY could be returned, which is not allowed. - JPEG colorspace was set instead of SRGB. - No control events. - Empty bus_info in QUERYCAP. - Overlay format handling wasn't zeroing bitmap/clips and didn't return the chromakey correctly. - G_FBUF didn't fill in many of the v4l2_framebuffer values. Now also return the base address of the corresponding framebuffer that this overlays. - Missing ENUM/G/S_OUTPUT ioctls. - ROTATE/VFLIP controls were added when the HW didn't support them. With these changes 'v4l2-compliance' passes all non-streaming tests. Tested on a Pandaboard and a Beagle XM board. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index b0f03c2..97b9089 100644 --- a/drivers/media/platform/omap/omap_vout.c +++ b/drivers/media/platform/omap/omap_vout.c @@ -43,6 +43,7 @@ #include #include #include +#include #include