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

Commit 486abb8e authored by Chunhuan Zhan's avatar Chunhuan Zhan
Browse files

msm: ais: fix 6155 crop issue on mini IFE driver



Check the state when csid config_rdi_path
and csid deinit_rdi_path.

Change-Id: I79c8757fa84c839dfaa8a6b8e4f4789b563718e1
Signed-off-by: default avatarChunhuan Zhan <zhanc@codeaurora.org>
parent 130f591c
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
@@ -677,9 +677,16 @@ static int ais_ife_csid_config_rdi_path(
			struct ais_ife_csid_path_cfg *tmp =
				&csid_hw->rdi_cfg[i];

			/*
			 * doesn't compare with itself and
			 * not INIT/STREAMING rdi
			 */
			if (id == i ||
				tmp->state < AIS_ISP_RESOURCE_STATE_INIT_HW)
				continue;

			/*checking for multiple streams of same VC*/
			if (i != id &&
				tmp->vc	== path_cfg->vc &&
			if (tmp->vc == path_cfg->vc &&
				tmp->decode_fmt == path_cfg->decode_fmt) {
				val = path_cfg->decode_fmt <<
					csid_reg->cmn_reg->fmt_shift_val;
@@ -784,8 +791,11 @@ static int ais_ife_csid_deinit_rdi_path(
			struct ais_ife_csid_path_cfg *tmp =
				&csid_hw->rdi_cfg[i];

			if (i != id &&
				tmp->vc	== path_cfg->vc &&
			if (i == id ||
				tmp->state == AIS_ISP_RESOURCE_STATE_AVAILABLE)
				continue;

			if (tmp->vc == path_cfg->vc &&
				tmp->decode_fmt == path_cfg->decode_fmt)
				check_cnt++;
		}