All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@iki.fi>
To: Alex Gershgorin <alexg@meprolight.com>
Cc: 'Laurent Pinchart' <laurent.pinchart@ideasonboard.com>,
	Michael Jones <michael.jones@matrix-vision.de>,
	"'linux-media@vger.kernel.org'" <linux-media@vger.kernel.org>,
	"'agersh@rambler.ru'" <agersh@rambler.ru>
Subject: Re: FW: OMAP 3 ISP
Date: Thu, 19 May 2011 18:32:32 +0300	[thread overview]
Message-ID: <20110519153232.GB1768@valkosipuli.localdomain> (raw)
In-Reply-To: <4875438356E7CA4A8F2145FCD3E61C0B15D3557D3A@MEP-EXCH.meprolight.com>

On Thu, May 19, 2011 at 06:13:28PM +0300, Alex Gershgorin wrote:
> Hi Michael,
> 
> I liked the idea of a driver that returns fixed format and frame size.
> It certainly could solve my problem.
> On the other hand, from your correspondence to Laurent, I realized that it was already done work on improving V4L2 subdevs.
> Michael patch of which you speak will help solve my problem without writing a special driver?
> Advise in what direction to go in my case?

Hi Alex,

You still need a driver, but with the patches you can easily implement that
as a driver for a platform device. The driver itself wouldn't have to do
much more than to return a fixed format and size when queried.

> 
> Regards,
> 
> Alex Gershgorin
> 
> 
> 
> -----Original Message-----
> From: Laurent Pinchart [mailto:laurent.pinchart@ideasonboard.com]
> Sent: Thursday, May 19, 2011 5:27 PM
> To: Michael Jones
> Cc: Alex Gershgorin; 'linux-media@vger.kernel.org'; 'sakari.ailus@iki.fi'; 'agersh@rambler.ru'
> Subject: Re: FW: OMAP 3 ISP
> 
> Hi Michael,
> 
> On Thursday 19 May 2011 16:24:29 Michael Jones wrote:
> > On 05/19/2011 03:56 PM, Laurent Pinchart wrote:
> > > On Thursday 19 May 2011 15:44:18 Michael Jones wrote:
> > >> On 05/19/2011 03:02 PM, Laurent Pinchart wrote:
> > >>> On Thursday 19 May 2011 14:51:16 Alex Gershgorin wrote:
> > >>>> Thanks Laurent,
> > >>>>
> > >>>> My video source is not the video camera and performs many other
> > >>>> functions. For this purpose I have RS232 port.
> > >>>> As for the video, it runs continuously and is not subject to control
> > >>>> except for the power supply.
> > >>>
> > >>> As a quick hack, you can create an I2C driver for your video source
> > >>> that doesn't access the device and just returns fixed format and frame
> > >>> size.
> > >>>
> > >>> The correct fix is to implement support for platform subdevs in the
> > >>> V4L2 core.
> > >>
> > >> I recently implemented support for platform V4L2 subdevs.  Now that it
> > >> sounds like others would be interested in this, I will try to polish it
> > >> up and submit the patch for review in the next week or so.
> > >
> > > Great. This has been discussed during the V4L meeting in Warsaw, here are
> > > a couple of pointers, to make sure we're going in the same direction.
> > >
> > > Bridge drivers should not care whether the subdev sits on an I2C, SPI,
> > > platform or other bus. To achieve that, an abstraction layer must be
> > > provided by the V4L2 core. Here's what I got in one of my trees:
> > >
> > > /* V4L2 core */
> > >
> > > struct v4l2_subdev_i2c_board_info {
> > >
> > >         struct i2c_board_info *board_info;
> > >         int i2c_adapter_id;
> > >
> > > };
> > >
> > > enum v4l2_subdev_bus_type {
> > >
> > >         V4L2_SUBDEV_BUS_TYPE_NONE,
> > >         V4L2_SUBDEV_BUS_TYPE_I2C,
> > >         V4L2_SUBDEV_BUS_TYPE_SPI,
> > >
> > > };
> > >
> > > struct v4l2_subdev_board_info {
> > >
> > >         enum v4l2_subdev_bus_type type;
> > >         union {
> > >
> > >                 struct v4l2_subdev_i2c_board_info i2c;
> > >                 struct spi_board_info *spi;
> > >
> > >         } info;
> > >
> > > };
> > >
> > > /* OMAP3 ISP  */
> > >
> > > struct isp_v4l2_subdevs_group {
> > >
> > >         struct v4l2_subdev_board_info *subdevs;
> > >         enum isp_interface_type interface;
> > >         union {
> > >
> > >                 struct isp_parallel_platform_data parallel;
> > >                 struct isp_ccp2_platform_data ccp2;
> > >                 struct isp_csi2_platform_data csi2;
> > >
> > >         } bus; /* gcc < 4.6.0 chokes on anonymous union initializers */
> > >
> > > };
> > >
> > > struct isp_platform_data {
> > >
> > >         struct isp_v4l2_subdevs_group *subdevs;
> > >
> > > };
> > >
> > > The V4L2 core would need to provide a function to register a subdev based
> > > on a v4l2_subdev_board_info structure.
> > >
> > > Is that in line with what you've done ? I can provide a patch that
> > > implements this for I2C and SPI, and let you add platform subdevs if
> > > that can help you.
> >
> > Hi Laurent,
> >
> > Yes, that looks very similar to what I've done.  I was going to submit
> > SPI support, too, which I also have, but it sounds like you've already
> > done that?  I'm currently still using a 2.6.38 tree based on an older
> > media branch of yours, so I'm not familiar with any new changes there yet.
> >
> > I just need to know what I should use as my baseline.
> 
> Please use mainline, now that the OMAP3 ISP driver has been merged :-)
> 
> > I don't need to step on toes and submit something you've already done, so
> > maybe you want to point me to a branch with the SPI stuff, and I'll just put
> > the platform stuff on top of it?
> 
> I'll send the SPI support patches to linux-media, as they haven't been
> reviewed publicly yet.
> 
> --
> Regards,
> 
> Laurent Pinchart
> 
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 6135 (20110519) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
> 
> 
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 6135 (20110519) __________
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 

-- 
Sakari Ailus
sakari dot ailus at iki dot fi

  reply	other threads:[~2011-05-19 15:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 11:36 FW: FW: OMAP 3 ISP Alex Gershgorin
2011-05-19 12:51 ` Alex Gershgorin
2011-05-19 13:02   ` Laurent Pinchart
2011-05-19 13:44     ` Michael Jones
2011-05-19 13:56       ` Laurent Pinchart
2011-05-19 14:24         ` Michael Jones
2011-05-19 14:27           ` Laurent Pinchart
2011-05-19 15:13             ` Alex Gershgorin
2011-05-19 15:32               ` Sakari Ailus [this message]
2011-05-24 14:11                 ` Alex Gershgorin
2011-05-25  7:22                   ` Laurent Pinchart
2011-05-25  9:58                     ` Alex Gershgorin
2011-05-25 10:01                       ` Laurent Pinchart
2011-05-25 10:54                         ` Alex Gershgorin
2011-06-28  7:47                         ` Alex Gershgorin
2011-06-28 22:35                           ` Laurent Pinchart
     [not found] <4875438356E7CA4A8F2145FCD3E61C0B2A5D211E42@MEP-EXCH.meprolight.com>
2011-06-29 11:32 ` Laurent Pinchart
     [not found] <4875438356E7CA4A8F2145FCD3E61C0B2A5D211E43@MEP-EXCH.meprolight.com>
2011-06-29 15:55 ` Laurent Pinchart
2011-06-29 16:16   ` Alex Gershgorin
2011-06-29 16:34   ` Alex Gershgorin
     [not found] <B9D34818-CE30-4125-997B-71C50CFC4F0D@yahoo.com>
2012-05-29  7:08 ` Alex Gershgorin
2012-05-29  8:15   ` jean-philippe francois
     [not found]     ` <CA+2YH7s9F+4WQuQ9zioCetpJ5f8_3pihf5wcNVp5SjLuiq3k3g@mail.gmail.com>
2012-05-29 10:22       ` Laurent Pinchart

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=20110519153232.GB1768@valkosipuli.localdomain \
    --to=sakari.ailus@iki.fi \
    --cc=agersh@rambler.ru \
    --cc=alexg@meprolight.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=michael.jones@matrix-vision.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.