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:
parent
e18a7a0a90
commit
9a59582230
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue