From patchwork Tue Jun 16 13:12:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 4044 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3C95B603C1 for ; Tue, 16 Jun 2020 15:13:00 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="fAG6FkPu"; dkim-atps=neutral Received: from jade.flets-east.jp (unknown [IPv6:2400:4051:61:600:2807:bdfa:f6a:8e53]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 701E3F9; Tue, 16 Jun 2020 15:12:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1592313179; bh=P8+EzyF/IbHR1HgeDAlQVy5A5RrglzSoDM2Xq33rLTg=; h=From:To:Cc:Subject:Date:From; b=fAG6FkPuyFxotMLUV9czkaQEhehRixBv/gRXIsb2/BGrrhtmDZ24YtBe/PONhdfrd cHtNdRnr2deIKPa1hJKaSn8+vZnQ/5gtDwH70AScU7b8HkccZ4SgcnQ0mLLuMBvkie iCX+xVdl855O7w2w6/vgKwvqJyYeXX6t56f+Y16Y= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Tue, 16 Jun 2020 22:12:29 +0900 Message-Id: <20200616131244.70308-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 00/15] Support v4l2-compliance 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: , X-List-Received-Date: Tue, 16 Jun 2020 13:13:00 -0000 This patchset makes the V4L2 compatibility layer comply with v4l2-compliance, and v4l2-compliance -s. I have gotten zero failues and 2 warnings with a uvcvideo libcamera camera. The two warnings are that VIDIOC_S_FMT doesn't work from a second fd (after a different fd has already called it), and that VIDIOC_CREATEBUFS is not supported, which I think are fair to not support. Note that there are a couple failues when using a vimc libcamera camera, as these cameras doesn't support setting frame sizes that are not multiples of 3. Also, while trying to comply with v4l2-compliance I lost support for firefox. I'll look into this. qv4l2 still works, though. Paul Elder (15): v4l2: v4l2_compat: Support multiple open v4l2: v4l2_camera_proxy: Check for null arg values in ioctl handlers v4l2: v4l2_camera_proxy: Fix v4l2-compliance support for extended formats v4l2: v4l2_camera_proxy: Implement VIDIOC_G/S_PRIORITY v4l2: v4l2_camera_proxy: Implement VIDIOC_ENUMINPUT, VIDIOC_G/S_INPUT v4l2: v4l2_camera_proxy: Implement VIDIOC_ENUM_FRAMESIZES v4l2: v4l2_camera_proxy: Fix v4l2-compliance format tests v4l2: v4l2_camera: Re-validate configuration after adjusted v4l2: v4l2_cammera_proxy: Reset buffer flags on streamoff when already off v4l2: v4l2_camera_proxy: Call streamoff on reqbufs 0 v4l2: v4l2_camera: Don't use libcamera::Semaphore for available buffers v4l2: v4l2_camera_proxy: Add sequence number v4l2: v4l2_camera: Clear pending requests on freeBuffers v4l2: v4l2_camera_proxy: Check arg->index bounds for querybuf, qbuf, dqbuf v4l2: v4l2_camera_proxy: Fix v4l2-compliance streaming tests src/v4l2/v4l2_camera.cpp | 53 +++- src/v4l2/v4l2_camera.h | 9 +- src/v4l2/v4l2_camera_proxy.cpp | 435 ++++++++++++++++++++++++++----- src/v4l2/v4l2_camera_proxy.h | 58 +++-- src/v4l2/v4l2_compat_manager.cpp | 25 +- 5 files changed, 477 insertions(+), 103 deletions(-)