ASoC: tegra: Migrate to new style legacy DAI naming flag
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Jun 2022 12:51:25 +0000 (13:51 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:16:23 +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-12-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra20_ac97.c
sound/soc/tegra/tegra20_i2s.c
sound/soc/tegra/tegra20_spdif.c
sound/soc/tegra/tegra30_i2s.c

index c454a34c15c4c46f3808f423abedf5f9057d655f..e17375c6cddb9ba51b40c9bfe30d5ba1b381735b 100644 (file)
@@ -239,7 +239,8 @@ static struct snd_soc_dai_driver tegra20_ac97_dai = {
 };
 
 static const struct snd_soc_component_driver tegra20_ac97_component = {
-       .name           = DRV_NAME,
+       .name                   = DRV_NAME,
+       .legacy_dai_naming      = 1,
 };
 
 static bool tegra20_ac97_wr_rd_reg(struct device *dev, unsigned int reg)
index 2e1a726602f025a1a2b578ce805c06f5d9b73ccd..fff0cd6588f56722c425b92fe1aeef2d2bc2a50d 100644 (file)
@@ -338,7 +338,8 @@ static const struct snd_soc_dai_driver tegra20_i2s_dai_template = {
 };
 
 static const struct snd_soc_component_driver tegra20_i2s_component = {
-       .name           = DRV_NAME,
+       .name                   = DRV_NAME,
+       .legacy_dai_naming      = 1,
 };
 
 static bool tegra20_i2s_wr_rd_reg(struct device *dev, unsigned int reg)
index 64c2f304f2542986f9536cd24a6a2ffa8370f162..ca7b222e07d05e4d1e459eddd0e01b41818f3731 100644 (file)
@@ -264,6 +264,7 @@ static struct snd_soc_dai_driver tegra20_spdif_dai = {
 
 static const struct snd_soc_component_driver tegra20_spdif_component = {
        .name = "tegra20-spdif",
+       .legacy_dai_naming = 1,
 };
 
 static bool tegra20_spdif_wr_rd_reg(struct device *dev, unsigned int reg)
index 3aa157c82ae2363482f2724e7ae0797f49a08743..10cd37096fb33471d172f59f2246bfb6a3515a9b 100644 (file)
@@ -331,7 +331,8 @@ static const struct snd_soc_dai_driver tegra30_i2s_dai_template = {
 };
 
 static const struct snd_soc_component_driver tegra30_i2s_component = {
-       .name           = DRV_NAME,
+       .name                   = DRV_NAME,
+       .legacy_dai_naming      = 1,
 };
 
 static bool tegra30_i2s_wr_rd_reg(struct device *dev, unsigned int reg)