From e23e3e27bfd53f4acc1a3fe415316974149eb79f Mon Sep 17 00:00:00 2001 From: Zube Molokwu Date: Mon, 24 Jun 2019 10:50:09 -0700 Subject: [PATCH] disp: msm: dp: skip audio notify wait for completion Skip the wait on audio subsystem response in case of external display connect event. Change-Id: Id7a0ac48f540f025293717e60c28967b83ad46ee Signed-off-by: Zube Molokwu --- msm/dp/dp_audio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/msm/dp/dp_audio.c b/msm/dp/dp_audio.c index d5982d9213..76f6446f4c 100644 --- a/msm/dp/dp_audio.c +++ b/msm/dp/dp_audio.c @@ -652,6 +652,9 @@ static int dp_audio_notify(struct dp_audio_private *audio, u32 state) if (atomic_read(&audio->acked)) goto end; + if (state == EXT_DISPLAY_CABLE_CONNECT) + goto end; + rc = wait_for_completion_timeout(&audio->hpd_comp, HZ * 4); if (!rc) { pr_err("timeout. state=%d err=%d\n", state, rc);