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

ASoC: rt5514: fix legacy dai naming

Starting with 6.0-rc1 these messages are logged and the sound card
is unavailable. Adding legacy_dai_naming to the rt5514-spi causes
it to function properly again.

[ 16.928454] kbl_r5514_5663_max kbl_r5514_5663_max: ASoC: CPU DAI
spi-PRP0001:00 not registered
[ 16.928561] platform kbl_r5514_5663_max: deferred probe pending

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

authored by

Jason Montleon and committed by
Mark Brown
392cc13c 003b786b

+8 -7
+8 -7
sound/soc/codecs/rt5514-spi.c
··· 298 298 } 299 299 300 300 static const struct snd_soc_component_driver rt5514_spi_component = { 301 - .name = DRV_NAME, 302 - .probe = rt5514_spi_pcm_probe, 303 - .open = rt5514_spi_pcm_open, 304 - .hw_params = rt5514_spi_hw_params, 305 - .hw_free = rt5514_spi_hw_free, 306 - .pointer = rt5514_spi_pcm_pointer, 307 - .pcm_construct = rt5514_spi_pcm_new, 301 + .name = DRV_NAME, 302 + .probe = rt5514_spi_pcm_probe, 303 + .open = rt5514_spi_pcm_open, 304 + .hw_params = rt5514_spi_hw_params, 305 + .hw_free = rt5514_spi_hw_free, 306 + .pointer = rt5514_spi_pcm_pointer, 307 + .pcm_construct = rt5514_spi_pcm_new, 308 + .legacy_dai_naming = 1, 308 309 }; 309 310 310 311 /**