Commit 1e39221e authored by Seth Forshee's avatar Seth Forshee Committed by Jaroslav Kysela

[ALSA] ASoC DAPM switching for reentrant codec paths

This patch fixes an issue whereby power was applied to any inactive
analog path that would leave and reenter a codec (e.g. ACOP -> ACIN on
WM8753).  This change now checks for such paths and DAPM will power them
down when not in use.
Signed-off-by: default avatarSeth Forshee <seth.forshee@gmail.com>
Signed-off-by: default avatarLiam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 30652c45
...@@ -882,13 +882,15 @@ int snd_soc_dapm_connect_input(struct snd_soc_codec *codec, const char *sink, ...@@ -882,13 +882,15 @@ int snd_soc_dapm_connect_input(struct snd_soc_codec *codec, const char *sink,
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) wsink->id == snd_soc_dapm_line ||
wsink->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) {
if (wsink->id == snd_soc_dapm_spk || if (wsink->id == snd_soc_dapm_spk ||
wsink->id == snd_soc_dapm_hp || wsink->id == snd_soc_dapm_hp ||
wsink->id == snd_soc_dapm_line) wsink->id == snd_soc_dapm_line ||
wsink->id == snd_soc_dapm_input)
wsource->ext = 1; wsource->ext = 1;
} }
......
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