mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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
This commit is contained in:
committed by
Mark Brown
parent
87e39e9b00
commit
1cef66f571
@@ -140,17 +140,8 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
|
||||
}
|
||||
} else {
|
||||
/* DPCM frontend */
|
||||
dlc = devm_kzalloc(dev, sizeof(*dlc), GFP_KERNEL);
|
||||
if (!dlc) {
|
||||
ret = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
|
||||
link->codecs = dlc;
|
||||
link->codecs = &asoc_dummy_dlc;
|
||||
link->num_codecs = 1;
|
||||
|
||||
link->codecs->dai_name = "snd-soc-dummy-dai";
|
||||
link->codecs->name = "snd-soc-dummy";
|
||||
link->dynamic = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user