diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-12-02 14:01:35 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-12-02 14:40:14 (GMT) |
commit | ce8e0fd239e411e08a0cd83868898cd3f573d7cf (patch) | |
tree | 8e65a9ccbc71d1740d8fb4fd1135a821a67f0edd | |
parent | e7ca237bfcf6a288702cb95e94ab94f642ccad88 (diff) | |
download | linux-ce8e0fd239e411e08a0cd83868898cd3f573d7cf.tar.xz |
ALSA: hda/analog - Handle inverted EAPD properly in vmaster hook
ad_vmaster_eapd_hook() needs to handle the inverted EAPD case
properly, too. Otherwise the output gets broken on Lenovo N100 with
AD1986A codec.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=64971
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_analog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 34d86ec..f6351b8 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c @@ -147,6 +147,8 @@ static void ad_vmaster_eapd_hook(void *private_data, int enabled) if (!spec->eapd_nid) return; + if (codec->inv_eapd) + enabled = !enabled; snd_hda_codec_update_cache(codec, spec->eapd_nid, 0, AC_VERB_SET_EAPD_BTLENABLE, enabled ? 0x02 : 0x00); |