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

ASoC: rt5677: fix legacy dai naming

Starting with 6.0-rc1 the CPU DAI is not registered and the sound
card is unavailable. Adding legacy_dai_naming causes it to function
properly again.

Fixes: fc34ece41f71 ("ASoC: Refactor non_legacy_dai_naming flag")
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221103144612.4431-2-jmontleo@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jason Montleon and committed by
Mark Brown
a1dca877 392cc13c

+10 -9
+10 -9
sound/soc/codecs/rt5677-spi.c
··· 396 396 } 397 397 398 398 static const struct snd_soc_component_driver rt5677_spi_dai_component = { 399 - .name = DRV_NAME, 400 - .probe = rt5677_spi_pcm_probe, 401 - .open = rt5677_spi_pcm_open, 402 - .close = rt5677_spi_pcm_close, 403 - .hw_params = rt5677_spi_hw_params, 404 - .hw_free = rt5677_spi_hw_free, 405 - .prepare = rt5677_spi_prepare, 406 - .pointer = rt5677_spi_pcm_pointer, 407 - .pcm_construct = rt5677_spi_pcm_new, 399 + .name = DRV_NAME, 400 + .probe = rt5677_spi_pcm_probe, 401 + .open = rt5677_spi_pcm_open, 402 + .close = rt5677_spi_pcm_close, 403 + .hw_params = rt5677_spi_hw_params, 404 + .hw_free = rt5677_spi_hw_free, 405 + .prepare = rt5677_spi_prepare, 406 + .pointer = rt5677_spi_pcm_pointer, 407 + .pcm_construct = rt5677_spi_pcm_new, 408 + .legacy_dai_naming = 1, 408 409 }; 409 410 410 411 /* Select a suitable transfer command for the next transfer to ensure