Commit 9356badb authored by Roman Li's avatar Roman Li Committed by Alex Deucher

drm/amd/display: check if audio clk enable is applicable

Fixing warning on dce10 with HDMI display.
Signed-off-by: default avatarRoman Li <Roman.Li@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Reviewed-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fb5fb63a
...@@ -720,6 +720,7 @@ static void dce110_stream_encoder_update_hdmi_info_packets( ...@@ -720,6 +720,7 @@ static void dce110_stream_encoder_update_hdmi_info_packets(
const uint32_t *content = const uint32_t *content =
(const uint32_t *) &info_frame->avi.sb[0]; (const uint32_t *) &info_frame->avi.sb[0];
/*we need turn on clock before programming AFMT block*/ /*we need turn on clock before programming AFMT block*/
if (REG(AFMT_CNTL))
REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1); REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
REG_WRITE(AFMT_AVI_INFO0, content[0]); REG_WRITE(AFMT_AVI_INFO0, content[0]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment