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

Commit 4e4f2e80 authored by RAJAT GUPTA's avatar RAJAT GUPTA Committed by Xiaowen Wu
Browse files

drm: msm: dp: correct the resolution width check in get_mode_info



Use only one layer mixer when resolution set by dp is less
than or equal to mixer width.

Change-Id: I2df67ef4d24014c314f722ecdb29de762e7cda82
Signed-off-by: default avatarRAJAT GUPTA <rajatgu@codeaurora.org>
parent 271cca3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@ int dp_connector_get_mode_info(struct drm_connector *connector,
	dp_panel = sde_conn->drv_panel;

	topology = &mode_info->topology;
	topology->num_lm = (max_mixer_width <= drm_mode->hdisplay) ?
	topology->num_lm = (max_mixer_width < drm_mode->hdisplay) ?
							dual_lm : single_lm;
	topology->num_enc = no_enc;
	topology->num_intf = single_intf;