Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda - Fix inverted LED gpio setup for Lenovo Ideapad

We implemented in a wrong way for mute LED on Lenovo Ideapad; the bit
must be flipped.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16373
Fixes: 3e887f379d8a ('ALSA: hda - Add mute LED support to Lenovo Ideapad')
Cc: <stable@vger.kernel.org> # 3.15+
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2 -2
+2 -2
sound/pci/hda/patch_realtek.c
··· 5613 5613 unsigned int oldval = spec->gpio_led; 5614 5614 5615 5615 if (enabled) 5616 - spec->gpio_led &= ~0x01; 5617 - else 5618 5616 spec->gpio_led |= 0x01; 5617 + else 5618 + spec->gpio_led &= ~0x01; 5619 5619 if (spec->gpio_led != oldval) 5620 5620 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, 5621 5621 spec->gpio_led);