From patchwork Mon Oct 3 19:07:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17507 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 6F1DCBD16B for ; Mon, 3 Oct 2022 19:07:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 900F9601C5; Mon, 3 Oct 2022 21:07:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1664824030; bh=iqqBsDE6ne7hNH2FyurxhWeSheIvAJX7ggEq4wL8cDY=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Inqepf+1//cY2MHNNTZIZCOEX8+utyh3Tbsabvxn8689fzZnDGfSjTLteyScb5DEA 08G6gu/bYmYvRqbr5vJKOTPYxFUgzqBjHXRiCWgUbuvskqh8ytvYqVQJs6DHJ6O3aA CuiD1HoH/zlNOva0WVc/Nnkr0Eu5nhbGec+PLOUMh2jH7rZ0kwDkJW8z8rV8RPIIb6 gNK8blmRl+GJMnAX4nm+sj4LJRU8O8FlRsAu8hECoLELihIuoy1YEDfe9rbyWlSGK+ 9ewI6VXuKRP9pbGDJxV5e2TNNIPnw1105vz/0BjhujUAP/rZ1pa2MHrXAQcpKf/uLX LXoP/5B1dkIsQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6B3E6600E9 for ; Mon, 3 Oct 2022 21:07:09 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="iArIoisN"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B2584440; Mon, 3 Oct 2022 21:07:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1664824029; bh=iqqBsDE6ne7hNH2FyurxhWeSheIvAJX7ggEq4wL8cDY=; h=From:To:Cc:Subject:Date:From; b=iArIoisNdUXqaoOEXtFnyfcnCdkh7Z9hvQjNwhyb7BQT4PNsFXRqjuUHCksjXm5l9 Z0bwEwZdDLbc84PswIRu4lmL6kpJOl22oWzoVthgjMX4gEodUF5n3oqurvTP8QIXjY KviOe2SvzXjH8ZbWIpVQ0gehMfxYPQWh+KpX2zi4= To: libcamera-devel@lists.libcamera.org Date: Mon, 3 Oct 2022 22:07:04 +0300 Message-Id: <20221003190706.19816-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: v4l2_device: Fix control enumeration for M2M devices 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-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This small patch series fixes a failure of the V4L2 helpers to enumerate controls for M2M devices. Patch 1/2 starts by adding a unit test to catch the issue. Patch 2/2 then fixes it. The second patch originates from Xavier's "[PATCH 00/14] Add dw100 dewarper support to simple/rkisp1 pipeline" series and provides an alternative to patches 02/14 and 03/14 in what I believe is a simpler way. Laurent Pinchart (2): test: v4l2_m2mdevice: Test control enumeration libcamera: v4l2_device: List controls when setting file descriptor src/libcamera/v4l2_device.cpp | 4 ++-- test/v4l2_videodevice/v4l2_m2mdevice.cpp | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-)