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

Commit a06d0902 authored by Ujwal Patel's avatar Ujwal Patel
Browse files

msm: mdss: Fix dual-DSI mixer swap



In dual-DSI panel configuration it is possible that panels are physically
swapped on the device. In those situations mixer swap is done. There is
an old dead code in current implementation which leads to failures in
mixer swap use-case. Fix these failures by removing this dead code.

Change-Id: Ib0d7141e322f18bcf1060bc5ab2a404dc41a4cc2
Signed-off-by: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent af8310c3
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -643,19 +643,12 @@ int mdss_mdp_video_start(struct mdss_mdp_ctl *ctl)
	struct mdss_data_type *mdata;
	struct mdss_panel_info *pinfo;
	struct mdss_mdp_video_ctx *ctx;
	struct mdss_mdp_mixer *mixer;
	struct intf_timing_params itp = {0};
	u32 dst_bpp;
	int i;

	mdata = ctl->mdata;
	pinfo = &ctl->panel_data->panel_info;
	mixer = mdss_mdp_mixer_get(ctl, MDSS_MDP_MIXER_MUX_LEFT);

	if (!mixer) {
		pr_err("mixer not setup correctly\n");
		return -ENODEV;
	}

	i = ctl->intf_num - MDSS_MDP_INTF0;
	if (i < mdata->nintf) {