]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit42bf029a55a9bb8036f1d738a28dba2f7ec1e79d
tree870782068abdaec564f80eb28a9d792057e2dc5e
parentc2c616021d64d952dc9d37793924ce57833d7754
ASoC: simple-card: don't select DPCM via simple-audio-card

commit da215354eb55c ("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: da215354eb55c ("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