[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170313084215.7eb6a054@vento.lan>
Date: Mon, 13 Mar 2017 08:42:15 -0300
From: Mauro Carvalho Chehab <mchehab@...pensource.com>
To: Russell King - ARM Linux <linux@...linux.org.uk>
Cc: Hans Verkuil <hverkuil@...all.nl>,
Steve Longerbeam <slongerbeam@...il.com>, mark.rutland@....com,
andrew-ct.chen@...iatek.com, minghsiu.tsai@...iatek.com,
nick@...anahar.org, songjun.wu@...rochip.com, pavel@....cz,
shuah@...nel.org, devel@...verdev.osuosl.org,
markus.heiser@...marIT.de,
laurent.pinchart+renesas@...asonboard.com, robert.jarzmik@...e.fr,
geert@...ux-m68k.org, p.zabel@...gutronix.de,
linux-media@...r.kernel.org, devicetree@...r.kernel.org,
kernel@...gutronix.de, arnd@...db.de, tiffany.lin@...iatek.com,
bparrot@...com, robh+dt@...nel.org, horms+renesas@...ge.net.au,
mchehab@...nel.org, linux-arm-kernel@...ts.infradead.org,
niklas.soderlund+renesas@...natech.se, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org, Sakari Ailus <sakari.ailus@....fi>,
jean-christophe.trotin@...com, sakari.ailus@...ux.intel.com,
fabio.estevam@....com, shawnguo@...nel.org,
sudipm.mukherjee@...il.com
Subject: Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit
controls from a pipeline
Em Mon, 13 Mar 2017 10:58:42 +0000
Russell King - ARM Linux <linux@...linux.org.uk> escreveu:
> On Mon, Mar 13, 2017 at 11:44:50AM +0100, Hans Verkuil wrote:
> > On 03/12/2017 06:56 PM, Steve Longerbeam wrote:
> > > In summary, I do like the media framework, it's a good abstraction of
> > > hardware pipelines. It does require a lot of system level knowledge to
> > > configure, but as I said that is a matter of good documentation.
> >
> > And the reason we went into this direction is that the end-users that use
> > these SoCs with complex pipelines actually *need* this functionality. Which
> > is also part of the reason why work on improved userspace support gets
> > little attention: they don't need to have a plugin that allows generic V4L2
> > applications to work (at least with simple scenarios).
>
> If you stop inheriting controls from the capture sensor to the v4l2
> capture device, then this breaks - generic v4l2 applications are not
> going to be able to show the controls, because they're not visible at
> the v4l2 capture device anymore. They're only visible through the
> subdev interfaces, which these generic applications know nothing about.
True. That's why IMHO, the best is to do control inheritance when
there are use cases for generic applications and is possible for
the driver to do it (e. g. when the pipeline is not too complex
to prevent it to work).
As Hans said, for the drivers currently upstreamed at drivers/media,
there are currently very little interest on running generic apps
there, as they're meant to be used inside embedded hardware using
specialized applications.
I don't have myself any hardware with i.MX6. Yet, I believe that
a low cost board like SolidRun Hummingboard - with comes with a
CSI interface compatible with RPi camera modules - will likely
attract users who need to run generic applications on their
devices.
So, I believe that it makes sense for i.MX6 driver to inherit
controls from video devnode.
Thanks,
Mauro
Powered by blists - more mailing lists