MLK-21450-1: ASoC: imx-cdnhdmi: replace codec with component
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 15 Apr 2019 10:30:20 +0000 (18:30 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 18 Apr 2019 00:00:38 +0000 (03:00 +0300)
Fix the compile issue for snd_pcm_codec is removed

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
sound/soc/fsl/imx-cdnhdmi.c

index 62ec48c..ebe8b14 100644 (file)
@@ -147,7 +147,7 @@ static int get_edid_info(struct snd_soc_card *card)
        struct snd_soc_pcm_runtime *rtd = list_first_entry(
                &card->rtd_list, struct snd_soc_pcm_runtime, list);
        struct snd_soc_dai *codec_dai = rtd->codec_dai;
-       struct snd_soc_codec *codec = codec_dai->codec;
+       struct snd_soc_component *codec = codec_dai->component;
        struct hdmi_codec_pdata *hcd = codec->dev->platform_data;
        struct imx_cdnhdmi_data *data = snd_soc_card_get_drvdata(card);
        int i, j, ret;
@@ -281,7 +281,7 @@ static int get_edid_rx_info(struct snd_soc_card *card)
        struct snd_soc_pcm_runtime *rtd = list_first_entry(
                &card->rtd_list, struct snd_soc_pcm_runtime, list);
        struct snd_soc_dai *codec_dai = rtd->codec_dai;
-       struct snd_soc_codec *codec = codec_dai->codec;
+       struct snd_soc_component *codec = codec_dai->component;
        struct hdmi_codec_pdata *hcd = codec->dev->platform_data;
        struct imx_cdnhdmi_data *data = snd_soc_card_get_drvdata(card);
        int ret;