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

Commit 466480a9 authored by Chirag Khurana's avatar Chirag Khurana Committed by Gerrit - the friendly Code Review server
Browse files

mdss_hdmi_tx: reset HDR flags on disconnect



HDR related flags are reset at disconnect event to handle
proper HDR colorimetry transition during connect and disconnect
events.

Change-Id: I8b95b6f4635052446ab5fd707227b2bbe6038c7c
Signed-off-by: default avatarChirag Khurana <ckhurana@codeaurora.org>
parent b18a62c5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3432,6 +3432,9 @@ static int hdmi_tx_power_off(struct hdmi_tx_ctrl *hdmi_ctrl)
	hdmi_ctrl->panel_power_on = false;
	hdmi_ctrl->vic = 0;

	hdmi_ctrl->use_bt2020 = false;
	hdmi_ctrl->curr_hdr_state = HDR_DISABLE;

	if (hdmi_ctrl->hpd_off_pending || hdmi_ctrl->panel_suspend)
		hdmi_tx_hpd_off(hdmi_ctrl);