ASoC: fsl: imx-audmix: remove dummy dai_link->platform
Dummy dai_link->platform is not needed. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com> Tested-by: Shengjiu Wang <shengjiu.wang@gmail.com> Link: https://lore.kernel.org/r/877cu6f619.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3ce08f8513
commit
dc801ea8ae
@ -207,8 +207,8 @@ static int imx_audmix_probe(struct platform_device *pdev)
|
||||
for (i = 0; i < num_dai; i++) {
|
||||
struct snd_soc_dai_link_component *dlc;
|
||||
|
||||
/* for CPU/Codec x 2 + Platform */
|
||||
dlc = devm_kcalloc(&pdev->dev, 5, sizeof(*dlc), GFP_KERNEL);
|
||||
/* for CPU/Codec x 2 */
|
||||
dlc = devm_kcalloc(&pdev->dev, 4, sizeof(*dlc), GFP_KERNEL);
|
||||
if (!dlc)
|
||||
return -ENOMEM;
|
||||
|
||||
@ -272,18 +272,15 @@ static int imx_audmix_probe(struct platform_device *pdev)
|
||||
|
||||
priv->dai[num_dai + i].cpus = &dlc[2];
|
||||
priv->dai[num_dai + i].codecs = &dlc[3];
|
||||
priv->dai[num_dai + i].platforms = &dlc[4];
|
||||
|
||||
priv->dai[num_dai + i].num_cpus = 1;
|
||||
priv->dai[num_dai + i].num_codecs = 1;
|
||||
priv->dai[num_dai + i].num_platforms = 1;
|
||||
|
||||
priv->dai[num_dai + i].name = be_name;
|
||||
priv->dai[num_dai + i].codecs->dai_name = "snd-soc-dummy-dai";
|
||||
priv->dai[num_dai + i].codecs->name = "snd-soc-dummy";
|
||||
priv->dai[num_dai + i].cpus->of_node = audmix_np;
|
||||
priv->dai[num_dai + i].cpus->dai_name = be_name;
|
||||
priv->dai[num_dai + i].platforms->name = "snd-soc-dummy";
|
||||
priv->dai[num_dai + i].no_pcm = 1;
|
||||
priv->dai[num_dai + i].dpcm_playback = 1;
|
||||
priv->dai[num_dai + i].dpcm_capture = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user