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

Commit 2fecd919 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera_v2: fix close sequence of isp stats stream"

parents dd818b21 ea4f734c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2019, 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
@@ -563,10 +563,11 @@ int msm_isp_release_stats_stream(struct vfe_device *vfe_dev, void *arg)
		stream_info->buffer_offset[i] = stream_info->buffer_offset[k];
	}

	stream_info->num_isp--;

	stream_info->vfe_dev[stream_info->num_isp] = NULL;
	stream_info->stream_handle[stream_info->num_isp] = 0;
	stream_info->buffer_offset[stream_info->num_isp] = 0;
	stream_info->num_isp--;
	stream_info->vfe_mask &= ~(1 << vfe_dev->pdev->id);
	if (stream_info->num_isp == 0)
		stream_info->state = STATS_AVAILABLE;