Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: img: Migrate to new style legacy DAI naming flag

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>

authored by

Charles Keepax and committed by
Mark Brown
5f9d6998 db827cb3

+10 -5
+2 -1
sound/soc/img/img-i2s-in.c
··· 386 386 } 387 387 388 388 static const struct snd_soc_component_driver img_i2s_in_component = { 389 - .name = "img-i2s-in" 389 + .name = "img-i2s-in", 390 + .legacy_dai_naming = 1, 390 391 }; 391 392 392 393 static int img_i2s_in_dma_prepare_slave_config(struct snd_pcm_substream *st,
+2 -1
sound/soc/img/img-i2s-out.c
··· 394 394 } 395 395 396 396 static const struct snd_soc_component_driver img_i2s_out_component = { 397 - .name = "img-i2s-out" 397 + .name = "img-i2s-out", 398 + .legacy_dai_naming = 1, 398 399 }; 399 400 400 401 static int img_i2s_out_dma_prepare_slave_config(struct snd_pcm_substream *st,
+2 -1
sound/soc/img/img-parallel-out.c
··· 201 201 }; 202 202 203 203 static const struct snd_soc_component_driver img_prl_out_component = { 204 - .name = "img-prl-out" 204 + .name = "img-prl-out", 205 + .legacy_dai_naming = 1, 205 206 }; 206 207 207 208 static int img_prl_out_probe(struct platform_device *pdev)
+2 -1
sound/soc/img/img-spdif-in.c
··· 711 711 }; 712 712 713 713 static const struct snd_soc_component_driver img_spdif_in_component = { 714 - .name = "img-spdif-in" 714 + .name = "img-spdif-in", 715 + .legacy_dai_naming = 1, 715 716 }; 716 717 717 718 static int img_spdif_in_probe(struct platform_device *pdev)
+2 -1
sound/soc/img/img-spdif-out.c
··· 316 316 }; 317 317 318 318 static const struct snd_soc_component_driver img_spdif_out_component = { 319 - .name = "img-spdif-out" 319 + .name = "img-spdif-out", 320 + .legacy_dai_naming = 1, 320 321 }; 321 322 322 323 static int img_spdif_out_probe(struct platform_device *pdev)