From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B675C433FF for ; Tue, 30 Jul 2019 06:38:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 61D8A2087F for ; Tue, 30 Jul 2019 06:38:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726991AbfG3GiW (ORCPT ); Tue, 30 Jul 2019 02:38:22 -0400 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:37383 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbfG3GiV (ORCPT ); Tue, 30 Jul 2019 02:38:21 -0400 Received: from marune.fritz.box ([IPv6:2001:983:e9a7:1:3159:f139:4aff:7185]) by smtp-cloud8.xs4all.net with ESMTPA id sLm5hAKSWqTdhsLm6hkdQU; Tue, 30 Jul 2019 08:38:18 +0200 From: Hans Verkuil To: linux-media@vger.kernel.org Cc: Laurent Pinchart , Tomi Valkeinen , Hans Verkuil Subject: [PATCH 1/2] omap_vout: fix various v4l2-compliance failures Date: Tue, 30 Jul 2019 08:38:16 +0200 Message-Id: <20190730063817.47674-2-hverkuil-cisco@xs4all.nl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190730063817.47674-1-hverkuil-cisco@xs4all.nl> References: <20190730063817.47674-1-hverkuil-cisco@xs4all.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfNCABzaRMCy4mrLv+GCudo+fTMXV3SjWaE05MHk1ZJjriUyBPqEa1piSY5BsqWYFzvbQ5WNWU0mMku8SXgyKsvajL5E/Dm4x5Q6AOkId93rgM1kKmsbF 5sk81JCkUFGwcLJzZSlJ4BJwWvqD44LEOGHKYCd6NFRq2a7YCUGfeIAufziJE6DOoc63iVpDbYgnE6KtgNyZRaEMyEZ6IC8xAoau2dsjdNcrXCyOVaqC5W/E rkx5pdHnMIk7e+qp1cKe4uwcRQBWuy5j79YWS+hLilz9N+Bj6abEDB8dAB8nQ/FIy4WkFSzK8rOcN8ugCn5ncmDCWauXG4+UpuJNbGyIEJ7XwCPReyxIBNxK RabAWk1ON8KO32YXhH+qX+nwHxclPA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- drivers/media/platform/omap/omap_vout.c | 170 ++++++++++++++++----- drivers/media/platform/omap/omap_voutlib.c | 6 +- 2 files changed, 134 insertions(+), 42 deletions(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index b0f03c2ca65d..6d31c34e168d 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