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

Commit 0f0ddafe authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

msm: mdss: fix mixer_type assignment in writeback start



Assign and use the correct mixer_type in writeback start.

Change-Id: Iacb0424b1518eec7077d2c053222358cf6a38abb
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent a1189634
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -819,7 +819,7 @@ int mdss_mdp_writeback_start(struct mdss_mdp_ctl *ctl)
	struct mdss_mdp_writeback_ctx *ctx;
	struct mdss_mdp_writeback *wb;
	u32 mem_sel;
	u32 mixer_type = 0;
	u32 mixer_type = MDSS_MDP_MIXER_TYPE_UNUSED;

	pr_debug("start ctl=%d\n", ctl->num);

@@ -841,13 +841,12 @@ int mdss_mdp_writeback_start(struct mdss_mdp_ctl *ctl)
		pr_err("invalid writeback mode %d\n", mem_sel);
		return -EINVAL;
	}

	if (ctl->mixer_left)
		mixer_type = ctl->mixer_left->type;
	else
		mixer_type = MDSS_MDP_MIXER_TYPE_UNUSED;

	if (mdss_mdp_is_cdm_supported(ctl->mdata, ctl->intf_type,
				      ctl->mixer_left->type)) {
				mixer_type)) {
		ctl->cdm = mdss_mdp_cdm_init(ctl, MDP_CDM_CDWN_OUTPUT_WB);
		if (!ctl->cdm) {
			pr_err("%s failed to init cdm\n", __func__);