]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: don't select DPCM via simple-audio-card
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 4 Apr 2019 00:52:52 +0000 (09:52 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 4 Apr 2019 07:59:09 +0000 (14:59 +0700)
commit31f66af5a8b85a3abb3fec60d73648d45650288a
tree870782068abdaec564f80eb28a9d792057e2dc5e
parent9cda9b993feb5d9478bf0bbea5a6773a7905a191
ASoC: simple-card: don't select DPCM via simple-audio-card

commit f33caa3748601 ("ASoC: simple-card: merge simple-scu-card")
merged simple-scu-audio-card which can handle DPCM into
simple-audio-card.

By this patch, the judgement to select "normal sound card" or
"DPCM sound card" is based on its CPU/Codec DAI count.
But, because of it, existing "simple-audio-card" user who is
assuming "normal sound card" might select DPCM unintentionally.

To solve this issue, this patch allows "simple-audio-card" user
can select "normal sound card", and "simple-scu-audio-card" user
can select both "normal sound card" and "DPCM sound card".
This keeps compatibility collectry.

Fixes: f33caa3748601 ("ASoC: simple-card: merge simple-scu-card")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card.c