ASoC: ti: Migrate to new style legacy DAI naming flag
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Jun 2022 12:51:45 +0000 (13:51 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:16:42 +0000 (13:16 +0100)
Change the legacy DAI naming flag from opting in to the new scheme
(non_legacy_dai_naming), to opting out of it (legacy_dai_naming).
These drivers appear to be on the CPU side of the DAI link and
currently uses the legacy naming, so add the new flag.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220623125250.2355471-32-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-i2s.c
sound/soc/ti/davinci-mcasp.c
sound/soc/ti/davinci-vcif.c
sound/soc/ti/omap-dmic.c
sound/soc/ti/omap-hdmi.c
sound/soc/ti/omap-mcbsp.c
sound/soc/ti/omap-mcpdm.c

index fe572b720b0944c8f4a2590917d7001cd7a3ee3f..e6e77a5f3c1e7d3177cd4bd0a6375d0f2d84ca9c 100644 (file)
@@ -640,7 +640,8 @@ static struct snd_soc_dai_driver davinci_i2s_dai = {
 };
 
 static const struct snd_soc_component_driver davinci_i2s_component = {
-       .name           = DRV_NAME,
+       .name                   = DRV_NAME,
+       .legacy_dai_naming      = 1,
 };
 
 static int davinci_i2s_probe(struct platform_device *pdev)
index e2aab4729f3ab06026f6099af88bcb76eb491e25..45ffcc7aadc93c1206d574dfa0607d49895badb0 100644 (file)
@@ -1765,7 +1765,8 @@ static struct snd_soc_dai_driver davinci_mcasp_dai[] = {
 };
 
 static const struct snd_soc_component_driver davinci_mcasp_component = {
-       .name           = "davinci-mcasp",
+       .name                   = "davinci-mcasp",
+       .legacy_dai_naming      = 1,
 };
 
 /* Some HW specific values and defaults. The rest is filled in from DT. */
index f810123cc40703d09afa439911976ff32727f30d..36fa97e2b9e225d2b3b0dcf9016f4872f96dc46c 100644 (file)
@@ -185,7 +185,8 @@ static struct snd_soc_dai_driver davinci_vcif_dai = {
 };
 
 static const struct snd_soc_component_driver davinci_vcif_component = {
-       .name           = "davinci-vcif",
+       .name                   = "davinci-vcif",
+       .legacy_dai_naming      = 1,
 };
 
 static int davinci_vcif_probe(struct platform_device *pdev)
index f3eed20611a3fa558f90220db089295d9782762b..825c70a443dad1c2b4ff9ff2e76282bfb68c38e8 100644 (file)
@@ -453,7 +453,8 @@ static struct snd_soc_dai_driver omap_dmic_dai = {
 };
 
 static const struct snd_soc_component_driver omap_dmic_component = {
-       .name           = "omap-dmic",
+       .name                   = "omap-dmic",
+       .legacy_dai_naming      = 1,
 };
 
 static int asoc_dmic_probe(struct platform_device *pdev)
index 3328c02f93c7443094baabd97e156b2dbdf00f04..0dc0475670ffecc9b22be3996f0dfefb2ef59792 100644 (file)
@@ -275,6 +275,7 @@ static const struct snd_soc_dai_ops hdmi_dai_ops = {
 
 static const struct snd_soc_component_driver omap_hdmi_component = {
        .name = "omapdss_hdmi",
+       .legacy_dai_naming = 1,
 };
 
 static struct snd_soc_dai_driver omap5_hdmi_dai = {
index 58d8e200a7b97408e509b779eec98191989bdee1..76df0e7844f8f4112a95c702a437ffc87eac6ab2 100644 (file)
@@ -1317,7 +1317,8 @@ static struct snd_soc_dai_driver omap_mcbsp_dai = {
 };
 
 static const struct snd_soc_component_driver omap_mcbsp_component = {
-       .name           = "omap-mcbsp",
+       .name                   = "omap-mcbsp",
+       .legacy_dai_naming      = 1,
 };
 
 static struct omap_mcbsp_platform_data omap2420_pdata = {
index fafb2998ad0df27f00d5fc4ac9d1ec07107e3a40..0b18a7bfd3fd73f5cd9179d7b35fc658dd76f8c1 100644 (file)
@@ -524,9 +524,10 @@ static struct snd_soc_dai_driver omap_mcpdm_dai = {
 };
 
 static const struct snd_soc_component_driver omap_mcpdm_component = {
-       .name           = "omap-mcpdm",
-       .suspend        = omap_mcpdm_suspend,
-       .resume         = omap_mcpdm_resume,
+       .name                   = "omap-mcpdm",
+       .suspend                = omap_mcpdm_suspend,
+       .resume                 = omap_mcpdm_resume,
+       .legacy_dai_naming      = 1,
 };
 
 void omap_mcpdm_configure_dn_offsets(struct snd_soc_pcm_runtime *rtd,