mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-01 05:53:51 +07:00
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>
This commit is contained in:
parent
054d867e03
commit
924339239f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user