From patchwork Wed Mar 25 21:27:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 11458655 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B6BB192A for ; Wed, 25 Mar 2020 21:27:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9825320848 for ; Wed, 25 Mar 2020 21:27:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727508AbgCYV1R (ORCPT ); Wed, 25 Mar 2020 17:27:17 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39694 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727358AbgCYV1Q (ORCPT ); Wed, 25 Mar 2020 17:27:16 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dafna) with ESMTPSA id 8C2D2293A25 From: Dafna Hirschfeld To: linux-media@vger.kernel.org, dafna.hirschfeld@collabora.com, helen.koike@collabora.com, ezequiel@collabora.com, hverkuil@xs4all.nl, kernel@collabora.com, dafna3@gmail.com, sakari.ailus@linux.intel.com, linux-rockchip@lists.infradead.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com Subject: [PATCH 1/2] media: media.h: Add a pad flag MEDIA_PAD_FL_METADATA Date: Wed, 25 Mar 2020 22:27:03 +0100 Message-Id: <20200325212704.29862-2-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200325212704.29862-1-dafna.hirschfeld@collabora.com> References: <20200325212704.29862-1-dafna.hirschfeld@collabora.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add a flag to the flags field of 'struct media_pad_desc' that indicates that the data transmitted by the pad is metadata. Signed-off-by: Dafna Hirschfeld --- Documentation/media/uapi/mediactl/media-types.rst | 4 ++++ include/uapi/linux/media.h | 1 + 2 files changed, 5 insertions(+) diff --git a/Documentation/media/uapi/mediactl/media-types.rst b/Documentation/media/uapi/mediactl/media-types.rst index 3af6a414b501..4ca902478971 100644 --- a/Documentation/media/uapi/mediactl/media-types.rst +++ b/Documentation/media/uapi/mediactl/media-types.rst @@ -361,6 +361,7 @@ Types and flags used to represent the media graph elements .. _MEDIA-PAD-FL-SINK: .. _MEDIA-PAD-FL-SOURCE: .. _MEDIA-PAD-FL-MUST-CONNECT: +.. _MEDIA-PAD-FL-METADATA: .. flat-table:: Media pad flags :header-rows: 0 @@ -381,6 +382,9 @@ Types and flags used to represent the media graph elements configuration dependent) for the pad to need enabled links even when this flag isn't set; the absence of the flag doesn't imply there is none. + * - ``MEDIA_PAD_FL_METADATA`` + - This flag indicates that the data transmitted by the pad is of + type metadata. One and only one of ``MEDIA_PAD_FL_SINK`` and ``MEDIA_PAD_FL_SOURCE`` diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 383ac7b7d8f0..ae37226eb5c9 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -210,6 +210,7 @@ struct media_entity_desc { #define MEDIA_PAD_FL_SINK (1 << 0) #define MEDIA_PAD_FL_SOURCE (1 << 1) #define MEDIA_PAD_FL_MUST_CONNECT (1 << 2) +#define MEDIA_PAD_FL_METADATA (1 << 3) struct media_pad_desc { __u32 entity; /* entity ID */