aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4554-drm-amd-display-check-if-audio-clk-enable-is-applica.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4554-drm-amd-display-check-if-audio-clk-enable-is-applica.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4554-drm-amd-display-check-if-audio-clk-enable-is-applica.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4554-drm-amd-display-check-if-audio-clk-enable-is-applica.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4554-drm-amd-display-check-if-audio-clk-enable-is-applica.patch
new file mode 100644
index 00000000..84b76855
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4554-drm-amd-display-check-if-audio-clk-enable-is-applica.patch
@@ -0,0 +1,32 @@
+From 1acfde46d075f5b0b5d00a20bda109338845fc46 Mon Sep 17 00:00:00 2001
+From: Roman Li <Roman.Li@amd.com>
+Date: Thu, 17 May 2018 18:08:54 -0400
+Subject: [PATCH 4554/5725] 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>
+---
+ drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
+index c063175..c0e813c 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
++++ b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
+@@ -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]);
+
+--
+2.7.4
+