Browse Source

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>
Takashi Iwai 12 years ago
parent
commit
183a444a6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sound/pci/hda/patch_realtek.c

+ 1 - 1
sound/pci/hda/patch_realtek.c

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