From 2cbfe924cf01c742edc184a016bede2e3c6eb0a7 Mon Sep 17 00:00:00 2001 From: Narender Ankam Date: Tue, 9 Apr 2019 18:56:37 +0530 Subject: [PATCH] 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 --- drivers/video/fbdev/msm/mdss_mdp_ctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c index ec56bcf6e64e..0b362895ceea 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c +++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c @@ -2577,6 +2577,7 @@ struct mdss_mdp_mixer *mdss_mdp_mixer_alloc( mixer_pool += ctl->mdata->ndspp; nmixers -= ctl->mdata->ndspp; } else if ((ctl->panel_data->panel_info.is_pluggable) && + !(ctl->panel_data->panel_info.is_prim_panel) && nmixers_active) { mixer_pool += ctl->mdata->ndspp; nmixers -= ctl->mdata->ndspp;