drm/amd/display: HDMI has no sound after Panel power off/on
authorCharlene Liu <charlene.liu@amd.com>
Sat, 7 Apr 2018 03:03:12 +0000 (23:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:25 +0000 (13:43 -0500)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c

index 07c32421c22650da93f602096213873d167660e5..84e26c894046ddae0050375fb7a68393959529d0 100644 (file)
@@ -718,6 +718,8 @@ static void dce110_stream_encoder_update_hdmi_info_packets(
                if (info_frame->avi.valid) {
                        const uint32_t *content =
                                (const uint32_t *) &info_frame->avi.sb[0];
+                       /*we need turn on clock before programming AFMT block*/
+                       REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
 
                        REG_WRITE(AFMT_AVI_INFO0, content[0]);