Skip to content

Commit a1dca87

Browse files
jmontleonbroonie
authored andcommitted
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: fc34ece ("ASoC: Refactor non_legacy_dai_naming flag") Signed-off-by: Jason Montleon <[email protected]> Acked-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 392cc13 commit a1dca87

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

sound/soc/codecs/rt5677-spi.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -396,15 +396,16 @@ static int rt5677_spi_pcm_probe(struct snd_soc_component *component)
396396
}
397397

398398
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,
408409
};
409410

410411
/* Select a suitable transfer command for the next transfer to ensure

0 commit comments

Comments
 (0)