drm/amd/display: Increase size of audios array

[ Upstream commit 7352193a33 ]

[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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Tai Man
2019-06-28 11:40:38 -04:00
committed by Greg Kroah-Hartman
parent 456d33270a
commit 72d4d51a2d
2 changed files with 2 additions and 1 deletions

View File

@@ -169,7 +169,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;

View File

@@ -34,6 +34,7 @@
* Data types shared between different Virtual HW blocks
******************************************************************************/
#define MAX_AUDIOS 7
#define MAX_PIPES 6
struct gamma_curve {