]> www.infradead.org Git - nvme.git/commit
ASoC: fsl-asoc-card: Dynamically allocate memory for snd_soc_dai_link_components
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 25 Jul 2024 03:22:53 +0000 (11:22 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 25 Jul 2024 13:20:30 +0000 (14:20 +0100)
commitab53dfdcdd1ec8df8729890aefa5b0e3c900afbb
tree95ca427206d3e477f2ee0b8e19887334450fb0e5
parent1d9ce4440414c92acb17eece3218fe5c92b141e3
ASoC: fsl-asoc-card: Dynamically allocate memory for snd_soc_dai_link_components

The static snd_soc_dai_link_components cause conflict for multiple
instances of this generic driver. For example, when there is
wm8962 and SPDIF case enabled together, the contaminated
snd_soc_dai_link_components will cause another device probe fail.

Fixes: 6d174cc4f224 ("ASoC: fsl-asoc-card: merge spdif support from imx-spdif.c")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/1721877773-5229-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c