From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Javier Martinez Canillas <martinez.javier@gmail.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Hans Verkuil <hverkuil@xs4all.nl>,
Sakari Ailus <sakari.ailus@iki.fi>,
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: Mon, 03 Oct 2011 16:06:14 -0300 [thread overview]
Message-ID: <4E8A07A6.3030600@infradead.org> (raw)
In-Reply-To: <CAAwP0s0bTcUPvkVT-aB2EKskS_60CdW4P3orQLvSJMMkEWBpqw@mail.gmail.com>
Em 03-10-2011 06:53, Javier Martinez Canillas escreveu:
> On Mon, Oct 3, 2011 at 10:39 AM, Laurent Pinchart
> <laurent.pinchart@ideasonboard.com> wrote:
>> Hi Hans,
>>
>> On Monday 03 October 2011 08:30:25 Hans Verkuil wrote:
>>> On Monday, October 03, 2011 04:17:06 Mauro Carvalho Chehab wrote:
>>>> Em 02-10-2011 18:18, Javier Martinez Canillas escreveu:
>>>>> On Sun, Oct 2, 2011 at 6:30 PM, Sakari Ailus wrote:
>>
>> [snip]
>>
>>>>>>> static const struct v4l2_subdev_video_ops tvp5150_video_ops = {
>>>>>>>
>>>>>>> .s_routing = tvp5150_s_routing,
>>>>>>>
>>>>>>> + .s_stream = tvp515x_s_stream,
>>>>>>> + .enum_mbus_fmt = tvp515x_enum_mbus_fmt,
>>>>>>> + .g_mbus_fmt = tvp515x_mbus_fmt,
>>>>>>> + .try_mbus_fmt = tvp515x_mbus_fmt,
>>>>>>> + .s_mbus_fmt = tvp515x_mbus_fmt,
>>>>>>> + .g_parm = tvp515x_g_parm,
>>>>>>> + .s_parm = tvp515x_s_parm,
>>>>>>> + .s_std_output = tvp5150_s_std,
>>>>>>
>>>>>> Do we really need both video and pad format ops?
>>>>>
>>>>> Good question, I don't know. Can this device be used as a standalone
>>>>> v4l2 device? Or is supposed to always be a part of a video streaming
>>>>> pipeline as a sub-device with a source pad? Sorry if my questions are
>>>>> silly but as I stated before, I'm a newbie with v4l2 and MCF.
>>>>
>>>> The tvp5150 driver is used on some em28xx devices. It is nice to add
>>>> auto-detection code to the driver, but converting it to the media bus
>>>> should be done with enough care to not break support for the existing
>>>> devices.
>>>
>>> So in other words, the tvp5150 driver needs both pad and non-pad ops.
>>> Eventually all non-pad variants in subdev drivers should be replaced by the
>>> pad variants so you don't have duplication of ops. But that will take a lot
>>> more work.
>>
>> What about replacing direct calls to non-pad operations with core V4L2
>> functions that would use the subdev non-pad operation if available, and
>> emulate if with the pad operation otherwise ? I think this would ease the
>> transition, as subdev drivers could be ported to pad operations without
>> worrying about the bridges that use them, and bridge drivers could be switched
>> to the new wrappers with a simple search and replace.
>
> Ok, that is a good solution. I'll do that. Implement V4L2 core
> operations as wrappers of the subdev pad operations.
As I said, I can't see _any_ reason why setting a format would be needed
at pad level. Patches shouldn't increase driver/core and userspace complexity
for nothing.
Regards,
Mauro
next prev parent reply other threads:[~2011-10-03 19:06 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
2011-10-06 13:31 ` Sylwester Nawrocki
2011-10-03 19:06 ` Mauro Carvalho Chehab [this message]
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=4E8A07A6.3030600@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