From patchwork Thu Dec 15 12:16:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 33605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp316579wrn; Thu, 15 Dec 2022 04:20:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf4nDvfcfsrR5dIW7KgnQTBt5x7sk4w1nJqlMf8Ex+DQgj5gNIqPkESvIeqSHwsT6aSFhebj X-Received: by 2002:a17:90a:ca16:b0:219:d636:dd82 with SMTP id x22-20020a17090aca1600b00219d636dd82mr27911878pjt.4.1671106818879; Thu, 15 Dec 2022 04:20:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671106818; cv=none; d=google.com; s=arc-20160816; b=Ee6mNuoFJQjYvUsoCBEXsCuT2Eeqo7bhg4tcT8cGykjBni/6VCVLXJWtVZDOc8X4DW 5ctHVOkCTqOkEvt+7rGaGPcifHDrHJDM8IaPgHJuMPCMjQ+94fTfiJgSe79x2VlStLLY qM+oMoeWRVn5iJ15rcCmHpkglLwox+fWChKyETUbHxFAUEwmMZ4m3GOWksIqVICUx7v3 V9GxQ5L+17mQOkCPxbdpOaB1bE4/sbqBbrSP6kMZJrG0r4bUwNyj9GXRc885TE2rl2/o z5gF+xBZHHuTnU/5FWbTUfKcR5AmPhPvk3nFvYYKqWHTFqNEArcQ75v3LyiRfmlJklYR 2SyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2C50P9PTwArffv/tB542Uj9BqjPrJsaBIWNGLP5E/j8=; b=fYIudbQdVWdSpSKF5wXnw9i9XpulHNyfjmQ+QvwLBu1ExFYRcFTqj9Iu5sytpIZYPh ADlB5XoXhJdLr9DwWre28UblyHVSbLAK2jG0xkyZQl7kL806RwYbRaM85dZDaJ+is6p1 I/SvB8lupTih97aeFV7SwMW0TG/EkBNBXVnYi7Szr64mI1+01R70Rqq7aaNFX3hLBlOh tfaK/Xs9G5mKWCEdpaU3tIvmG8/fhbZiOyuxyCRzFRCtltsBKLCcxHPkce1bMbOW32QV 5bLLHMPr6e3lkvRUGzzmaE7YtNDnpVJfnLU0xayFS7FiIifE54k4Ehf/TufjcxaeGHpm DunA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KRaiJxlb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a192-20020a6390c9000000b0043f06af773dsi2723547pge.33.2022.12.15.04.20.05; Thu, 15 Dec 2022 04:20:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KRaiJxlb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbiLOMTL (ORCPT + 99 others); Thu, 15 Dec 2022 07:19:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbiLOMR4 (ORCPT ); Thu, 15 Dec 2022 07:17:56 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB35A2E9EF; Thu, 15 Dec 2022 04:17:35 -0800 (PST) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8D81E1932; Thu, 15 Dec 2022 13:17:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1671106643; bh=RjcFxHAheDjL95YSIn1pzpgvG3FMNI42zrY8Q5Kt6cM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KRaiJxlbxrEuUn5tb+vKwyRkJdvLlYg64j+U1kZEarHJJaaasWm0orY6i2FL0VlpS 1uRUVSrFKyHQGbYyfiDSjOtDRhlJVMUHc3W1UDyICFhVCZeMpk+mVEpn2q/OTRoO7t wJWBjy/D3f+Zs+FVQahPduvsl8ztYZpENllfkFOw= From: Tomi Valkeinen To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, sakari.ailus@linux.intel.com, Jacopo Mondi , Laurent Pinchart , niklas.soderlund+renesas@ragnatech.se, Mauro Carvalho Chehab , Hans Verkuil , satish.nagireddy@getcruise.com, Tomasz Figa Cc: Tomi Valkeinen Subject: [PATCH v16 20/20] media: Add stream to frame descriptor Date: Thu, 15 Dec 2022 14:16:34 +0200 Message-Id: <20221215121634.287100-21-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221215121634.287100-1-tomi.valkeinen@ideasonboard.com> References: <20221215121634.287100-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752282503559891258?= X-GMAIL-MSGID: =?utf-8?q?1752282503559891258?= From: Sakari Ailus The stream field identifies the stream this frame descriptor applies to in routing configuration across a multiplexed link. Signed-off-by: Sakari Ailus Reviewed-by: Niklas Söderlund Reviewed-by: Jacopo Mondi Signed-off-by: Tomi Valkeinen --- include/media/v4l2-subdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index b21af00b1884..6a77aa9bb1da 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h @@ -342,6 +342,7 @@ enum v4l2_mbus_frame_desc_flags { * struct v4l2_mbus_frame_desc_entry - media bus frame description structure * * @flags: bitmask flags, as defined by &enum v4l2_mbus_frame_desc_flags. + * @stream: stream in routing configuration * @pixelcode: media bus pixel code, valid if @flags * %FRAME_DESC_FL_BLOB is not set. * @length: number of octets per frame, valid if @flags @@ -351,6 +352,7 @@ enum v4l2_mbus_frame_desc_flags { */ struct v4l2_mbus_frame_desc_entry { enum v4l2_mbus_frame_desc_flags flags; + u32 stream; u32 pixelcode; u32 length; union {