From: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCHv4 02/10] media-ioc-g-topology.rst: document new 'index' field
Date: Fri, 29 Jun 2018 09:28:04 -0300 [thread overview]
Message-ID: <20180629092804.39892128@coco.lan> (raw)
In-Reply-To: <3a8508d8-29e4-3c0c-cf66-7a5e3d02dd83@xs4all.nl>
Em Fri, 29 Jun 2018 12:26:50 +0200
Hans Verkuil <hverkuil@xs4all.nl> escreveu:
> On 06/29/18 11:54, Mauro Carvalho Chehab wrote:
> > Em Thu, 28 Jun 2018 15:12:00 +0200
> > Hans Verkuil <hverkuil@xs4all.nl> escreveu:
> >
> >> From: Hans Verkuil <hans.verkuil@cisco.com>
> >>
> >> Document the new struct media_v2_pad 'index' field.
> >>
> >> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> >> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> >> ---
> >> .../media/uapi/mediactl/media-ioc-g-topology.rst | 11 +++++++++--
> >> 1 file changed, 9 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/Documentation/media/uapi/mediactl/media-ioc-g-topology.rst b/Documentation/media/uapi/mediactl/media-ioc-g-topology.rst
> >> index a3f259f83b25..24ab34b22df2 100644
> >> --- a/Documentation/media/uapi/mediactl/media-ioc-g-topology.rst
> >> +++ b/Documentation/media/uapi/mediactl/media-ioc-g-topology.rst
> >> @@ -176,7 +176,7 @@ desired arrays with the media graph elements.
> >> * - struct media_v2_intf_devnode
> >> - ``devnode``
> >> - Used only for device node interfaces. See
> >> - :c:type:`media_v2_intf_devnode` for details..
> >> + :c:type:`media_v2_intf_devnode` for details.
> >>
> >>
> >> .. tabularcolumns:: |p{1.6cm}|p{3.2cm}|p{12.7cm}|
> >> @@ -218,7 +218,14 @@ desired arrays with the media graph elements.
> >> - Pad flags, see :ref:`media-pad-flag` for more details.
> >>
> >> * - __u32
> >> - - ``reserved``\ [5]
> >> + - ``index``
> >> + - 0-based pad index. Only valid if ``MEDIA_V2_PAD_HAS_INDEX(media_version)``
> >> + returns true. The ``media_version`` is defined in struct
> >> + :c:type:`media_device_info` and can be retrieved using
> >> + :ref:`MEDIA_IOC_DEVICE_INFO`.
> >
> > "0-based pad index"...
> >
> > what you mean by that? If what you want to say is that it starts
> > with zero, I would use a clearer text, like:
> >
> > "Pad index, starting from zero."
>
> This text is copied from media-ioc-enum-links.rst. I can rephrase it in both
> cases to this text. Although I don't think '0-based' is unclear, this even
> has its own wiki page: https://en.wikipedia.org/wiki/Zero-based_numbering
Well, it took me a while to understand what it was meant. As this is
a spec file, I prefer to use a more verbose word, in order to make
easier for people to understand what is written there.
>
> >
> > It is probably worth saying that the pad index could vary on newer
> > versions of the Kernel.
>
> I'll have to think how to phrase this.
Yeah, sure.
>
> Regards,
>
> Hans
>
> >
> >> +
> >> + * - __u32
> >> + - ``reserved``\ [4]
> >> - Reserved for future extensions. Drivers and applications must set
> >> this array to zero.
> >>
> >
> >
> >
> > Thanks,
> > Mauro
> >
>
Thanks,
Mauro
next prev parent reply other threads:[~2018-06-29 12:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-28 13:11 [PATCHv4 00/10] media/mc: fix inconsistencies Hans Verkuil
2018-06-28 13:11 ` [PATCHv4 01/10] media: add 'index' to struct media_v2_pad Hans Verkuil
2018-06-28 13:12 ` [PATCHv4 02/10] media-ioc-g-topology.rst: document new 'index' field Hans Verkuil
2018-06-29 9:54 ` Mauro Carvalho Chehab
2018-06-29 10:26 ` Hans Verkuil
2018-06-29 12:28 ` Mauro Carvalho Chehab [this message]
2018-06-28 13:12 ` [PATCHv4 03/10] media: add flags field to struct media_v2_entity Hans Verkuil
2018-06-28 13:12 ` [PATCHv4 04/10] media-ioc-g-topology.rst: document new 'flags' field Hans Verkuil
2018-06-28 13:12 ` [PATCHv4 05/10] media: rename MEDIA_ENT_F_DTV_DECODER to MEDIA_ENT_F_DV_DECODER Hans Verkuil
2018-06-28 13:12 ` [PATCHv4 06/10] media.h: add MEDIA_ENT_F_DV_ENCODER Hans Verkuil
2018-06-28 13:12 ` [PATCHv4 07/10] media.h: reorder video en/decoder functions Hans Verkuil
2018-06-28 13:12 ` [PATCHv4 08/10] ad9389b/adv7511: set proper media entity function Hans Verkuil
2018-06-28 13:12 ` [PATCHv4 09/10] adv7180/tvp514x/tvp7002: fix " Hans Verkuil
2018-06-28 13:12 ` [PATCHv4 10/10] media/i2c: add missing entity functions Hans Verkuil
2018-06-29 10:00 ` [PATCHv4 00/10] media/mc: fix inconsistencies Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180629092804.39892128@coco.lan \
--to=mchehab+samsung@kernel.org \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.