This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] omap3isp: Add set performance callback in isp platform data
Author:  Laurent Pinchart <[email protected]>
Date:    Thu Mar 3 10:05:22 2011 -0300

Replace the omap_pm_set_min_bus_tput() with a callback to board code.
This makes the omap3isp driver compilable as a module, and lets board
code manage OMAP PM details depending on board requirements.

Signed-off-by: Stanimir Varbanov <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/video/omap3isp/isp.h      |    1 +
 drivers/media/video/omap3isp/ispvideo.c |   21 ++++++---------------
 2 files changed, 7 insertions(+), 15 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=efe2a466ee50e2caeca00c1784473549a840c1f8

diff --git a/drivers/media/video/omap3isp/isp.h 
b/drivers/media/video/omap3isp/isp.h
index a8dfea4..cf5214e 100644
--- a/drivers/media/video/omap3isp/isp.h
+++ b/drivers/media/video/omap3isp/isp.h
@@ -199,6 +199,7 @@ struct isp_v4l2_subdevs_group {
 
 struct isp_platform_data {
        struct isp_v4l2_subdevs_group *subdevs;
+       void (*set_constraints)(struct isp_device *isp, bool enable);
 };
 
 struct isp_platform_callback {
diff --git a/drivers/media/video/omap3isp/ispvideo.c 
b/drivers/media/video/omap3isp/ispvideo.c
index 517a24d..a0bb5db 100644
--- a/drivers/media/video/omap3isp/ispvideo.c
+++ b/drivers/media/video/omap3isp/ispvideo.c
@@ -921,18 +921,8 @@ isp_video_streamon(struct file *file, void *fh, enum 
v4l2_buf_type type)
                pipe->output = far_end;
        }
 
-       /* Make sure the interconnect clock runs fast enough.
-        *
-        * Formula from: resource34xx.c set_opp()
-        * If MPU freq is above 500MHz, make sure the interconnect
-        * is at 100Mhz or above.
-        * throughput in KiB/s for 100 Mhz = 100 * 1000 * 4.
-        *
-        * We want to be fast enough then set OCP clock to be max as
-        * possible, in that case 185Mhz then:
-        * throughput in KiB/s for 185Mhz = 185 * 1000 * 4 = 740000 KiB/s
-        */
-       omap_pm_set_min_bus_tput(video->isp->dev, OCP_INITIATOR_AGENT, 740000);
+       if (video->isp->pdata->set_constraints)
+               video->isp->pdata->set_constraints(video->isp, true);
        pipe->l3_ick = clk_get_rate(video->isp->clock[ISP_CLK_L3_ICK]);
 
        /* Validate the pipeline and update its state. */
@@ -978,8 +968,8 @@ isp_video_streamon(struct file *file, void *fh, enum 
v4l2_buf_type type)
 error:
        if (ret < 0) {
                omap3isp_video_queue_streamoff(&vfh->queue);
-               omap_pm_set_min_bus_tput(video->isp->dev,
-                                        OCP_INITIATOR_AGENT, 0);
+               if (video->isp->pdata->set_constraints)
+                       video->isp->pdata->set_constraints(video->isp, false);
                media_entity_pipeline_stop(&video->video.entity);
                video->queue = NULL;
        }
@@ -1032,7 +1022,8 @@ isp_video_streamoff(struct file *file, void *fh, enum 
v4l2_buf_type type)
        video->queue = NULL;
        video->streaming = 0;
 
-       omap_pm_set_min_bus_tput(video->isp->dev, OCP_INITIATOR_AGENT, 0);
+       if (video->isp->pdata->set_constraints)
+               video->isp->pdata->set_constraints(video->isp, false);
        media_entity_pipeline_stop(&video->video.entity);
 
 done:

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to