aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2881-drm-amd-display-try-to-find-matching-audio-inst-for-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2881-drm-amd-display-try-to-find-matching-audio-inst-for-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2881-drm-amd-display-try-to-find-matching-audio-inst-for-.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2881-drm-amd-display-try-to-find-matching-audio-inst-for-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2881-drm-amd-display-try-to-find-matching-audio-inst-for-.patch
new file mode 100644
index 00000000..eedc6e9a
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2881-drm-amd-display-try-to-find-matching-audio-inst-for-.patch
@@ -0,0 +1,37 @@
+From ca67ccec1b8d7afd5fb4cfd2c5f00d43c0d1f39c Mon Sep 17 00:00:00 2001
+From: Charlene Liu <charlene.liu@amd.com>
+Date: Wed, 15 Nov 2017 18:55:57 -0500
+Subject: [PATCH 2881/4131] drm/amd/display: try to find matching audio inst
+ for enc inst first
+
+[Description]
+in eDP+ HDMI/DP clone or extended configuration, audio inst changed from inst 1 to inst0.
+No failure related this though, just playback device endpoint inst changed.
+Also remove one addition register read.
+
+Signed-off-by: Charlene Liu <charlene.liu@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+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 327a0a7..83bae20 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
+@@ -87,10 +87,8 @@ static void dce110_update_generic_info_packet(
+ */
+ uint32_t max_retries = 50;
+
+- REG_GET(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, &regval);
+ /*we need turn on clock before programming AFMT block*/
+- if (regval != 1)
+- REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
++ REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
+
+ if (REG(AFMT_VBI_PACKET_CONTROL1)) {
+ if (packet_index >= 8)
+--
+2.7.4
+