ASoC: amd: acp-da7219-max98357: replace codec to component
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 19 Feb 2018 04:16:06 +0000 (04:16 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 19 Feb 2018 11:33:12 +0000 (11:33 +0000)
Now we can replace Codec to Component. Let's do it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-da7219-max98357a.c

index e51a878890ceb3efd0f0328e42d6eb2a9a9c76f6..bbe0f103e6a81060a9c666826ae19b075f053799 100644 (file)
@@ -47,8 +47,8 @@ static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd)
 {
        int ret;
        struct snd_soc_card *card = rtd->card;
-       struct snd_soc_codec *codec = rtd->codec;
        struct snd_soc_dai *codec_dai = rtd->codec_dai;
+       struct snd_soc_component *component = codec_dai->component;
 
        dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name);
 
@@ -76,7 +76,7 @@ static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd)
                return ret;
        }
 
-       da7219_aad_jack_det(codec, &cz_jack);
+       da7219_aad_jack_det(component, &cz_jack);
 
        return 0;
 }