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

Commit ad5d4c7a authored by Ping Li's avatar Ping Li
Browse files

msm: mdss: Prevent AD configuration on HDMI path



Currently there is no use case for enabling AD on HDMI path. This check
is already present in mdss_ad_init_checks(), but that does not prevent
mdss_mdp_ad_setup() from being called. So invoke mdss_mdp_ad_setup() only
if display panel is not of HDMI type.

Change-Id: I175fcdbb0cc4ccda31d3fc8074b1e0213e0af10a
Signed-off-by: default avatarPing Li <quicpingli@codeaurora.org>
parent a888b526
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1723,7 +1723,8 @@ int mdss_mdp_pp_setup_locked(struct mdss_mdp_ctl *ctl)
		if (mixer_id[i] >= mdata->nad_cfgs)
			valid_mixers = false;
	}
	if (valid_mixers && (mixer_cnt <= mdata->nmax_concurrent_ad_hw)) {
	if (valid_mixers && (mixer_cnt <= mdata->nmax_concurrent_ad_hw) &&
		(ctl->mfd->panel_info->type != DTV_PANEL)) {
		ret = mdss_mdp_ad_setup(ctl->mfd);
		if (ret < 0)
			pr_warn("ad_setup(disp%d) returns %d", disp_num, ret);