From patchwork Wed Sep 8 08:14:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 13759 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 4B16ABDB1D for ; Wed, 8 Sep 2021 08:14:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E3EC96916E; Wed, 8 Sep 2021 10:14:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="MhIKH/ld"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 69B1E6024D for ; Wed, 8 Sep 2021 10:14:50 +0200 (CEST) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D4638993; Wed, 8 Sep 2021 10:14:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1631088890; bh=DiNrgicyX3Ul9D3cjosNyd1weaawhD9d9OBZcymMWcc=; h=From:To:Cc:Subject:Date:From; b=MhIKH/ld4Sh8pn7iSwHx0IE1KbWzB0KaYwKfM0p1q1GC/D6zt+6SFR9k7ILywyK9v 8sZW2+Jm0OJm1kbkYFbartIYOaswJs+1kMiZ9GK6yNv8aoPTk6kpkOAiojP+17g3QJ FZk2H3fyGwtUL3T7UBNxbytnsRx08aC4KRZkTOUU= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Wed, 8 Sep 2021 17:14:30 +0900 Message-Id: <20210908081437.4022697-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/7] v4l2-compat fixes X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patch series collects my last two series on v4l2-compat fixes, and adds a few more on top. Everything started when a new version of v4l2-compliance broke our unit test, because it changed the version string format, and added some more tests that we don't pass. The extra test is that it confirms the V4L2 format description string, so patches 2 to 5 address this. Patch 6 fixes another todo along the way, and patch 7 addresses the version parsing, which allows everything to run again. Paul Elder (7): v4l2: v4l2_compat_manager: Don't print "camera not found" on openat() libcamera: v4l2_pixelformat: Add V4L2 description strings libcamera: v4l2_pixelformat: Add entries for NV24 and NV42 libcamera: v4l2_pixelformat: Add helper function to get the description v4l2: v4l2_camera_proxy: Report the proper format name in enum_fmt v4l2: v4l2_camera_proxy: Set the compressed flag in enum_fmt test: v4l2_compat_test: Fix v4l2-compliance version parsing include/libcamera/internal/v4l2_pixelformat.h | 6 + src/libcamera/v4l2_pixelformat.cpp | 203 +++++++++++++----- src/v4l2/v4l2_camera_proxy.cpp | 9 +- src/v4l2/v4l2_compat_manager.cpp | 2 +- test/v4l2_compat/v4l2_compat_test.py | 2 +- 5 files changed, 158 insertions(+), 64 deletions(-)