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

Commit f2eeea4f authored by Narender Ankam's avatar Narender Ankam Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: hdcp: handle hdcp off gracefully



As part of turning off HDCP, set HDCP status to
INACTIVE and cancel all pending works.

Change-Id: I38bcab2ec2ecbe7a825fe193d161073c4266fdc2
Signed-off-by: default avatarNarender Ankam <nankam@codeaurora.org>
parent 0f6eb98b
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
/* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2017, 2019, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -3742,7 +3742,8 @@ static int hdmi_tx_hdcp_off(struct hdmi_tx_ctrl *hdmi_ctrl)
	DEV_DBG("%s: Turning off HDCP\n", __func__);
	DEV_DBG("%s: Turning off HDCP\n", __func__);
	hdmi_ctrl->hdcp_ops->off(hdmi_ctrl->hdcp_data);
	hdmi_ctrl->hdcp_ops->off(hdmi_ctrl->hdcp_data);


	flush_delayed_work(&hdmi_ctrl->hdcp_cb_work);
	hdmi_ctrl->hdcp_status = HDCP_STATE_INACTIVE;
	cancel_delayed_work(&hdmi_ctrl->hdcp_cb_work);


	hdmi_ctrl->hdcp_ops = NULL;
	hdmi_ctrl->hdcp_ops = NULL;