msm: camera: fd: Call fd buffer done on active buffer

Call fd hw buffer done on current active buffer always,
irrespective of current fd state.

Change-Id: I26018b25a9cd9fb266ccc87da76610d4db45a98e
CRs-Fixed: 1093918
Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
This commit is contained in:
Pavan Kumar Chilamkurthi 2017-01-04 18:30:13 -08:00 committed by Gerrit - the friendly Code Review server
parent 8bb66a7e41
commit 2ef580d634

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -1273,10 +1273,8 @@ static void msm_fd_wq_handler(struct work_struct *work)
fd_event->frame_id = ctx->sequence;
v4l2_event_queue_fh(&ctx->fh, &event);
if (fd->state == MSM_FD_DEVICE_RUNNING) {
/* Release buffer from the device */
msm_fd_hw_buffer_done(fd, active_buf, 0);
}
/* Release buffer from the device */
msm_fd_hw_buffer_done(fd, active_buf, 0);
MSM_FD_SPIN_UNLOCK(fd->slock, 1);
}