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

index d10881f..b489336 100644 (file)
@@ -388,15 +388,17 @@ static snd_pcm_uframes_t kmb_pcm_pointer(struct snd_soc_component *component,
 }
 
 static const struct snd_soc_component_driver kmb_component = {
-       .name           = "kmb",
-       .pcm_construct  = kmb_platform_pcm_new,
-       .open           = kmb_pcm_open,
-       .trigger        = kmb_pcm_trigger,
-       .pointer        = kmb_pcm_pointer,
+       .name                   = "kmb",
+       .pcm_construct          = kmb_platform_pcm_new,
+       .open                   = kmb_pcm_open,
+       .trigger                = kmb_pcm_trigger,
+       .pointer                = kmb_pcm_pointer,
+       .legacy_dai_naming      = 1,
 };
 
 static const struct snd_soc_component_driver kmb_component_dma = {
-       .name           = "kmb",
+       .name                   = "kmb",
+       .legacy_dai_naming      = 1,
 };
 
 static int kmb_probe(struct snd_soc_dai *cpu_dai)