]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Fix audio on display after unplugging another
authorAric Cyr <aric.cyr@amd.com>
Wed, 14 Sep 2022 16:54:52 +0000 (12:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Sep 2022 21:57:46 +0000 (17:57 -0400)
Revert "dc: skip audio setup when audio stream is enabled"

This reverts commit 301b460275341c0e686fcbdb8d85b97c007cd963

[why]
We have minimal pipe split transition method to avoid pipe
allocation outage.However, this method will invoke audio setup
which cause audio output stuck once pipe reallocate.

[how]
skip audio setup for pipelines which audio stream has been enabled

Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

index aea49334021c90b2f9183713b024721808e9d606..38a67051d470f24cd1407a0a828b035760b7d36c 100644 (file)
@@ -2164,8 +2164,7 @@ static void dce110_setup_audio_dto(
                        continue;
                if (pipe_ctx->stream->signal != SIGNAL_TYPE_HDMI_TYPE_A)
                        continue;
-               if (pipe_ctx->stream_res.audio != NULL &&
-                       pipe_ctx->stream_res.audio->enabled == false) {
+               if (pipe_ctx->stream_res.audio != NULL) {
                        struct audio_output audio_output;
 
                        build_audio_output(context, pipe_ctx, &audio_output);
@@ -2205,8 +2204,7 @@ static void dce110_setup_audio_dto(
                        if (!dc_is_dp_signal(pipe_ctx->stream->signal))
                                continue;
 
-                       if (pipe_ctx->stream_res.audio != NULL &&
-                               pipe_ctx->stream_res.audio->enabled == false) {
+                       if (pipe_ctx->stream_res.audio != NULL) {
                                struct audio_output audio_output;
 
                                build_audio_output(context, pipe_ctx, &audio_output);