linux_dsm_epyc7002/drivers/gpu/drm/amd/display/dc/dce110
Nicholas Kazlauskas 92e6475ae0 drm/amd/display: Set enabled to false at start of audio disable
[Why]
In an effort to stop redundant calls to dce110_disable_audio_stream
the audio->enabled flag was added to the audio resource struct. While
this state probably shouldn't have been tracked on the audio struct
itself it still works fine for some sequences.

However, it does not work for cases where we're freeing the audio
resource (such as hotplugs) or when dynamic audio is enabled.

In these cases the pipe_ctx->stream_res.audio = NULL before we can
set audio->enabled = false. The next time we acquire the audio resource
such as on hotplug the audio will not be enabled for the stream since
DC thinks it's still enabled.

Audio state tracking should cover this sequence.

[How]
Set audio->enabled = false at the start as long as we have
pipe_ctx->stream_res.audio.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Zhan Liu <Zhan.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-07-23 15:27:09 -05:00
..
dce110_compressor.c drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
dce110_compressor.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_hw_sequencer.c drm/amd/display: Set enabled to false at start of audio disable 2019-07-23 15:27:09 -05:00
dce110_hw_sequencer.h drm/amd/display: remove safe_to_lower flag from dc, use 2 functions instead 2018-11-05 14:20:40 -05:00
dce110_mem_input_v.c drm/amd/display: make function tables const 2018-07-10 14:17:11 -05:00
dce110_mem_input_v.h drm/amd/display: dce 8 - 12 mem_input refactor to new style 2017-09-26 18:07:12 -04:00
dce110_opp_csc_v.c amdgpu/dc: Fix enum mismatch in calls to program_color_matrix() 2018-02-19 14:19:44 -05:00
dce110_opp_regamma_v.c drm/amd: drop dependencies on drm_os_linux.h 2019-06-10 22:59:32 +02:00
dce110_opp_v.c amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_opp_v.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_resource.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
dce110_resource.h drm/amd/display: Engine-specific encoder allocation 2019-05-24 12:21:00 -05:00
dce110_timing_generator_v.c drm/amd/display: stop external access to internal optc sync params 2019-05-24 12:20:49 -05:00
dce110_timing_generator_v.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_timing_generator.c drm/amd/display: stop external access to internal optc sync params 2019-05-24 12:20:49 -05:00
dce110_timing_generator.h drm/amd/display: stop external access to internal optc sync params 2019-05-24 12:20:49 -05:00
dce110_transform_v.c drm/amd: drop dependencies on drm_os_linux.h 2019-06-10 22:59:32 +02:00
dce110_transform_v.h amdgpu/dc: make program_regamma_pwl return void 2017-09-29 13:02:08 -04:00
Makefile drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00