aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-01-24 07:58:36 -0500
committerTakashi Iwai <tiwai@suse.de>2012-02-02 04:16:32 -0500
commit924339239fd5ba3e505f9420d41f0939196f3530 (patch)
tree416dc6dd37ab0b29ab52ce9246b3cac5c151c5bd /sound/pci/hda
parent054d867e032daf55c3343fc6d36c5c5f1e7954db (diff)
ALSA: hda - Fix the logic to detect VIA analog low-current mode
The analog low-current mode must be enabled when the no stream is running but the current detection checks it in a wrong way. Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=741128 Cc: <stable@kernel.org> [v3.1+] Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/patch_via.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index fb1f0ffc556b..de43cd92b0a5 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -1051,7 +1051,7 @@ static void analog_low_current_mode(struct hda_codec *codec)
1051 bool enable; 1051 bool enable;
1052 unsigned int verb, parm; 1052 unsigned int verb, parm;
1053 1053
1054 enable = is_aa_path_mute(codec) && (spec->opened_streams != 0); 1054 enable = is_aa_path_mute(codec) && !spec->opened_streams;
1055 1055
1056 /* decide low current mode's verb & parameter */ 1056 /* decide low current mode's verb & parameter */
1057 switch (spec->codec_type) { 1057 switch (spec->codec_type) {