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

Commit 525ccbac authored by Narender Ankam's avatar Narender Ankam
Browse files

msm: mdss: dp: fix no display issue on second connection



Video and Audio notifications from HDMI/DP driver can now be
sent separately. set/clear current display type only on receiving
video notifications.

Change-Id: I093fd0b2abd135216af67573bd7ffa4657f6af04
Signed-off-by: default avatarNarender Ankam <nankam@codeaurora.org>
parent f19eadaa
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -221,6 +221,11 @@ static int msm_ext_disp_process_display(struct msm_ext_disp *ext_disp,
		goto end;
	}

	if (state == EXT_DISPLAY_CABLE_CONNECT)
		ext_disp->current_disp = type;
	else
		ext_disp->current_disp = EXT_DISPLAY_TYPE_MAX;

	ret = msm_ext_disp_send_cable_notification(ext_disp, state);

	/* positive ret value means audio node was switched */
@@ -287,7 +292,6 @@ static bool msm_ext_disp_validate_connect(struct msm_ext_disp *ext_disp,
	if (ext_disp->current_disp != type)
		return false;
end:
	ext_disp->current_disp = type;
	return true;
}

@@ -369,8 +373,6 @@ static int msm_ext_disp_hpd(struct platform_device *pdev,
		msm_ext_disp_process_audio(ext_disp, type, state, flags);
		msm_ext_disp_update_audio_ops(ext_disp, type, state, flags);
		msm_ext_disp_process_display(ext_disp, type, state, flags);

		ext_disp->current_disp = EXT_DISPLAY_TYPE_MAX;
	}

	pr_debug("Hpd (%d) for display (%s)\n", state,