diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2013-12-09 22:46:17 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-12-18 06:25:04 -0200 |
commit | 792e8eca55c8aebb369f7fdf4c7e3c01703cc8c4 (patch) | |
tree | 495ce243ac724946726101227b66d9810d445f82 /drivers/media/platform/omap3isp | |
parent | fd8308b42c11ff21cedfb08a73f1d7ff73d72e4c (diff) | |
download | linux-stable-792e8eca55c8aebb369f7fdf4c7e3c01703cc8c4.tar.gz linux-stable-792e8eca55c8aebb369f7fdf4c7e3c01703cc8c4.tar.bz2 linux-stable-792e8eca55c8aebb369f7fdf4c7e3c01703cc8c4.zip |
[media] omap3isp: Fix buffer flags handling when querying buffer
A missing break resulted in all done buffers being flagged with
V4L2_BUF_FLAG_QUEUED. Fix it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/omap3isp')
-rw-r--r-- | drivers/media/platform/omap3isp/ispqueue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/omap3isp/ispqueue.c b/drivers/media/platform/omap3isp/ispqueue.c index e15f01342058..5f0f8fab1d17 100644 --- a/drivers/media/platform/omap3isp/ispqueue.c +++ b/drivers/media/platform/omap3isp/ispqueue.c @@ -553,8 +553,10 @@ static void isp_video_buffer_query(struct isp_video_buffer *buf, switch (buf->state) { case ISP_BUF_STATE_ERROR: vbuf->flags |= V4L2_BUF_FLAG_ERROR; + /* Fallthrough */ case ISP_BUF_STATE_DONE: vbuf->flags |= V4L2_BUF_FLAG_DONE; + break; case ISP_BUF_STATE_QUEUED: case ISP_BUF_STATE_ACTIVE: vbuf->flags |= V4L2_BUF_FLAG_QUEUED; |