From d2c24e44e2b6f6b41e3b4bfe9ca117a66777ea53 Mon Sep 17 00:00:00 2001 From: Tatenda Chipeperekwa Date: Wed, 26 Jun 2019 17:11:47 -0700 Subject: [PATCH] disp: msm: dp: disable audio during display clean up Disable audio for every active panel during display clean up use cases when the driver times out waiting for the video path to tear down. This ensures that the audio subsystem is notified before the clean up shuts down the timing engine, and also ensures that the audio module state is correctly updated to indicate that the session has ended. This change will reduce the likelihood of the audio subsystem attempting to program DP audio, and also ensure that the state checks will correctly prevent any attempts to program audio after the session has ended. Change-Id: I937f894e80b55164f9700f021d852863aeb18959 Signed-off-by: Tatenda Chipeperekwa --- msm/dp/dp_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msm/dp/dp_display.c b/msm/dp/dp_display.c index a2e7042fd9a9..5e9cd68712db 100644 --- a/msm/dp/dp_display.c +++ b/msm/dp/dp_display.c @@ -917,6 +917,8 @@ static void dp_display_clean(struct dp_display_private *dp) continue; dp_panel = dp->active_panels[idx]; + if (dp_panel->audio_supported) + dp_panel->audio->off(dp_panel->audio); dp_display_stream_pre_disable(dp, dp_panel); dp_display_stream_disable(dp, dp_panel);