提交 3e6e0516 编写于 作者: T Tai Man 提交者: Xie XiuQi

drm/amd/display: Increase size of audios array

[ Upstream commit 7352193a33dfc9b69ba3bf6a8caea925b96243b1 ]

[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: NTai Man <taiman.wong@amd.com>
Reviewed-by: NJoshua Aberback <Joshua.Aberback@amd.com>
Acked-by: NLeo Li <sunpeng.li@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 df56d027
...@@ -159,7 +159,7 @@ struct resource_pool { ...@@ -159,7 +159,7 @@ struct resource_pool {
struct clock_source *clock_sources[MAX_CLOCK_SOURCES]; struct clock_source *clock_sources[MAX_CLOCK_SOURCES];
unsigned int clk_src_count; unsigned int clk_src_count;
struct audio *audios[MAX_PIPES]; struct audio *audios[MAX_AUDIOS];
unsigned int audio_count; unsigned int audio_count;
struct audio_support audio_support; struct audio_support audio_support;
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
* Data types shared between different Virtual HW blocks * Data types shared between different Virtual HW blocks
******************************************************************************/ ******************************************************************************/
#define MAX_AUDIOS 7
#define MAX_PIPES 6 #define MAX_PIPES 6
struct gamma_curve { struct gamma_curve {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册