mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
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: Rongrong Cao <rrcao@ambarella.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
33e319fba7
commit
087d53ab11
@ -1293,8 +1293,8 @@ static int snd_soc_dapm_add_route(struct snd_soc_codec *codec,
|
||||
if (wsink->id == snd_soc_dapm_input) {
|
||||
if (wsource->id == snd_soc_dapm_micbias ||
|
||||
wsource->id == snd_soc_dapm_mic ||
|
||||
wsink->id == snd_soc_dapm_line ||
|
||||
wsink->id == snd_soc_dapm_output)
|
||||
wsource->id == snd_soc_dapm_line ||
|
||||
wsource->id == snd_soc_dapm_output)
|
||||
wsink->ext = 1;
|
||||
}
|
||||
if (wsource->id == snd_soc_dapm_output) {
|
||||
|
Loading…
Reference in New Issue
Block a user