From 1e852d94e0d80c73905ce5a469fe331a433ab5a7 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Mon, 23 Sep 2019 15:22:22 +0800 Subject: ASoC: imx-hdmi: Fix compile error API change due to: adb76b5b9c47 ("ASoC: soc-core: remove legacy style dai_link") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/imx-hdmi.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sound/soc/fsl/imx-hdmi.c') diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c index ab37faddcb1f..f7435831949c 100644 --- a/sound/soc/fsl/imx-hdmi.c +++ b/sound/soc/fsl/imx-hdmi.c @@ -22,13 +22,16 @@ #include "imx-hdmi.h" +SND_SOC_DAILINK_DEFS(hifi, + DAILINK_COMP_ARRAY(COMP_EMPTY()), + DAILINK_COMP_ARRAY(COMP_CODEC("hdmi-audio-codec", "i2s-hifi")), + DAILINK_COMP_ARRAY(COMP_PLATFORM("imx-hdmi-audio"))); + /* imx digital audio interface glue - connects codec <--> CPU */ static struct snd_soc_dai_link imx_hdmi_dai_link = { .name = "i.MX HDMI Audio Tx", .stream_name = "i.MX HDMI Audio Tx", - .codec_dai_name = "i2s-hifi", - .codec_name = "hdmi-audio-codec", - .platform_name = "imx-hdmi-audio", + SND_SOC_DAILINK_REG(hifi), }; static struct snd_soc_card snd_soc_card_imx_hdmi = { @@ -65,7 +68,7 @@ static int imx_hdmi_audio_probe(struct platform_device *pdev) } card->dev = &pdev->dev; - card->dai_link->cpu_dai_name = dev_name(&hdmi_pdev->dev); + card->dai_link->cpus->dai_name = dev_name(&hdmi_pdev->dev); platform_set_drvdata(pdev, card); -- cgit v1.2.3