ASoC: intel: kbl_da7219_max98927: use snd_soc_dai_link_component for codec_conf
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 13 Dec 2019 00:54:53 +0000 (09:54 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 16 Dec 2019 12:02:07 +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/87imml59k2.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/intel/boards/kbl_da7219_max98927.c

index 829f95f..34e734a 100644 (file)
@@ -571,12 +571,12 @@ static struct snd_soc_ops skylake_refcap_ops = {
 static struct snd_soc_codec_conf max98927_codec_conf[] = {
 
        {
-               .dev_name = MAX98927_DEV0_NAME,
+               .dlc = COMP_CODEC_CONF(MAX98927_DEV0_NAME),
                .name_prefix = "Right",
        },
 
        {
-               .dev_name = MAX98927_DEV1_NAME,
+               .dlc = COMP_CODEC_CONF(MAX98927_DEV1_NAME),
                .name_prefix = "Left",
        },
 };
@@ -584,12 +584,12 @@ static struct snd_soc_codec_conf max98927_codec_conf[] = {
 static struct snd_soc_codec_conf max98373_codec_conf[] = {
 
        {
-               .dev_name = MAX98373_DEV0_NAME,
+               .dlc = COMP_CODEC_CONF(MAX98373_DEV0_NAME),
                .name_prefix = "Right",
        },
 
        {
-               .dev_name = MAX98373_DEV1_NAME,
+               .dlc = COMP_CODEC_CONF(MAX98373_DEV1_NAME),
                .name_prefix = "Left",
        },
 };