aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-01-24 13:58:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-13 11:16:50 -0800
commit02e85499ffcb080ef11c8cc1b092e033f90651f5 (patch)
tree542b4e809e320bdd26f1005b38157343cd968fdd /sound
parent76af79f393ad562077f79627a4c719219ef09ee8 (diff)
ALSA: hda - Fix the logic to detect VIA analog low-current mode
commit 924339239fd5ba3e505f9420d41f0939196f3530 upstream. 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 Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-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 8d69e59f1f9..06845420f16 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -1041,7 +1041,7 @@ static void analog_low_current_mode(struct hda_codec *codec)
bool enable;
unsigned int verb, parm;
- enable = is_aa_path_mute(codec) && (spec->opened_streams != 0);
+ enable = is_aa_path_mute(codec) && !spec->opened_streams;
/* decide low current mode's verb & parameter */
switch (spec->codec_type) {