drm/amd/display: Blank stream before destroying HDCP session
authorJaehyun Chung <jaehyun.chung@amd.com>
Thu, 30 Jul 2020 20:31:29 +0000 (16:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:49:03 +0000 (11:49 +0200)
commit9cb01ea4fab5524e8290a53717831013fda7c279
treede147366223596b980e009166e0624fb6889326c
parent115e2a7226c084dd3e86bb0fb509f7e03d089e18
drm/amd/display: Blank stream before destroying HDCP session

commit 79940e4d10df9c737a394630968471c632246ee0 upstream.

[Why]
Stream disable sequence incorretly destroys HDCP session while stream is
not blanked and while audio is not muted. This sequence causes a flash
of corruption during mode change and an audio click.

[How]
Change sequence to blank stream before destroying HDCP session. Audio will
also be muted by blanking the stream.

Cc: stable@vger.kernel.org
Signed-off-by: Jaehyun Chung <jaehyun.chung@amd.com>
Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/core/dc_link.c