mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
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
This commit is contained in:
parent
5a6ca94935
commit
91cd742b22
@ -32,7 +32,7 @@ static int sof_nocodec_bes_setup(struct device *dev,
|
||||
|
||||
/* set up BE dai_links */
|
||||
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)
|
||||
return -ENOMEM;
|
||||
|
||||
@ -44,8 +44,8 @@ static int sof_nocodec_bes_setup(struct device *dev,
|
||||
links[i].stream_name = links[i].name;
|
||||
|
||||
links[i].cpus = &dlc[0];
|
||||
links[i].codecs = &dlc[1];
|
||||
links[i].platforms = &dlc[2];
|
||||
links[i].codecs = &asoc_dummy_dlc;
|
||||
links[i].platforms = &dlc[1];
|
||||
|
||||
links[i].num_cpus = 1;
|
||||
links[i].num_codecs = 1;
|
||||
@ -55,8 +55,6 @@ static int sof_nocodec_bes_setup(struct device *dev,
|
||||
links[i].no_pcm = 1;
|
||||
links[i].cpus->dai_name = drv[i].name;
|
||||
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)
|
||||
links[i].dpcm_playback = 1;
|
||||
if (drv[i].capture.channels_min)
|
||||
|
Loading…
Reference in New Issue
Block a user