diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2023-04-24 04:36:37 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-08 01:47:09 +0200 |
commit | 87e39e9b004a629f2a27497ce6c172bfcb50ed37 (patch) | |
tree | 5671c44dd6e026ad8c2e2816a91ebd44df094e10 /sound/soc/fsl/imx-card.c | |
parent | ASoC: amd: use asoc_dummy_dlc (diff) | |
download | linux-87e39e9b004a629f2a27497ce6c172bfcb50ed37.tar.xz linux-87e39e9b004a629f2a27497ce6c172bfcb50ed37.zip |
ASoC: fsl: 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/874jp60zwq.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org
Diffstat (limited to 'sound/soc/fsl/imx-card.c')
-rw-r--r-- | sound/soc/fsl/imx-card.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c index 64a4d7e9db60..78e2e3932ba5 100644 --- a/sound/soc/fsl/imx-card.c +++ b/sound/soc/fsl/imx-card.c @@ -615,17 +615,8 @@ static int imx_card_parse_of(struct imx_card_data *data) plat_data->type = CODEC_AK5552; } else { - 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"; } if (!strncmp(link->name, "HiFi-ASRC-FE", 12)) { |