From 05e68d3042f3e5904a050bf7916230d666d1ffbd Mon Sep 17 00:00:00 2001 From: Sakari Ailus Date: Mon, 16 Jan 2012 18:59:02 -0300 Subject: [PATCH] --- yaml --- r: 306281 b: refs/heads/master c: b0cd79ed987c7b362a2e1a339ce9959192dc2f52 h: refs/heads/master i: 306279: c5c8ee015a80123ee16bec8c1a2390623e78545a v: v3 --- [refs] | 2 +- trunk/drivers/media/video/omap3isp/ispvideo.c | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 2cfd15506792..08e0686377d4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 618b055bc9c7253677520c1536a47540c3647a1a +refs/heads/master: b0cd79ed987c7b362a2e1a339ce9959192dc2f52 diff --git a/trunk/drivers/media/video/omap3isp/ispvideo.c b/trunk/drivers/media/video/omap3isp/ispvideo.c index 1fa29cc9bb6d..5e55477f120d 100644 --- a/trunk/drivers/media/video/omap3isp/ispvideo.c +++ b/trunk/drivers/media/video/omap3isp/ispvideo.c @@ -304,7 +304,6 @@ static int isp_video_validate_pipeline(struct isp_pipeline *pipe) struct v4l2_subdev *subdev; int ret; - pipe->max_rate = pipe->l3_ick; pipe->entities = 0; subdev = isp_video_remote_subdev(pipe->output, NULL); @@ -997,6 +996,12 @@ isp_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) */ pipe = video->video.entity.pipe ? to_isp_pipeline(&video->video.entity) : &video->pipe; + + 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]); + pipe->max_rate = pipe->l3_ick; + media_entity_pipeline_start(&video->video.entity, &pipe->pipe); /* Verify that the currently configured format matches the output of @@ -1029,10 +1034,6 @@ isp_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) pipe->output = far_end; } - 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. */ ret = isp_video_validate_pipeline(pipe); if (ret < 0) @@ -1078,9 +1079,9 @@ isp_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) error: if (ret < 0) { omap3isp_video_queue_streamoff(&vfh->queue); + media_entity_pipeline_stop(&video->video.entity); if (video->isp->pdata->set_constraints) video->isp->pdata->set_constraints(video->isp, false); - media_entity_pipeline_stop(&video->video.entity); /* The DMA queue must be emptied here, otherwise CCDC interrupts * that will get triggered the next time the CCDC is powered up * will try to access buffers that might have been freed but