From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org, hverkuil@xs4all.nl,
snjw23@gmail.com, t.stanislaws@samsung.com
Subject: Re: [PATCH v4 7/7] v4l: Correct conflicting V4L2 subdev selection API documentation
Date: Fri, 15 Jun 2012 19:28:37 +0200 [thread overview]
Message-ID: <1969837.7mioik4VZv@avalon> (raw)
In-Reply-To: <20120615153150.GJ12505@valkosipuli.retiisi.org.uk>
Hi Sakari,
On Friday 15 June 2012 18:31:50 Sakari Ailus wrote:
> On Fri, Jun 15, 2012 at 04:14:21PM +0200, Laurent Pinchart wrote:
> > On Friday 15 June 2012 16:44:40 Sakari Ailus wrote:
> > > The API reference documents that the KEEP_CONFIG flag tells the
> > > configuration should not be propatgated by the driver whereas the
> > > interface
> >
> > s/propatgated/propagated/
> >
> > > documentation (dev-subdev.xml) categorically prohibited any changes to
> > > the
> > > rest of the pipeline. The latter makes no sense, since it would severely
> > > limit the usefulness of the KEEP_CONFIG flag.
> > >
> > > Correct the documentation in dev-subddev.xml.
> > >
> > > Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
> > > ---
> > >
> > > Documentation/DocBook/media/v4l/dev-subdev.xml | 10 +++++-----
> > > 1 files changed, 5 insertions(+), 5 deletions(-)
> > >
> > > diff --git a/Documentation/DocBook/media/v4l/dev-subdev.xml
> > > b/Documentation/DocBook/media/v4l/dev-subdev.xml index 8c44b3f..95ebf87
> > > 100644
> > > --- a/Documentation/DocBook/media/v4l/dev-subdev.xml
> > > +++ b/Documentation/DocBook/media/v4l/dev-subdev.xml
> > > @@ -361,11 +361,11 @@
> > >
> > > performed by the user: the changes made will be propagated to
> > > any subsequent stages. If this behaviour is not desired, the
> > > user must set
> > >
> > > - <constant>V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG</constant> flag. This
> > > - flag causes no propagation of the changes are allowed in any
> > > - circumstances. This may also cause the accessed rectangle to be
> > > - adjusted by the driver, depending on the properties of the
> > > - underlying hardware.</para>
> > > + <constant>V4L2_SUBDEV_SEL_FLAG_KEEP_CONFIG</constant> flag,
> >
> > This should be V4L2_SEL_FLAG_KEEP_CONFIG.
> >
> > > + which tells the driver to make minimum changes to the rest of
> > > + the subdev's configuration.
> >
> > I'm not sure to like this. "minimum changes" is not clearly defined. Isn't
> > the point of the KEEP_CONFIG flag is to avoid propagating *any* change
> > down the pipeline inside the subdev ?
>
> Yes, but the hardware may have restrictions that essentially makes the
> configuration static is absolutely no changes are allowed elsewhere. In
> those cases it should be possible to allow changes elsewhere.
>
> Or do you think we should just completely disallow them? Would that work
> e.g. for the OMAP 3 ISP resizer?
I think the point of KEEP_CONFIG was to disallow changes completely, to make
it possible to change the digital zoom factor during streaming for instance.
The OMAP3 ISP resizer should accomodate that. If we allow changes under "some
circumstances" applications won't be able to rely on the flag.
Tomasz, Sylwester, what's your opinion on this ?
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2012-06-15 17:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-15 13:44 [PATCH v4 0/7] V4L2 and V4L2 subdev selection target and flag changes Sakari Ailus
2012-06-15 13:44 ` [PATCH v4 1/7] V4L: Remove "_ACTIVE" from the selection target name definitions Sakari Ailus
2012-06-15 13:44 ` [PATCH v4 2/7] v4l: Remove "_ACTUAL" from subdev selection API target definition names Sakari Ailus
2012-06-15 13:55 ` Laurent Pinchart
2012-06-15 17:30 ` Sakari Ailus
2012-06-15 13:44 ` [PATCH v4 3/7] v4l: Unify selection targets across V4L2 and V4L2 subdev interfaces Sakari Ailus
2012-06-15 13:44 ` [PATCH v4 4/7] v4l: Common documentation for selection targets Sakari Ailus
2012-06-15 13:44 ` [PATCH v4 5/7] v4l: Unify selection flags Sakari Ailus
2012-06-15 13:44 ` [PATCH v4 6/7] v4l: Unify selection flags documentation Sakari Ailus
2012-06-15 13:44 ` [PATCH v4 7/7] v4l: Correct conflicting V4L2 subdev selection API documentation Sakari Ailus
2012-06-15 14:14 ` Laurent Pinchart
2012-06-15 15:31 ` Sakari Ailus
2012-06-15 17:28 ` Laurent Pinchart [this message]
2012-06-15 17:48 ` Sakari Ailus
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=1969837.7mioik4VZv@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@iki.fi \
--cc=snjw23@gmail.com \
--cc=t.stanislaws@samsung.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;
as well as URLs for NNTP newsgroup(s).