Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ef580d6 authored by Pavan Kumar Chilamkurthi's avatar Pavan Kumar Chilamkurthi Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarPavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
parent 8bb66a7e
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
/* 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);
	}

	MSM_FD_SPIN_UNLOCK(fd->slock, 1);
}