From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org
Subject: Re: [RFC 4/4] omap3isp: Use pixel clock from sensor media bus frameformat
Date: Thu, 15 Dec 2011 11:29:48 +0100 [thread overview]
Message-ID: <201112151129.48607.laurent.pinchart@ideasonboard.com> (raw)
In-Reply-To: <1323942635-13058-4-git-send-email-sakari.ailus@iki.fi>
Hi Sakari,
Thanks for the patch.
On Thursday 15 December 2011 10:50:35 Sakari Ailus wrote:
> Configure the ISP based on the pixel clock in media bus frame format.
> Previously the same was configured from the board code.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
> ---
> drivers/media/video/omap3isp/isp.c | 3 +--
> drivers/media/video/omap3isp/isp.h | 3 ++-
> drivers/media/video/omap3isp/ispvideo.c | 3 +++
> 3 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/media/video/omap3isp/isp.c
> b/drivers/media/video/omap3isp/isp.c index b818cac..c9bed37 100644
> --- a/drivers/media/video/omap3isp/isp.c
> +++ b/drivers/media/video/omap3isp/isp.c
> @@ -344,7 +344,7 @@ void omap3isp_configure_bridge(struct isp_device *isp,
> * Set the average pixel clock required by the sensor. The ISP will use
> the * lowest possible memory bandwidth settings compatible with the clock.
> **/
> -static void isp_set_pixel_clock(struct isp_device *isp, unsigned int
> pixelclk) +void omap3isp_set_pixel_clock(struct isp_device *isp, unsigned
> int pixelclk) {
> isp->isp_ccdc.vpcfg.pixelclk = pixelclk;
> }
> @@ -2072,7 +2072,6 @@ static int isp_probe(struct platform_device *pdev)
>
> isp->autoidle = autoidle;
> isp->platform_cb.set_xclk = isp_set_xclk;
> - isp->platform_cb.set_pixel_clock = isp_set_pixel_clock;
>
> mutex_init(&isp->isp_mutex);
> spin_lock_init(&isp->stat_lock);
> diff --git a/drivers/media/video/omap3isp/isp.h
> b/drivers/media/video/omap3isp/isp.h index c5935ae..dd7b303 100644
> --- a/drivers/media/video/omap3isp/isp.h
> +++ b/drivers/media/video/omap3isp/isp.h
> @@ -126,7 +126,6 @@ struct isp_reg {
>
> struct isp_platform_callback {
> u32 (*set_xclk)(struct isp_device *isp, u32 xclk, u8 xclksel);
> - void (*set_pixel_clock)(struct isp_device *isp, unsigned int pixelclk);
> };
>
> /*
> @@ -219,6 +218,8 @@ struct isp_device {
> #define v4l2_dev_to_isp_device(dev) \
> container_of(dev, struct isp_device, v4l2_dev)
>
> +void omap3isp_set_pixel_clock(struct isp_device *isp, unsigned int
> pixelclk); +
> void omap3isp_hist_dma_done(struct isp_device *isp);
>
> void omap3isp_flush(struct isp_device *isp);
> diff --git a/drivers/media/video/omap3isp/ispvideo.c
> b/drivers/media/video/omap3isp/ispvideo.c index cdcf1d0..64f29ac 100644
> --- a/drivers/media/video/omap3isp/ispvideo.c
> +++ b/drivers/media/video/omap3isp/ispvideo.c
> @@ -372,6 +372,9 @@ static int isp_video_validate_pipeline(struct
> isp_pipeline *pipe) if (IS_ERR_VALUE(ret))
> return -EPIPE;
> }
> + omap3isp_set_pixel_clock(isp,
> + fmt_source.format.pixel_clock
> + * 1000);
Similarly to 3/4, I think this belongs to isp_pipeline_enable(), or even
possibly the subdev s_stream operation (same for 3/4 actually).
> }
>
> if (subdev->host_priv) {
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2011-12-15 10:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-15 9:50 [RFC 0/4] OMAP 3 ISP driver improvements Sakari Ailus
2011-12-15 9:50 ` [RFC 1/4] omap3isp: Implement validate_pipeline Sakari Ailus
2011-12-15 10:18 ` Laurent Pinchart
2011-12-15 11:53 ` Sakari Ailus
2011-12-15 9:50 ` [RFC 2/4] omap3isp: Add lane configuration to platform data Sakari Ailus
2011-12-15 9:50 ` [RFC 3/4] omap3isp: Configure CSI-2 phy based on " Sakari Ailus
2011-12-15 10:28 ` Laurent Pinchart
2011-12-15 11:53 ` Sakari Ailus
2011-12-15 12:54 ` Laurent Pinchart
2011-12-15 21:50 ` Sakari Ailus
2011-12-19 0:31 ` Laurent Pinchart
2011-12-19 7:17 ` Sakari Ailus
2011-12-19 10:21 ` query video dev node name using the V4L2 device driver name Zhu, Mingcheng
2011-12-19 10:31 ` Laurent Pinchart
2011-12-19 18:09 ` Zhu, Mingcheng
2011-12-21 0:34 ` Laurent Pinchart
2011-12-15 9:50 ` [RFC 4/4] omap3isp: Use pixel clock from sensor media bus frameformat Sakari Ailus
2011-12-15 10:29 ` Laurent Pinchart [this message]
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=201112151129.48607.laurent.pinchart@ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--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