From patchwork Wed Jan 17 14:42:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 19413 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 DD758C323E for ; Wed, 17 Jan 2024 14:42:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B1F47628B8; Wed, 17 Jan 2024 15:42:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1705502561; bh=Rp6cJvT2VVDQOYZ/Vwp4MYkTTzM6XXPEN0pLi+dh5hM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=mufpPyAZ4ao7BEJFQxHEbwdjZPdFaba3chVlw5hHk8LxrkQkp1kPHePmPOWlx/Qp/ PAecsTXC/3TH5atZ5YmDnUGGyZT6iJoLRL2VAeSPirNeahWOv9vWUEPAKtjxcoPyVj uOWiQjgdBqi22pMcS5TBSM9/AFumoFz+tS6mp7jbigskAnhJMeVuwKHeHDh6A5Vnrx rykw0gFY7SqzniU8fT4m5cBvy04DLNBcrtKCOysxJnrD5sFR5migS80ErdE0DlylPH 3lciUIwchNzIO/PJkOTKo/2rCVV+W+ZVS9il5vqn/lt5z1ozA2Whi71RXO1o93h5Rl o1Yz/XIShOZoQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5B2F0628AD for ; Wed, 17 Jan 2024 15:42:39 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ESZb1AwR"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (89-27-53-110.bb.dnainternet.fi [89.27.53.110]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8F2567EC; Wed, 17 Jan 2024 15:41:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1705502489; bh=Rp6cJvT2VVDQOYZ/Vwp4MYkTTzM6XXPEN0pLi+dh5hM=; h=From:To:Cc:Subject:Date:From; b=ESZb1AwR3yWcbXMp2Z4EMR1EhdiF5i/HDWsC5Gxi1ayQiwgyf90azqTs0UwNLqmq5 dVZz9XoSco33l1dXNL/tO7KPcbHBgeAAQTNKDRIwKJcM9/xsp2DTYblgFqK1ppfvWf Nt+dFD5QaBG93twReI6bIDwHshs2NW384prPw6fA= To: libcamera-devel@lists.libcamera.org Date: Wed, 17 Jan 2024 16:42:33 +0200 Message-ID: <20240117144242.9903-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: Enable V4L2 subdev streams support 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, In v6.4, new subdev ioctls were introduced to gate streams support behind a V4L2 subdev client capability mechanism. Without enabling the capability, the stream arguments to subdev ioctls is ignored (subdev internal routing configuration still works, but all routes then hardcode stream 0 on both the sink and source sides). This small patch series updates libcamera to enable the stream capbility. It starts by updating the kernel headers in patch 1/2 (updating to v6.4 would have been enough, but there's no reason not to use the most recent headers), and then enables the client capability in patch 2/2. Laurent Pinchart (2): include: linux: Update kernel headers to version v6.7 libcamera: v4l2_subdevice: Enable streams API when supported include/libcamera/internal/v4l2_subdevice.h | 2 +- include/linux/README | 2 +- include/linux/dma-buf.h | 84 ++ include/linux/drm_fourcc.h | 128 +- include/linux/intel-ipu3.h | 7 +- include/linux/media-bus-format.h | 13 +- include/linux/media.h | 29 +- include/linux/v4l2-common.h | 39 - include/linux/v4l2-controls.h | 1250 ++++++++++++++++++- include/linux/v4l2-mediabus.h | 4 - include/linux/v4l2-subdev.h | 56 +- include/linux/videodev2.h | 69 +- src/libcamera/v4l2_subdevice.cpp | 15 + 13 files changed, 1551 insertions(+), 147 deletions(-) base-commit: 89227a428a82e724548399d35c98ea89566f9045 Reviewed-by: Tomi Valkeinen