Răsfoiți Sursa

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 <[email protected]>
Tatenda Chipeperekwa 6 ani în urmă
părinte
comite
d2c24e44e2
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      msm/dp/dp_display.c

+ 2 - 0
msm/dp/dp_display.c

@@ -917,6 +917,8 @@ static void dp_display_clean(struct dp_display_private *dp)
 			continue;
 			continue;
 
 
 		dp_panel = dp->active_panels[idx];
 		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_pre_disable(dp, dp_panel);
 		dp_display_stream_disable(dp, dp_panel);
 		dp_display_stream_disable(dp, dp_panel);