ASoC: mediatek: mt8173-rt5650-rt5514: use snd_soc_dai_link_component for codec_conf
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 13 Dec 2019 00:55:15 +0000 (09:55 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 16 Dec 2019 12:02:22 +0000 (12:02 +0000)
We can use snd_soc_dai_link_component to specify codec_conf.
Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87d0ct59jg.wl-kuninori.morimoto.gx@renesas.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c

index 8717e87bfe264bfe69a77dc19aebf7b2f1173b9f..2e1e61d8f12779b06750f017df78dfa616e76ca4 100644 (file)
@@ -209,7 +209,7 @@ static int mt8173_rt5650_rt5514_dev_probe(struct platform_device *pdev)
                        "Property 'audio-codec' missing or invalid\n");
                return -EINVAL;
        }
-       mt8173_rt5650_rt5514_codec_conf[0].of_node =
+       mt8173_rt5650_rt5514_codec_conf[0].dlc.of_node =
                mt8173_rt5650_rt5514_dais[DAI_LINK_CODEC_I2S].codecs[1].of_node;
 
        card->dev = &pdev->dev;