diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2019-09-23 15:22:22 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:52:40 +0800 |
commit | 1e852d94e0d80c73905ce5a469fe331a433ab5a7 (patch) | |
tree | 6fa10b26a2970d172294b14689dc0430e5815e6f /sound/soc/fsl/imx-hdmi.c | |
parent | e9623c8a8354d31faebf7c3cae2066d00b6af606 (diff) |
ASoC: imx-hdmi: Fix compile error
API change due to:
adb76b5b9c47 ("ASoC: soc-core: remove legacy style dai_link")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-hdmi.c')
-rw-r--r-- | sound/soc/fsl/imx-hdmi.c | 11 |
1 files changed, 7 insertions, 4 deletions
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); |