From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Sakari Ailus <sakari.ailus@iki.fi>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Javier Martinez Canillas <martinez.javier@gmail.com>,
linux-media@vger.kernel.org, Enrico <ebutera@users.berlios.de>,
Gary Thomas <gary@mlbassoc.com>
Subject: Re: [PATCH 3/3] [media] tvp5150: Migrate to media-controller framework and add video format detection
Date: Thu, 06 Oct 2011 10:13:29 -0300 [thread overview]
Message-ID: <4E8DA979.2020703@infradead.org> (raw)
In-Reply-To: <201110061406.13117.hverkuil@xs4all.nl>
Em 06-10-2011 09:06, Hans Verkuil escreveu:
> On Thursday 06 October 2011 13:51:15 Mauro Carvalho Chehab wrote:
>> Em 06-10-2011 04:23, Hans Verkuil escreveu:
>>> On Thursday, October 06, 2011 09:09:26 Hans Verkuil wrote:
>>>> On Thursday, October 06, 2011 02:32:33 Mauro Carvalho Chehab wrote:
>>>>> Also, I couldn't see a consense about input selection on drivers that
>>>>> implement MC: they could either implement S_INPUT, create one V4L
>>>>> device node for each input, or create just one devnode and let
>>>>> userspace (somehow) to discover the valid inputs and set the pipelines
>>>>> via MC/pad.
>>>>
>>>> I don't follow. I haven't seen any MC driver yet that uses S_INPUT as
>>>> that generally doesn't make sense. But for a device like tvp5150 we
>>>> probably need it since the tvp5150 has multiple inputs. This is
>>>> actually an interesting challenge how to implement this as this is
>>>> platform-level knowledge. I suspect that the only way to do this that
>>>> is sufficiently generic is to model this with MC links.
>>
>> $ git grep s_input drivers/media/video/s5p-*
>> drivers/media/video/s5p-fimc/fimc-capture.c: .vidioc_s_input
>> = fimc_cap_s_input,
>>
>> The current code does nothing, but take a look at what was there before
>> changeset 3e002182.
>>
>> From the discussions we had at the pull request that s_input code were
>> being changed/removed, It became clear to me that omap3 drivers took one
>> direction, and s5p drivers took another direction, in terms on how to
>> associate the V4L2 device nodes with the IP blocks.
>
> From what I remember the s5p drivers converged/are converging on the same
> approach as omap3. I don't believe there is any discussion anymore on what is
> the correct method.
With also doesn't support generic apps. Not sure if this is an improvement.
Two drivers fully following the API specs can use different and incompatible
approaches from the POV of an userspace application, as now there are several
different ways of implementing the very same thing, and those SoC drivers
are not doing what was agreed when we decided to add the MC API: properly implement
the V4L2 API, to allow existing applications to use them.
>>>> All these libraries are on Laurent's site. Can we please move it to
>>>> linuxtv?
>>
>> Yes, please.
>>
>>>> Mauro, wouldn't it be a good idea to create a media-utils.git and merge
>>>> v4l-utils, dvb-apps and these new media utils/libs in there?
>>
>> I like that idea. I remember that some dvb people argued against when we
>> first come to it, but I think that merging both is the right thing to do.
>>
>> In any case, libmediactl/libv4l2subdev should, IMHO, be part of the
>> v4l-utils.
>>
>> I suggest to open a separate thread for this subject.
>>
>> For stable distros, merging packages are painful, as their policies may
>> forbid package source removal. So, maybe it makes sense to have something
>> like: "./configure --disable-[feature]" in order to allow them to keep
>> maintaining separate sources for separate parts of a media-utils tree.
>> That also means that a "--disable-libv4l" would force libv4l-aware
>> applications to be built statically linked.
>
> Seems very complicated to me. But I'll start a separate thread for this.
It is not that complicated, but it will require some time for doing that. Autoconf
stripts are capable of doing things like that, but time is required to add
those patches into it.
>
> ...
>
>>>> Whether or not you include a scaler in the default pipeline is optional
>>>> as far as I am concerned.
>>
>> I think that such default pipeline should include a scaler, especially if
>> the sensor(s)/demod(s) on such pipeline don't have it.
>
> That would be the ideal situation, yes, but for now I'd be happy just to get a
> picture out of an SoC :-)
:)
Mauro
next prev parent reply other threads:[~2011-10-06 13:13 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-01 0:33 [PATCH 0/3] [media] tvp5150: Migrate to media-controller framework and add video format detection Javier Martinez Canillas
2011-10-01 0:33 ` [PATCH 1/3] [media] tvp5150: Add constants for PAL and NTSC video standards Javier Martinez Canillas
2011-10-01 0:33 ` [PATCH 2/3] [media] tvp5150: Add video format registers configuration values Javier Martinez Canillas
2011-10-01 0:33 ` [PATCH 3/3] [media] tvp5150: Migrate to media-controller framework and add video format detection Javier Martinez Canillas
2011-10-02 16:30 ` Sakari Ailus
2011-10-02 21:18 ` Javier Martinez Canillas
2011-10-03 2:17 ` Mauro Carvalho Chehab
2011-10-03 6:30 ` Hans Verkuil
2011-10-03 7:11 ` Javier Martinez Canillas
2011-10-03 18:58 ` Mauro Carvalho Chehab
2011-10-03 8:39 ` Laurent Pinchart
2011-10-03 9:53 ` Javier Martinez Canillas
2011-10-03 11:53 ` Laurent Pinchart
2011-10-03 19:16 ` Mauro Carvalho Chehab
2011-10-03 21:44 ` Laurent Pinchart
2011-10-03 21:56 ` Mauro Carvalho Chehab
2011-10-03 22:37 ` Javier Martinez Canillas
2011-10-04 5:31 ` Mauro Carvalho Chehab
2011-10-04 7:03 ` Hans Verkuil
2011-10-04 10:35 ` Mauro Carvalho Chehab
2011-10-05 20:54 ` Laurent Pinchart
2011-10-05 21:48 ` Mauro Carvalho Chehab
2011-10-05 22:30 ` Javier Martinez Canillas
2011-10-04 7:34 ` Javier Martinez Canillas
2011-10-05 20:21 ` Laurent Pinchart
2011-10-05 20:08 ` Laurent Pinchart
2011-10-05 21:41 ` Mauro Carvalho Chehab
2011-10-05 23:14 ` Sakari Ailus
2011-10-06 0:32 ` Mauro Carvalho Chehab
2011-10-06 7:09 ` Hans Verkuil
2011-10-06 7:23 ` Hans Verkuil
2011-10-06 11:51 ` Mauro Carvalho Chehab
2011-10-06 12:06 ` Hans Verkuil
2011-10-06 13:13 ` Mauro Carvalho Chehab [this message]
2011-10-06 13:31 ` Sylwester Nawrocki
2011-10-03 19:06 ` Mauro Carvalho Chehab
2011-10-03 21:39 ` Laurent Pinchart
2011-10-05 23:20 ` Sakari Ailus
2011-10-03 18:53 ` Mauro Carvalho Chehab
2011-10-03 19:01 ` Sakari Ailus
2011-10-03 19:36 ` Mauro Carvalho Chehab
2011-10-05 23:41 ` Sakari Ailus
2011-10-06 1:41 ` Mauro Carvalho Chehab
2011-10-06 12:02 ` Laurent Pinchart
2011-10-03 10:26 ` Sakari Ailus
2011-10-01 13:34 ` [PATCH 0/3] " Gary Thomas
2011-10-01 15:55 ` Javier Martinez Canillas
2011-10-01 16:39 ` Enrico
2011-10-01 17:27 ` Javier Martinez Canillas
2011-10-01 17:46 ` Enrico
2011-10-02 13:08 ` Javier Martinez Canillas
2011-10-03 10:33 ` Gary Thomas
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=4E8DA979.2020703@infradead.org \
--to=mchehab@infradead.org \
--cc=ebutera@users.berlios.de \
--cc=gary@mlbassoc.com \
--cc=hverkuil@xs4all.nl \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=martinez.javier@gmail.com \
--cc=sakari.ailus@iki.fi \
/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