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: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2012-12-17 18:00:02 +01:00
parent 829f69ea59
commit 183a444a6d

View File

@ -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]);