ASoC: audio-graph-card: don't select DPCM via audio-graph-card
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 4 Apr 2019 00:52:15 +0000 (09:52 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 4 Apr 2019 07:58:31 +0000 (14:58 +0700)
commitc2c616021d64d952dc9d37793924ce57833d7754
treee406472f2dd6df4f7f0cbb4f162bbf85f27a41e5
parent7297ba6c74c5b9e78d8e936af82eecfcf7d32dfb
ASoC: audio-graph-card: don't select DPCM via audio-graph-card

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

By this patch, the judgement to select "normal sound card" or
"DPCM sound card" is based on its OF-graph endpoint connection.
But, because of it, existing "audio-graph-card" user who is
assuming "normal sound card" might select DPCM unintentionally.

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

Fixes: ae3cb5790906b ("ASoC: audio-graph-card: merge audio-graph-scu-card")
Reported-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c