]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9913283824042d6624b6dd006a1e35efb943b9a
tree2ed521d5caeab4f2f7edfd344c4db04648d858e8
parent883e6611bac5a006aa4f6c19b63bce3f0ccbe831
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