[1/1] s5p-fimc: media_entity_pipeline_start() may fail
Commit Message
Take into account media_entity_pipeline_start() may fail. This patch is
dependent on "media: Add link_validate() op to check links to the sink pad".
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
---
(Just correct Sylwester's e-mail. Sorry for the noise.)
The dependent patch is part of my pull req to Mauro here:
<URL:http://www.spinics.net/lists/linux-media/msg46296.html>
drivers/media/video/s5p-fimc/fimc-capture.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Comments
Hi Sakari,
thank you for the patch.
On 04/22/2012 12:44 PM, Sakari Ailus wrote:
> Take into account media_entity_pipeline_start() may fail. This patch is
> dependent on "media: Add link_validate() op to check links to the sink pad".
>
> Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
I will apply it on my tree for 3.5, when your remaining patches are merged
into the media tree. I really hope they are not delayed another kernel
release.
Regards,
@@ -963,7 +963,9 @@ static int fimc_cap_streamon(struct file *file, void *priv,
if (fimc_capture_active(fimc))
return -EBUSY;
- media_entity_pipeline_start(&p->sensor->entity, p->pipe);
+ ret = media_entity_pipeline_start(&p->sensor->entity, p->pipe);
+ if (ret < 0)
+ return ret;
if (fimc->vid_cap.user_subdev_api) {
ret = fimc_pipeline_validate(fimc);