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

Commit 2191e927 authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa
Browse files

msm: mdss: hdmi: enable scrambler during handoff



Enable scrambler during handoff scenarios in which there is no
resolution switch from the bootloader to the kernel. Furthermore,
power on the HDMI core before enabling the scrambler to ensure
that there is a smooth transition during the handoff without any
temporary blinks on the panel.

Change-Id: I94dde166dabf2b3260b6cae34bfcdf0e99fe4112
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent d62939b1
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -3561,6 +3561,12 @@ static int hdmi_tx_power_on(struct mdss_panel_data *panel_data)
		panel_info->xres, panel_info->yres,
		panel_info->cont_splash_enabled ? " (handoff underway)" : "");

	rc = hdmi_tx_core_on(hdmi_ctrl);
	if (rc) {
		DEV_ERR("%s: hdmi_msm_core_on failed\n", __func__);
		goto end;
	}

	if (hdmi_ctrl->pdata.cont_splash_enabled) {
		hdmi_ctrl->pdata.cont_splash_enabled = false;
		panel_data->panel_info.cont_splash_enabled = false;
@@ -3574,15 +3580,13 @@ static int hdmi_tx_power_on(struct mdss_panel_data *panel_data)
			if (!hdmi_tx_is_hdcp_enabled(hdmi_ctrl))
				hdmi_tx_set_audio_switch_node(hdmi_ctrl, 1);

			goto end;
		}
	}
			if (hdmi_tx_setup_scrambler(hdmi_ctrl))
				DEV_WARN("%s: Scrambler setup failed\n",
						__func__);

	rc = hdmi_tx_core_on(hdmi_ctrl);
	if (rc) {
		DEV_ERR("%s: hdmi_msm_core_on failed\n", __func__);
			goto end;
		}
	}

	rc = hdmi_tx_start(hdmi_ctrl);
	if (rc) {