ASoC: Intel: Skylake: skl-topology: fix -frame-larger-than
authorNick Desaulniers <nick.desaulniers@gmail.com>
Mon, 15 Mar 2021 01:39:08 +0000 (18:39 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 18 Mar 2021 13:54:42 +0000 (13:54 +0000)
commitbef2897d31b97852d80b38e9376ed5ef3a90b309
tree184b815a05687baea6f3b7b3fc5b79d2332ab5ab
parentc00f4f2598d334470b49385f811ca8f5c966a63e
ASoC: Intel: Skylake: skl-topology: fix -frame-larger-than

sound/soc/intel/skylake/skl-topology.c:3613:13: warning: stack frame
size of 1304 bytes in function 'skl_tplg_complete'
[-Wframe-larger-than=]

struct snd_ctl_elem_value is 1224 bytes in my configuration.

Heap allocate it, then free it within the current frame.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
Link: https://lore.kernel.org/r/20210315013908.217219-1-nick.desaulniers@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c