From 839b9d2c59b3b3e74cb58b457615ff61154d8a41 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Tue, 30 Jul 2019 03:38:16 -0300 Subject: [PATCH] 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 --- drivers/media/platform/omap/omap_vout.c | 174 ++++++++++++++++----- drivers/media/platform/omap/omap_voutlib.c | 6 +- 2 files changed, 136 insertions(+), 44 deletions(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index b0f03c2ca65d..97b9089baa41 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