msm: mdss: mdp: mixer allocation for pluggable primary display

Try to allocate mixers LM0 and LM1 to an external pluggable
display if it is configured as primary display.

Change-Id: I81672132a6452535dcd7c2977e76f88a5f3aecf9
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
This commit is contained in:
Narender Ankam 2019-04-09 18:56:37 +05:30 committed by Gerrit - the friendly Code Review server
parent eddc389f5a
commit 2cbfe924cf

View file

@ -2577,6 +2577,7 @@ struct mdss_mdp_mixer *mdss_mdp_mixer_alloc(
mixer_pool += ctl->mdata->ndspp; mixer_pool += ctl->mdata->ndspp;
nmixers -= ctl->mdata->ndspp; nmixers -= ctl->mdata->ndspp;
} else if ((ctl->panel_data->panel_info.is_pluggable) && } else if ((ctl->panel_data->panel_info.is_pluggable) &&
!(ctl->panel_data->panel_info.is_prim_panel) &&
nmixers_active) { nmixers_active) {
mixer_pool += ctl->mdata->ndspp; mixer_pool += ctl->mdata->ndspp;
nmixers -= ctl->mdata->ndspp; nmixers -= ctl->mdata->ndspp;