ASoC: intel: avs: 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/87y1miypim.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org
This commit is contained in:
parent
0c16ed1ab7
commit
82528f31e6
@ -28,13 +28,11 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in
|
||||
|
||||
dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port);
|
||||
dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL);
|
||||
dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL);
|
||||
if (!dl->name || !dl->cpus || !dl->codecs)
|
||||
if (!dl->name || !dl->cpus)
|
||||
return -ENOMEM;
|
||||
|
||||
dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port);
|
||||
dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "snd-soc-dummy");
|
||||
dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "snd-soc-dummy-dai");
|
||||
dl->codecs = &asoc_dummy_dlc;
|
||||
if (!dl->cpus->dai_name || !dl->codecs->name || !dl->codecs->dai_name)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user