Skip to content

Commit

Permalink
drm/amd/display: HDMI has no sound after Panel power off/on
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Charlene Liu authored and Alex Deucher committed Apr 11, 2018
1 parent 1b59fb0 commit af2ac32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,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]);

Expand Down

0 comments on commit af2ac32

Please sign in to comment.