Commit 087d53ab authored by Rongrong Cao's avatar Rongrong Cao Committed by Mark Brown

ASoC: fix checking for external widgets bug

In SOC DAPM layer of SOUND subsystem, when add signal route (in the
function snd_soc_dapm_add_route() ), the original code has wrong logic
when dapm layer check each widget whether an external one.
Signed-off-by: default avatarRongrong Cao <rrcao@ambarella.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 33e319fb
...@@ -1293,8 +1293,8 @@ static int snd_soc_dapm_add_route(struct snd_soc_codec *codec, ...@@ -1293,8 +1293,8 @@ static int snd_soc_dapm_add_route(struct snd_soc_codec *codec,
if (wsink->id == snd_soc_dapm_input) { if (wsink->id == snd_soc_dapm_input) {
if (wsource->id == snd_soc_dapm_micbias || if (wsource->id == snd_soc_dapm_micbias ||
wsource->id == snd_soc_dapm_mic || wsource->id == snd_soc_dapm_mic ||
wsink->id == snd_soc_dapm_line || wsource->id == snd_soc_dapm_line ||
wsink->id == snd_soc_dapm_output) wsource->id == snd_soc_dapm_output)
wsink->ext = 1; wsink->ext = 1;
} }
if (wsource->id == snd_soc_dapm_output) { if (wsource->id == snd_soc_dapm_output) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment