From d113b3292ee3fc6ceb2124f282197d1e61d5386d Mon Sep 17 00:00:00 2001 From: Tatenda Chipeperekwa Date: Thu, 25 Apr 2019 18:36:56 -0700 Subject: [PATCH] disp: msm: dp: fix potential delay to start authentication Start authentication as soon as the stream is successfully powered on and before the audio notification is sent. This will avoid a potential delay in starting authentication if the audio subsystem does not respond to the audio notification. Change-Id: I83e5746ff521cfe8641f6e2bffd1bed953329a69 Signed-off-by: Tatenda Chipeperekwa --- msm/dp/dp_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/msm/dp/dp_display.c b/msm/dp/dp_display.c index 1ffd5b8741ec..c7563a8c09c6 100644 --- a/msm/dp/dp_display.c +++ b/msm/dp/dp_display.c @@ -1608,14 +1608,14 @@ static int dp_display_post_enable(struct dp_display *dp_display, void *panel) dp_display_stream_post_enable(dp, dp_panel); + cancel_delayed_work_sync(&dp->hdcp_cb_work); + queue_delayed_work(dp->wq, &dp->hdcp_cb_work, HZ); + if (dp_panel->audio_supported) { dp_panel->audio->bw_code = dp->link->link_params.bw_code; dp_panel->audio->lane_count = dp->link->link_params.lane_count; dp_panel->audio->on(dp_panel->audio); } - - cancel_delayed_work_sync(&dp->hdcp_cb_work); - queue_delayed_work(dp->wq, &dp->hdcp_cb_work, HZ); end: dp->aux->state |= DP_STATE_CTRL_POWERED_ON;