Commit 183a444a authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda/realtek - Don't change connection at path deactivation

The widget connection selection must be changed only when the path is
enabled.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 829f69ea
...@@ -3969,7 +3969,7 @@ static void activate_path(struct hda_codec *codec, struct nid_path *path, ...@@ -3969,7 +3969,7 @@ static void activate_path(struct hda_codec *codec, struct nid_path *path,
path->active = false; path->active = false;
for (i = path->depth - 1; i >= 0; i--) { for (i = path->depth - 1; i >= 0; i--) {
if (path->multi[i]) if (enable && path->multi[i])
snd_hda_codec_write_cache(codec, path->path[i], 0, snd_hda_codec_write_cache(codec, path->path[i], 0,
AC_VERB_SET_CONNECT_SEL, AC_VERB_SET_CONNECT_SEL,
path->idx[i]); path->idx[i]);
......
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