summaryrefslogtreecommitdiff
path: root/sound/soc/amd/yc
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2023-09-08 11:59:20 +0300
committerMark Brown <broonie@kernel.org>2023-09-11 03:23:56 +0300
commit396b907919e028d89bac912e49de014485deb8dc (patch)
treea57dc5ab228d3cd5a5d968547102aefe1121b790 /sound/soc/amd/yc
parentd7e47e32192bb88f5b2dc8e655fa587ecf9d71e0 (diff)
downloadlinux-396b907919e028d89bac912e49de014485deb8dc.tar.xz
ASoC: soc-pcm: Shrink stack frame for __soc_pcm_hw_params
Commit ac950278b087 ("ASoC: add N cpus to M codecs dai link support") added an additional local params in __soc_pcm_hw_params, for the CPU side of the DAI. The snd_pcm_hw_params struct is pretty large (604 bytes) and keeping two local copies of it can make the stack frame really large. It is worth noting the variables are in separate code blocks so for some optimisation levels in the compiler these will get automatically combined keeping the stack frame reasonable. But better to manually combine them to cover all cases. Add a single local variable for __soc_pcm_hw_params and use in both loops to shrink the stack frame. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230908085920.2906359-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/yc')
0 files changed, 0 insertions, 0 deletions