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

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

msm: mdss: fix wb_ctl_alloc to allow use of rotator2



Currently MDSS HW can support maximum of 5 active ctl paths, so the size
of the container array holding all ctl paths is also 5. Now current code
has a limitation where it doesn't allow rotator2 to be used if number of
DSPP based interfaces are 4, which is the case for apq8084. This can lead
to sub-par performance when more than 1 rotator sessions are needed
simultaneously. Fix this by allowing last 2 spots of the ctl path
container array for rotator.

Change-Id: I40e968141d92ce6272072d9b5b8c59402d8a543c
Signed-off-by: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent 47d53bf2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1177,8 +1177,9 @@ struct mdss_mdp_mixer *mdss_mdp_wb_mixer_alloc(int rotator)
{
	struct mdss_mdp_ctl *ctl = NULL;
	struct mdss_mdp_mixer *mixer = NULL;
	u32 offset = mdss_res->nctl - mdss_res->nmixers_wb;

	ctl = mdss_mdp_ctl_alloc(mdss_res, mdss_res->nmixers_intf);
	ctl = mdss_mdp_ctl_alloc(mdss_res, offset);
	if (!ctl) {
		pr_debug("unable to allocate wb ctl\n");
		return NULL;