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

Commit d687a929 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Matt Wagantall
Browse files

msm: mdss: use layer mixer number to select pingpong block



In the current implementation, the pingpong block is selected
based on the interface number. This causes issues when a
single DSI command mode panel is connected to Interface #n and
not driven on control path #(n-1). Add change to select pingpong
block based on LM number to handle this.

Change-Id: I195d25bb7dd890c3b731e6ea38b1a41a321b1cf5
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent 9170257e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1400,7 +1400,11 @@ static int mdss_mdp_cmd_intfs_setup(struct mdss_mdp_ctl *ctl,

	ctl->intf_ctx[MASTER_CTX] = ctx;

	ret = mdss_mdp_cmd_ctx_setup(ctl, ctx, session, false);
	/*
	 * pp_num for master ctx is same as mixer num independent
	 * of pingpong split enabled/disabled
	 */
	ret = mdss_mdp_cmd_ctx_setup(ctl, ctx, mixer->num, false);
	if (ret) {
		pr_err("mdss_mdp_cmd_ctx_setup failed for ping ping: %d\n",
				mixer->num);