ASoC: meson: cards: select SND_DYNAMIC_MINORS
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 26 Apr 2024 13:41:47 +0000 (15:41 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 14:48:55 +0000 (23:48 +0900)
commit6db26f9ea4edd8a17d39ab3c20111e3ccd704aef
tree79ce602675947a3309ae4781a082ec727311b349
parentbda16500dd0b05e2e047093b36cbe0873c95aeae
ASoC: meson: cards: select SND_DYNAMIC_MINORS

Amlogic sound cards do create a lot of pcm interfaces, possibly more than
8. Some pcm interfaces are internal (like DPCM backends and c2c) and not
exposed to userspace.

Those interfaces still increase the number passed to snd_find_free_minor(),
which eventually exceeds 8 causing -EBUSY error on card registration if
CONFIG_SND_DYNAMIC_MINORS=n and the interface is exposed to userspace.

select CONFIG_SND_DYNAMIC_MINORS for Amlogic cards to avoid the problem.

Fixes: 7864a79f37b5 ("ASoC: meson: add axg sound card support")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20240426134150.3053741-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/Kconfig