File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
drivers/gpu/drm/amd/display/dc/hwss/dcn30 Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -812,10 +812,20 @@ void dcn30_set_avmute(struct pipe_ctx *pipe_ctx, bool enable)
812
812
if (pipe_ctx == NULL )
813
813
return ;
814
814
815
- if (dc_is_hdmi_signal (pipe_ctx -> stream -> signal ) && pipe_ctx -> stream_res .stream_enc != NULL )
815
+ if (dc_is_hdmi_signal (pipe_ctx -> stream -> signal ) && pipe_ctx -> stream_res .stream_enc != NULL ) {
816
816
pipe_ctx -> stream_res .stream_enc -> funcs -> set_avmute (
817
817
pipe_ctx -> stream_res .stream_enc ,
818
818
enable );
819
+
820
+ /* Wait for two frame to make sure AV mute is sent out */
821
+ if (enable ) {
822
+ pipe_ctx -> stream_res .tg -> funcs -> wait_for_state (pipe_ctx -> stream_res .tg , CRTC_STATE_VACTIVE );
823
+ pipe_ctx -> stream_res .tg -> funcs -> wait_for_state (pipe_ctx -> stream_res .tg , CRTC_STATE_VBLANK );
824
+ pipe_ctx -> stream_res .tg -> funcs -> wait_for_state (pipe_ctx -> stream_res .tg , CRTC_STATE_VACTIVE );
825
+ pipe_ctx -> stream_res .tg -> funcs -> wait_for_state (pipe_ctx -> stream_res .tg , CRTC_STATE_VBLANK );
826
+ pipe_ctx -> stream_res .tg -> funcs -> wait_for_state (pipe_ctx -> stream_res .tg , CRTC_STATE_VACTIVE );
827
+ }
828
+ }
819
829
}
820
830
821
831
void dcn30_update_info_frame (struct pipe_ctx * pipe_ctx )
You can’t perform that action at this time.
0 commit comments