msm: hdcp: enable encryption only if not done already

Content Stream Management message can be sent multiple times
after successful authentication. Encryption is enabled after
receiving acknowledgment for Content Stream Management. Check
if the encryption is already enabled, if so, do not enable it
again.

CRs-Fixed: 1114981
Change-Id: I429b2ca2bf9dc0986f8fee6a814538031336c53b
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
This commit is contained in:
Ajay Singh Parmar 2017-01-31 17:35:13 -08:00 committed by Tatenda Chipeperekwa
parent e18a7a0a90
commit 9a59582230

View file

@ -2103,7 +2103,8 @@ static void hdcp_lib_msg_recvd(struct hdcp_lib_handle *handle)
(rc == 0) && (rsp_buf->status == 0)) {
pr_debug("Got Auth_Stream_Ready, nothing sent to rx\n");
if (!hdcp_lib_enable_encryption(handle)) {
if (!handle->authenticated &&
!hdcp_lib_enable_encryption(handle)) {
handle->authenticated = true;
cdata.cmd = HDMI_HDCP_WKUP_CMD_STATUS_SUCCESS;