From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Linux Doc Mailing List <linux-doc@vger.kernel.org>,
"mchehab@s-opensource.com" <mchehab@s-opensource.com>,
Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH RFC v2] media: open.rst: document devnode-centric and mc-centric types
Date: Fri, 25 Aug 2017 06:35:16 -0300 [thread overview]
Message-ID: <20170825063516.2eaf4a53@vento.lan> (raw)
In-Reply-To: <fc2457ae-b4de-67aa-76ca-765f607d7d8d@xs4all.nl>
Em Fri, 25 Aug 2017 10:59:40 +0200
Hans Verkuil <hverkuil@xs4all.nl> escreveu:
> On 24/08/17 14:07, Mauro Carvalho Chehab wrote:
> > From: "mchehab@s-opensource.com" <mchehab@s-opensource.com>
> >
> > When we added support for omap3, back in 2010, we added a new
> > type of V4L2 devices that aren't fully controlled via the V4L2
> > device node. Yet, we never made it clear, at the V4L2 spec,
> > about the differences between both types.
> >
> > Let's document them with the current implementation.
> >
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
> > Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
> > ---
> > Documentation/media/uapi/v4l/open.rst | 47 +++++++++++++++++++++++++++++++++++
> > 1 file changed, 47 insertions(+)
> >
> > diff --git a/Documentation/media/uapi/v4l/open.rst b/Documentation/media/uapi/v4l/open.rst
> > index afd116edb40d..cf522d9bb53c 100644
> > --- a/Documentation/media/uapi/v4l/open.rst
> > +++ b/Documentation/media/uapi/v4l/open.rst
> > @@ -6,6 +6,53 @@
> > Opening and Closing Devices
> > ***************************
> >
> > +Types of V4L2 device control
>
> I don't like calling this 'device control'. Mostly because the word 'device' can
> mean almost anything and is very overused.
>
> How about "hardware control"?
Ok.
>
> > +============================
> > +
> > +V4L2 devices are usually complex: they're implemented via a main driver and
>
> they're -> they are
>
> (contractions like "they're" aren't normally used in formal texts)
>
> > +often several additional drivers. The main driver always exposes one or
> > +more **V4L2 device** devnodes (see :ref:`v4l2_device_naming`). The other
> > +devices are called **V4L2 sub-devices**. They are usually controlled via a
> > +serial bus (I2C or SMBus).
> > +
> > +When V4L2 started, there was only one type of device control. The entire
>
> started -> was originally designed
>
> > +device was controlled via the **V4L2 device nodes**. We refer to this
> > +kind of control as **V4L2 device-centric** (or, simply, **device-centric**).
>
> For the same reason as mentioned above I prefer "device node-centric" or
> "devnode-centric". "device" is too ambiguous.
As I wrote to Sakari, I'm changing this to:
We refer to this kind of control as **V4L2 device node centric**
(or, simply, **vdev-centric**).
I guess that this satisfies both your and Sakari's comments.
> > +
> > +Since the end of 2010, a new type of V4L2 device control was added in order
> > +to support complex devices that are common on embedded systems. Those
>
> on -> for
>
> > +devices are controlled mainly via the media controller and sub-devices.
> > +So, they're called: **media controller centric** (or, simply,
> > +"**mc-centric**").
> > +
> > +On **device-centric** control, the device and their corresponding hardware
>
> On -> For
>
> > +pipelines are controlled via the **V4L2 device** node. They may optionally
> > +expose the hardware pipelines via the
> > +:ref:`media controller API <media_controller>`.
> > +
> > +On a **mc-centric**, before using the V4L2 device, it is required to
>
> "For **mc-centric** control"
>
> > +set the hardware pipelines via the
> > +:ref:`media controller API <media_controller>`. On those devices, the
>
> On -> For
>
> > +sub-devices' configuration can be controlled via the
>
> can be -> is
When subdev API was added, it was optional for MC-centric devices.
We used to have a bunch of such devices. Not sure if all MC-centric
devices now use subdev API. That's why I used "can".
> > +:ref:`sub-device API <subdev>`, with creates one device node per sub device.
> > +
> > +In summary, on **mc-centric** devices:
>
> on -> for
>
> > +
> > +- The **V4L2 device** node is mainly responsible for controlling the
> > + streaming features;
>
> I think "mainly" can be dropped.
>
> > +- The **media controller device** is responsible to setup the pipelines
> > + and image settings (like size and format);
> > +- The **V4L2 sub-devices** are responsible for sub-device
> > + specific settings.
> > +
> > +.. note::
> > +
> > + It is forbidden for **device-centric** devices to expose V4L2
> > + sub-devices via :ref:`sub-device API <subdev>`, although this
> > + might change in the future.
>
> We discussed this on irc yesterday, so this has to be tweaked a bit.
>
> > +
> > +
> > +.. _v4l2_device_naming:
> >
> > Device Naming
> > =============
> >
>
> Regards,
>
> Hans
--
Thanks,
Mauro
next prev parent reply other threads:[~2017-08-25 9:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 12:07 [PATCH RFC v2] media: open.rst: document devnode-centric and mc-centric types Mauro Carvalho Chehab
2017-08-24 15:07 ` Sakari Ailus
2017-08-25 9:35 ` Mauro Carvalho Chehab
2017-08-25 8:59 ` Hans Verkuil
2017-08-25 9:35 ` Mauro Carvalho Chehab [this message]
2017-08-25 11:51 ` Laurent Pinchart
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=20170825063516.2eaf4a53@vento.lan \
--to=mchehab@osg.samsung.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-doc@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=mchehab@s-opensource.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox