ASoC: audio-graph-card2.c: remove pre-alloced Codec2Codec space
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 1 Jul 2022 05:18:27 +0000 (05:18 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 8 Jul 2022 10:51:43 +0000 (11:51 +0100)
commit6976ed0137d98c2ec0f11af8a01716e9f3af873d
tree2ed521d5caeab4f2f7edfd344c4db04648d858e8
parentc2ff7f15a4ef74b8cb6d425dfa8d8b928f193a80
ASoC: audio-graph-card2.c: remove pre-alloced Codec2Codec space

Because Codec2Codec settings becomes optional, we don't need to keep
its parameter space when init time. This patch removes its default
memory allocation from simple-card-utils.c, and allocate it at
audio-graph-card2 ondemand.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87edz5s95o.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
sound/soc/generic/audio-graph-card2.c
sound/soc/generic/simple-card-utils.c