ASoC: img: Migrate to new style legacy DAI naming flag
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Jun 2022 12:51:18 +0000 (13:51 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:16:17 +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-5-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/img/img-i2s-in.c
sound/soc/img/img-i2s-out.c
sound/soc/img/img-parallel-out.c
sound/soc/img/img-spdif-in.c
sound/soc/img/img-spdif-out.c

index 97cab6d95b169f91d5eec814f215c1f7ca9a0f5c..56bb7bbd3976ce59516e598a80223104c8eb06ab 100644 (file)
@@ -386,7 +386,8 @@ static int img_i2s_in_dai_probe(struct snd_soc_dai *dai)
 }
 
 static const struct snd_soc_component_driver img_i2s_in_component = {
-       .name = "img-i2s-in"
+       .name = "img-i2s-in",
+       .legacy_dai_naming = 1,
 };
 
 static int img_i2s_in_dma_prepare_slave_config(struct snd_pcm_substream *st,
index 9ec6fc528e2b4c5cb96093a886c8a3f98160c5b7..e3c6e662aa86743ba6c71c7d945deab3bd0fc5f8 100644 (file)
@@ -394,7 +394,8 @@ static int img_i2s_out_dai_probe(struct snd_soc_dai *dai)
 }
 
 static const struct snd_soc_component_driver img_i2s_out_component = {
-       .name = "img-i2s-out"
+       .name = "img-i2s-out",
+       .legacy_dai_naming = 1,
 };
 
 static int img_i2s_out_dma_prepare_slave_config(struct snd_pcm_substream *st,
index cd6a6a82574199d230da37e236b6d4a1d42e172b..08506b05e226584bb7c746cf24ebb6d023fbb677 100644 (file)
@@ -201,7 +201,8 @@ static struct snd_soc_dai_driver img_prl_out_dai = {
 };
 
 static const struct snd_soc_component_driver img_prl_out_component = {
-       .name = "img-prl-out"
+       .name = "img-prl-out",
+       .legacy_dai_naming = 1,
 };
 
 static int img_prl_out_probe(struct platform_device *pdev)
index a79d1ccaeec019b3e6fe3cdc764547f3db736cae..3f1d1a7e8735b7b8cf502faf75756d5290be3d9d 100644 (file)
@@ -711,7 +711,8 @@ static struct snd_soc_dai_driver img_spdif_in_dai = {
 };
 
 static const struct snd_soc_component_driver img_spdif_in_component = {
-       .name = "img-spdif-in"
+       .name = "img-spdif-in",
+       .legacy_dai_naming = 1,
 };
 
 static int img_spdif_in_probe(struct platform_device *pdev)
index f7062eba2611a2bbdae9ee075d65e9d9ba286f78..983761d3fa7e6ce8af416df31772091ac39b4f52 100644 (file)
@@ -316,7 +316,8 @@ static struct snd_soc_dai_driver img_spdif_out_dai = {
 };
 
 static const struct snd_soc_component_driver img_spdif_out_component = {
-       .name = "img-spdif-out"
+       .name = "img-spdif-out",
+       .legacy_dai_naming = 1,
 };
 
 static int img_spdif_out_probe(struct platform_device *pdev)