mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
drm/amd/display: check if audio clk enable is applicable
Fixing warning on dce10 with HDMI display. Signed-off-by: Roman Li <Roman.Li@amd.com> Reviewed-by: Charlene Liu <Charlene.Liu@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fb5fb63aa9
commit
9356badb26
1 changed files with 2 additions and 1 deletions
|
|
@ -720,7 +720,8 @@ static void dce110_stream_encoder_update_hdmi_info_packets(
|
|||
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);
|
||||
if (REG(AFMT_CNTL))
|
||||
REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
|
||||
|
||||
REG_WRITE(AFMT_AVI_INFO0, content[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue