Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d113b329 authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa
Browse files

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: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent bd8fff4f
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -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);
	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) {
	if (dp_panel->audio_supported) {
		dp_panel->audio->bw_code = dp->link->link_params.bw_code;
		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->lane_count = dp->link->link_params.lane_count;
		dp_panel->audio->on(dp_panel->audio);
		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:
end:
	dp->aux->state |= DP_STATE_CTRL_POWERED_ON;
	dp->aux->state |= DP_STATE_CTRL_POWERED_ON;