Message ID | 20201020154522.654-1-dafna.hirschfeld@collabora.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Delegated to: | Hans Verkuil |
Headers |
Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from <linux-media-owner@vger.kernel.org>) id 1kUtk4-009Rzx-BS; Tue, 20 Oct 2020 15:40:05 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436769AbgJTPqy (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Tue, 20 Oct 2020 11:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731458AbgJTPqy (ORCPT <rfc822;linux-media@vger.kernel.org>); Tue, 20 Oct 2020 11:46:54 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0253EC061755 for <linux-media@vger.kernel.org>; Tue, 20 Oct 2020 08:46:54 -0700 (PDT) Received: from guri.fritz.box (p200300c7cf435b0028a32f4e277d2227.dip0.t-ipconnect.de [IPv6:2003:c7:cf43:5b00:28a3:2f4e:277d:2227]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dafna) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 6A55E1F44EC1; Tue, 20 Oct 2020 16:46:52 +0100 (BST) From: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, 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, tfiga@chromium.org Subject: [PATCH v2 1/2] media: uapi: add MEDIA_BUS_FMT_METADATA_FIXED media bus format. Date: Tue, 20 Oct 2020 17:45:21 +0200 Message-Id: <20201020154522.654-1-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no |
Series |
[v2,1/2] media: uapi: add MEDIA_BUS_FMT_METADATA_FIXED media bus format.
|
|
Commit Message
Dafna Hirschfeld
Oct. 20, 2020, 3:45 p.m. UTC
MEDIA_BUS_FMT_METADATA_FIXED should be used when the same driver handles both sides of the link and the bus format is a fixed metadata format that is not configurable from userspace. The width and height will be set to 0 for this format. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Acked-by: Helen Koike <helen.koike@collabora.com> --- changes since v1: 1. replace "This format may have 0 height and width." with "Width and height will be set to 0 for this format." and add it also to the commit log 2. s/meida:/media:/ in the patch subject line include/uapi/linux/media-bus-format.h | 8 ++++++++ 1 file changed, 8 insertions(+)
Comments
On 20/10/2020 17:45, Dafna Hirschfeld wrote: > MEDIA_BUS_FMT_METADATA_FIXED should be used when > the same driver handles both sides of the link and > the bus format is a fixed metadata format that is > not configurable from userspace. > The width and height will be set to 0 for this format. > > Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> > Acked-by: Helen Koike <helen.koike@collabora.com> > --- > changes since v1: > 1. replace "This format may have 0 height and width." > with "Width and height will be set to 0 for this format." > and add it also to the commit log > 2. s/meida:/media:/ in the patch subject line > > include/uapi/linux/media-bus-format.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h > index 84fa53ffb13f..2ce3d891d344 100644 > --- a/include/uapi/linux/media-bus-format.h > +++ b/include/uapi/linux/media-bus-format.h > @@ -156,4 +156,12 @@ > /* HSV - next is 0x6002 */ > #define MEDIA_BUS_FMT_AHSV8888_1X32 0x6001 > > +/* > + * This format should be used when the same driver handles > + * both sides of the link and the bus format is a fixed > + * metadata format that is not configurable from userspace. > + * Width and height will be set to 0 for this format. > + */ > +#define MEDIA_BUS_FMT_METADATA_FIXED 0x7001 > + > #endif /* __LINUX_MEDIA_BUS_FORMAT_H */ > Documentation/userspace-api/media/v4l/subdev-formats.rst also needs to be updated. Regards, Hans
Am 30.10.20 um 09:58 schrieb Hans Verkuil: > On 20/10/2020 17:45, Dafna Hirschfeld wrote: >> MEDIA_BUS_FMT_METADATA_FIXED should be used when >> the same driver handles both sides of the link and >> the bus format is a fixed metadata format that is >> not configurable from userspace. >> The width and height will be set to 0 for this format. >> >> Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> >> Acked-by: Helen Koike <helen.koike@collabora.com> >> --- >> changes since v1: >> 1. replace "This format may have 0 height and width." >> with "Width and height will be set to 0 for this format." >> and add it also to the commit log >> 2. s/meida:/media:/ in the patch subject line >> >> include/uapi/linux/media-bus-format.h | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h >> index 84fa53ffb13f..2ce3d891d344 100644 >> --- a/include/uapi/linux/media-bus-format.h >> +++ b/include/uapi/linux/media-bus-format.h >> @@ -156,4 +156,12 @@ >> /* HSV - next is 0x6002 */ >> #define MEDIA_BUS_FMT_AHSV8888_1X32 0x6001 >> >> +/* >> + * This format should be used when the same driver handles >> + * both sides of the link and the bus format is a fixed >> + * metadata format that is not configurable from userspace. >> + * Width and height will be set to 0 for this format. >> + */ >> +#define MEDIA_BUS_FMT_METADATA_FIXED 0x7001 >> + >> #endif /* __LINUX_MEDIA_BUS_FORMAT_H */ >> > > Documentation/userspace-api/media/v4l/subdev-formats.rst also needs to > be updated. hi, I wonder what should be the documentation, since this mbus code is for very specific use case. You think that the 0x7* mbus codes should be 'metadata mbus codes'? Thanks, Dafna > > Regards, > > Hans >
On 30/10/2020 12:34, Dafna Hirschfeld wrote: > > > Am 30.10.20 um 09:58 schrieb Hans Verkuil: >> On 20/10/2020 17:45, Dafna Hirschfeld wrote: >>> MEDIA_BUS_FMT_METADATA_FIXED should be used when >>> the same driver handles both sides of the link and >>> the bus format is a fixed metadata format that is >>> not configurable from userspace. >>> The width and height will be set to 0 for this format. >>> >>> Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> >>> Acked-by: Helen Koike <helen.koike@collabora.com> >>> --- >>> changes since v1: >>> 1. replace "This format may have 0 height and width." >>> with "Width and height will be set to 0 for this format." >>> and add it also to the commit log >>> 2. s/meida:/media:/ in the patch subject line >>> >>> include/uapi/linux/media-bus-format.h | 8 ++++++++ >>> 1 file changed, 8 insertions(+) >>> >>> diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h >>> index 84fa53ffb13f..2ce3d891d344 100644 >>> --- a/include/uapi/linux/media-bus-format.h >>> +++ b/include/uapi/linux/media-bus-format.h >>> @@ -156,4 +156,12 @@ >>> /* HSV - next is 0x6002 */ >>> #define MEDIA_BUS_FMT_AHSV8888_1X32 0x6001 >>> >>> +/* >>> + * This format should be used when the same driver handles >>> + * both sides of the link and the bus format is a fixed >>> + * metadata format that is not configurable from userspace. >>> + * Width and height will be set to 0 for this format. >>> + */ >>> +#define MEDIA_BUS_FMT_METADATA_FIXED 0x7001 >>> + >>> #endif /* __LINUX_MEDIA_BUS_FORMAT_H */ >>> >> >> Documentation/userspace-api/media/v4l/subdev-formats.rst also needs to >> be updated. > > hi, > I wonder what should be the documentation, since this mbus code Basically the same as you wrote in the comment above. > is for very specific use case. You think that the 0x7* mbus codes > should be 'metadata mbus codes'? Yes. Regards, Hans
diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index 84fa53ffb13f..2ce3d891d344 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h @@ -156,4 +156,12 @@ /* HSV - next is 0x6002 */ #define MEDIA_BUS_FMT_AHSV8888_1X32 0x6001 +/* + * This format should be used when the same driver handles + * both sides of the link and the bus format is a fixed + * metadata format that is not configurable from userspace. + * Width and height will be set to 0 for this format. + */ +#define MEDIA_BUS_FMT_METADATA_FIXED 0x7001 + #endif /* __LINUX_MEDIA_BUS_FORMAT_H */