Commit 91cd742b authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: sof: use asoc_dummy_dlc

Now we can share asoc_dummy_dlc. This patch use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com
Link: https://lore.kernel.org/r/877cu20zx8.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org
parent 5a6ca949
...@@ -32,7 +32,7 @@ static int sof_nocodec_bes_setup(struct device *dev, ...@@ -32,7 +32,7 @@ static int sof_nocodec_bes_setup(struct device *dev,
/* set up BE dai_links */ /* set up BE dai_links */
for (i = 0; i < link_num; i++) { for (i = 0; i < link_num; i++) {
dlc = devm_kcalloc(dev, 3, sizeof(*dlc), GFP_KERNEL); dlc = devm_kcalloc(dev, 2, sizeof(*dlc), GFP_KERNEL);
if (!dlc) if (!dlc)
return -ENOMEM; return -ENOMEM;
...@@ -44,8 +44,8 @@ static int sof_nocodec_bes_setup(struct device *dev, ...@@ -44,8 +44,8 @@ static int sof_nocodec_bes_setup(struct device *dev,
links[i].stream_name = links[i].name; links[i].stream_name = links[i].name;
links[i].cpus = &dlc[0]; links[i].cpus = &dlc[0];
links[i].codecs = &dlc[1]; links[i].codecs = &asoc_dummy_dlc;
links[i].platforms = &dlc[2]; links[i].platforms = &dlc[1];
links[i].num_cpus = 1; links[i].num_cpus = 1;
links[i].num_codecs = 1; links[i].num_codecs = 1;
...@@ -55,8 +55,6 @@ static int sof_nocodec_bes_setup(struct device *dev, ...@@ -55,8 +55,6 @@ static int sof_nocodec_bes_setup(struct device *dev,
links[i].no_pcm = 1; links[i].no_pcm = 1;
links[i].cpus->dai_name = drv[i].name; links[i].cpus->dai_name = drv[i].name;
links[i].platforms->name = dev_name(dev->parent); links[i].platforms->name = dev_name(dev->parent);
links[i].codecs->dai_name = "snd-soc-dummy-dai";
links[i].codecs->name = "snd-soc-dummy";
if (drv[i].playback.channels_min) if (drv[i].playback.channels_min)
links[i].dpcm_playback = 1; links[i].dpcm_playback = 1;
if (drv[i].capture.channels_min) if (drv[i].capture.channels_min)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment