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

Commit 2dc96b1c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 9c82f6ca 2ef580d6
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);
}