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 <tatendac@codeaurora.org>
This commit is contained in:
Tatenda Chipeperekwa
2019-04-25 18:36:56 -07:00
parent bd8fff4f9f
commit d113b3292e

Vedi File

@@ -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;