Skip to content

Commit

Permalink
ALSA: hda - Fix the logic to detect VIA analog low-current mode
Browse files Browse the repository at this point in the history
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: <[email protected]> [v3.1+]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Feb 2, 2012
1 parent 054d867 commit 9243392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,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) {
Expand Down

0 comments on commit 9243392

Please sign in to comment.