From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
Boris Brezillon <boris.brezillon@collabora.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hans.verkuil@cisco.com>,
Sakari Ailus <sakari.ailus@iki.fi>,
linux-media@vger.kernel.org, kernel@collabora.com,
Tomasz Figa <tfiga@chromium.org>,
Hirokazu Honda <hiroh@chromium.org>,
Nicolas Dufresne <nicolas@ndufresne.ca>
Subject: Re: [PATCH v3 1/2] media: exynos4-is: Properly report _MPLANE caps
Date: Fri, 19 Apr 2019 01:35:18 +0300 [thread overview]
Message-ID: <20190418223518.GI4794@pendragon.ideasonboard.com> (raw)
In-Reply-To: <512d5fd1-e4d3-c074-1b13-886747e8db97@samsung.com>
Hi Sylwester,
On Fri, Apr 12, 2019 at 01:14:38PM +0200, Sylwester Nawrocki wrote:
> On 4/12/19 12:32, Hans Verkuil wrote:
> > On 4/12/19 12:16 PM, Sylwester Nawrocki wrote:
> >> On 4/12/19 11:20, Boris Brezillon wrote:
> >>> The fimc-isp-video.c and fimc-lite.c were missing the
> >>> V4L2_CAP_VIDEO_CAPTURE_MPLANE flag when reporting device caps.
> >>
> >> Th omission was intentional, as these video nodes cannot be used
> >> by "standard" V4L2 capture applications. Some sub-devices need to
> >> be configured first in order to use these video nodes. It was
> >> agreed to not set these capabilities in the driver, instead user
> >> space library, e.g. libv4l2 with driver-specific plugin handling
> >> the media controller and v4l2 subdev calls would set the capability
> >> for the applications. Has something changed?
> >
> > I remember that this was discussed, but nobody actually followed that
> > guideline. Just do:
> >
> > git grep -l V4L2_CAP_VIDEO_CAPTURE drivers/media/platform
> >
> > It really doesn't make sense to leave it out since userspace has to know if
> > it is single or multiplanar, and if you don't set this capability, then how
> > can it tell?
>
> Presumably you can't by only querying the video device, this would require
> MC and driver-specific user space.
>
> > I always thought we need a separate CAP or some other way of signaling this,
> > but the few times I proposed something it was always shot down.
> >
> > So to be consistent with the other MC drivers you should set this MPLANE cap
> > as well in the fimc driver.
>
> I'm not against the $subject patch, rather the opposite. Especially if
> it is a part of reasonable API updates. But removing the capabilities was
> actually a requirement to get the driver merged, not a guideline.
> And was rather painful then, now the driver is probably not in use any more
> so I don't really mind.
As this driver is quite old I assume there's little interest in
investing in it, but is there any chance Samsung would be interested in
contributing to libcamera for newer generations ? :-)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2019-04-18 22:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20190412092035epcas1p43412936a0fba75b1c548904e785fe23d@epcas1p4.samsung.com>
2019-04-12 9:20 ` [PATCH v3 1/2] media: exynos4-is: Properly report _MPLANE caps Boris Brezillon
2019-04-12 9:20 ` [PATCH v3 2/2] media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap,out}_mplane Boris Brezillon
2019-04-12 9:31 ` [PATCH v3 1/2] media: exynos4-is: Properly report _MPLANE caps Hans Verkuil
2019-04-12 10:16 ` Sylwester Nawrocki
2019-04-12 10:24 ` Boris Brezillon
2019-04-12 10:32 ` Hans Verkuil
2019-04-12 11:14 ` Sylwester Nawrocki
2019-04-18 22:35 ` Laurent Pinchart [this message]
2019-04-30 12:29 ` Sylwester Nawrocki
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=20190418223518.GI4794@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=boris.brezillon@collabora.com \
--cc=hans.verkuil@cisco.com \
--cc=hiroh@chromium.org \
--cc=hverkuil@xs4all.nl \
--cc=kernel@collabora.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=nicolas@ndufresne.ca \
--cc=s.nawrocki@samsung.com \
--cc=sakari.ailus@iki.fi \
--cc=tfiga@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox