diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4733-drm-amd-display-Stream-encoder-update.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4733-drm-amd-display-Stream-encoder-update.patch | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4733-drm-amd-display-Stream-encoder-update.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4733-drm-amd-display-Stream-encoder-update.patch new file mode 100644 index 00000000..2f7f8ec0 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4733-drm-amd-display-Stream-encoder-update.patch @@ -0,0 +1,68 @@ +From 4021feb98c47aad8f783b687793078679fe7895e Mon Sep 17 00:00:00 2001 +From: Eric Bernstein <eric.bernstein@amd.com> +Date: Tue, 22 May 2018 15:16:33 -0400 +Subject: [PATCH 4733/5725] drm/amd/display: Stream encoder update + +Update stream encoder based on feedback from HW team. + +Signed-off-by: Eric Bernstein <eric.bernstein@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <harry.wentland@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + .../amd/display/dc/dcn10/dcn10_stream_encoder.c | 30 +--------------------- + 1 file changed, 1 insertion(+), 29 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c +index 147f614..32a4997 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c +@@ -1097,27 +1097,6 @@ static union audio_cea_channels speakers_to_channels( + return cea_channels; + } + +-static uint32_t calc_max_audio_packets_per_line( +- const struct audio_crtc_info *crtc_info) +-{ +- uint32_t max_packets_per_line; +- +- max_packets_per_line = +- crtc_info->h_total - crtc_info->h_active; +- +- if (crtc_info->pixel_repetition) +- max_packets_per_line *= crtc_info->pixel_repetition; +- +- /* for other hdmi features */ +- max_packets_per_line -= 58; +- /* for Control Period */ +- max_packets_per_line -= 16; +- /* Number of Audio Packets per Line */ +- max_packets_per_line /= 32; +- +- return max_packets_per_line; +-} +- + static void get_audio_clock_info( + enum dc_color_depth color_depth, + uint32_t crtc_pixel_clock_in_khz, +@@ -1211,16 +1190,9 @@ static void enc1_se_setup_hdmi_audio( + struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); + + struct audio_clock_info audio_clock_info = {0}; +- uint32_t max_packets_per_line; +- +- /* For now still do calculation, although this field is ignored when +- * above HDMI_PACKET_GEN_VERSION set to 1 +- */ +- max_packets_per_line = calc_max_audio_packets_per_line(crtc_info); + + /* HDMI_AUDIO_PACKET_CONTROL */ +- REG_UPDATE_2(HDMI_AUDIO_PACKET_CONTROL, +- HDMI_AUDIO_PACKETS_PER_LINE, max_packets_per_line, ++ REG_UPDATE(HDMI_AUDIO_PACKET_CONTROL, + HDMI_AUDIO_DELAY_EN, 1); + + /* AFMT_AUDIO_PACKET_CONTROL */ +-- +2.7.4 + |