Linux Media Controller development
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH 1/8] soc_camera: Use soc_camera_device::sizeimage to compute buffer sizes
Date: Wed, 09 May 2012 15:54:18 +0200	[thread overview]
Message-ID: <4595836.oa9lg8deDZ@avalon> (raw)
In-Reply-To: <Pine.LNX.4.64.1204242359420.21239@axis700.grange>

Hi Guennadi,

On Wednesday 25 April 2012 00:06:03 Guennadi Liakhovetski wrote:
> Hi Laurent
> 
> Sorry for a slightly delayed reply;-)

So slightly :-)

> On Thu, 26 Jan 2012, Laurent Pinchart wrote:
> 
> [snip]
> 
> > > > diff --git a/drivers/media/video/sh_mobile_ceu_camera.c
> > > > b/drivers/media/video/sh_mobile_ceu_camera.c index c51decf..f4eb9e1
> > > > 100644
> > > > --- a/drivers/media/video/sh_mobile_ceu_camera.c
> > > > +++ b/drivers/media/video/sh_mobile_ceu_camera.c
> 
> [snip]
> 
> > > Looks like sh_mobile_ceu_set_rect() can also be simplified, since there
> > > bytes_per_line is calculated for data-fetch mode, for which the
> > > ->bytesperline can also be used?
> > 
> > Is sh_mobile_ceu_set_rect() guaranteed to be called after try_fmt(), with
> > the ->bytesperline value set to the correct value for the current format
> > ?
>
> I think it is, yes. soc_camera.c always configures the pipeline upon the
> first .open() call by calling soc_camera_set_fmt(), at which point
> ->bytesperline is set too. Also, just to avoid confusion - above you meant
> set_fmt(), not try_fmt(), right? *try* are not supposed to set anything.

Yes, I meant set_fmt(), sorry.

I've just checked the code paths in which sh_mobile_ceu_set_rect() is called, 
and I don't see any issue there. We can thus simplify the data-fetch mode code 
in sh_mobile_ceu_set_rect().

> So, if you agree, either you can do a patch 11/9 or I can do it myself. Or
> you could do a v3 of just one patch 3/9.

I'd rather avoid a v3 if possible :-) If you could add a 11/9 patch that would 
be great.

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2012-05-09 13:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-25 15:12 [PATCH 0/8] soc-camera: Add support for configurable line stride Laurent Pinchart
2012-01-25 15:12 ` [PATCH 1/8] soc_camera: Use soc_camera_device::sizeimage to compute buffer sizes Laurent Pinchart
2012-01-26 15:21   ` Guennadi Liakhovetski
2012-01-26 20:18     ` Laurent Pinchart
2012-04-24 22:06       ` Guennadi Liakhovetski
2012-05-09 13:54         ` Laurent Pinchart [this message]
2012-01-25 15:12 ` [PATCH 2/8] soc_camera: Use soc_camera_device::bytesperline to compute line sizes Laurent Pinchart
2012-01-26 15:28   ` Guennadi Liakhovetski
2012-01-25 15:12 ` [PATCH 3/8] soc-camera: Add plane layout information to struct soc_mbus_pixelfmt Laurent Pinchart
2012-01-26 15:38   ` Guennadi Liakhovetski
2012-01-26 19:26     ` Laurent Pinchart
2012-01-26 16:01   ` Guennadi Liakhovetski
2012-01-26 19:27     ` Laurent Pinchart
2012-01-25 15:12 ` [PATCH 4/8] soc-camera: Fix bytes per line computation for planar formats Laurent Pinchart
2012-01-25 15:12 ` [PATCH 5/8] soc-camera: Add soc_mbus_image_size Laurent Pinchart
2012-01-26 15:59   ` Guennadi Liakhovetski
2012-01-26 18:18     ` Laurent Pinchart
2012-01-25 15:12 ` [PATCH 6/8] soc-camera: Honor user-requested bytesperline and sizeimage Laurent Pinchart
2012-01-25 15:12 ` [PATCH 7/8] soc-camera: Support user-configurable line stride Laurent Pinchart
2012-01-25 15:12 ` [PATCH 8/8] sh_mobile_ceu_camera: " 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=4595836.oa9lg8deDZ@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=linux-media@vger.kernel.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