From: Takashi Iwai Date: Mon, 17 Dec 2012 17:00:02 +0000 (+0100) Subject: ALSA: hda/realtek - Don't change connection at path deactivation X-Git-Tag: v3.9-rc1~52^2~77^2~166 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=183a444a6d7e601ddfaba4a40304e020ba1f565c;p=platform%2Fkernel%2Flinux-exynos.git 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 --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index d5181b0..1ec14ac 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/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]);