diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3087-drm-amd-display-Increase-size-of-audios-array.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3087-drm-amd-display-Increase-size-of-audios-array.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3087-drm-amd-display-Increase-size-of-audios-array.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3087-drm-amd-display-Increase-size-of-audios-array.patch new file mode 100644 index 00000000..2d8cc014 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3087-drm-amd-display-Increase-size-of-audios-array.patch @@ -0,0 +1,49 @@ +From 4cdf3ff09a4c1a622c38205f3fca6192b35907da Mon Sep 17 00:00:00 2001 +From: Tai Man <taiman.wong@amd.com> +Date: Fri, 28 Jun 2019 11:40:38 -0400 +Subject: [PATCH 3087/4256] drm/amd/display: Increase size of audios array + +[Why] +The audios array defined in "struct resource_pool" is only 6 (MAX_PIPES) +but the max number of audio devices (num_audio) is 7. In some projects, +it will run out of audios array. + +[How] +Incraese the audios array size to 7. + +Signed-off-by: Tai Man <taiman.wong@amd.com> +Reviewed-by: Joshua Aberback <Joshua.Aberback@amd.com> +Acked-by: Leo Li <sunpeng.li@amd.com> +--- + drivers/gpu/drm/amd/display/dc/inc/core_types.h | 2 +- + drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h +index c89393c19232..a148ffde8b12 100644 +--- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h ++++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h +@@ -212,7 +212,7 @@ struct resource_pool { + struct clock_source *clock_sources[MAX_CLOCK_SOURCES]; + unsigned int clk_src_count; + +- struct audio *audios[MAX_PIPES]; ++ struct audio *audios[MAX_AUDIOS]; + unsigned int audio_count; + struct audio_support audio_support; + +diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h b/drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h +index 8759ec03aede..f82365e2d03c 100644 +--- a/drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h ++++ b/drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h +@@ -34,6 +34,7 @@ + * Data types shared between different Virtual HW blocks + ******************************************************************************/ + ++#define MAX_AUDIOS 7 + #define MAX_PIPES 6 + #if defined(CONFIG_DRM_AMD_DC_DCN2_0) + #define MAX_DWB_PIPES 1 +-- +2.17.1 + |