Commit 02e85499 authored by Takashi Iwai's avatar Takashi Iwai Committed by Greg Kroah-Hartman

ALSA: hda - Fix the logic to detect VIA analog low-current mode

commit 92433923 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=741128Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 76af79f3
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment