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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3969,7 +3969,7 @@ static void activate_path(struct hda_codec *codec, struct nid_path *path,
		path->active = false;

	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,
					    AC_VERB_SET_CONNECT_SEL,
					    path->idx[i]);