Skip to content

Commit

Permalink
ALSA: hda/realtek - Don't change connection at path deactivation
Browse files Browse the repository at this point in the history
The widget connection selection must be changed only when the path is
enabled.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 829f69e commit 183a444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 183a444

Please sign in to comment.