diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2023-04-24 02:36:44 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-08 08:47:10 +0900 |
commit | 1cef66f571a1791e2e29cc962e2c929f7f01cff1 (patch) | |
tree | ffbadbd4ef1f26acf940f257ab1238c11403ab94 /sound/soc/qcom | |
parent | 87e39e9b004a629f2a27497ce6c172bfcb50ed37 (diff) | |
download | linux-stable-1cef66f571a1791e2e29cc962e2c929f7f01cff1.tar.gz linux-stable-1cef66f571a1791e2e29cc962e2c929f7f01cff1.tar.bz2 linux-stable-1cef66f571a1791e2e29cc962e2c929f7f01cff1.zip |
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
Diffstat (limited to 'sound/soc/qcom')
-rw-r--r-- | sound/soc/qcom/common.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c index c1f24af17506..cab5a7937a57 100644 --- a/sound/soc/qcom/common.c +++ b/sound/soc/qcom/common.c @@ -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; } |