]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] s5p-fimc: Enable interworking without subdev s_stream
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 27 Dec 2010 18:05:58 +0000 (15:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:31:38 +0000 (20:31 -0300)
Prevent VIDIOC_STREAMON failing when s_stream callback is
not implemented by a sensor subdev driver.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c

index 2dc6e82c80843327ac06807b795e12fc0a838e6c..c6689a24c85b94d6495be5806ee832ac1ee80c8b 100644 (file)
@@ -191,7 +191,8 @@ static int fimc_stop_capture(struct fimc_dev *fimc)
                           FIMC_SHUTDOWN_TIMEOUT);
 
        ret = v4l2_subdev_call(cap->sd, video, s_stream, 0);
-       if (ret)
+
+       if (ret && ret != -ENOIOCTLCMD)
                v4l2_err(&fimc->vid_cap.v4l2_dev, "s_stream(0) failed\n");
 
        spin_lock_irqsave(&fimc->slock, flags);