]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Disable audio stream only if it's currently enabled
authorEryk Brol <eryk.brol@amd.com>
Wed, 8 May 2019 13:08:03 +0000 (09:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 May 2019 15:39:30 +0000 (10:39 -0500)
commit806f8e8699e85a90716152c7b22dbb93f0336645
tree28f173250579d3cd926aef971250015feee6687e
parente752dfc9a56c88cbb36d8d1becb336a87c73e126
drm/amd/display: Disable audio stream only if it's currently enabled

[Why]
Previously there were 2 consecutive calls being made to disable
audio stream. The first one disabled the audio stream, and the second
one went through and also tried to disable the audio stream causing
BACO entry issues due to the ASIC appearing busy.

[How]
1. Add a status field to the audio struct which stores enabled/disabled
info
2. In the calls to enable/disable audio stream check if we're already
in the desired state before executing the function

Signed-off-by: Eryk Brol <eryk.brol@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/inc/hw/audio.h