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:
parent
8bb66a7e41
commit
2ef580d634
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue