Commit 1cef66f5 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: qcom: 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/87354q0zwj.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org
parent 87e39e9b
...@@ -140,17 +140,8 @@ int qcom_snd_parse_of(struct snd_soc_card *card) ...@@ -140,17 +140,8 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
} }
} else { } else {
/* DPCM frontend */ /* DPCM frontend */
dlc = devm_kzalloc(dev, sizeof(*dlc), GFP_KERNEL); link->codecs = &asoc_dummy_dlc;
if (!dlc) {
ret = -ENOMEM;
goto err;
}
link->codecs = dlc;
link->num_codecs = 1; link->num_codecs = 1;
link->codecs->dai_name = "snd-soc-dummy-dai";
link->codecs->name = "snd-soc-dummy";
link->dynamic = 1; link->dynamic = 1;
} }
......
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