aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-10-20 05:26:57 -0400
committerTakashi Iwai <tiwai@suse.de>2014-10-20 05:31:40 -0400
commitb1974f965a506c131b60cd3e483340884e831920 (patch)
tree05b2204b38f342a38c4263685b5e4b8e4bd907ef /sound/pci/hda
parent6acce400d9daf1353fbf497302670c90a3205e1d (diff)
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>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/patch_realtek.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 4c35490cf119..34b7bdb510c7 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5613,9 +5613,9 @@ static void alc662_led_gpio1_mute_hook(void *private_data, int enabled)
5613 unsigned int oldval = spec->gpio_led; 5613 unsigned int oldval = spec->gpio_led;
5614 5614
5615 if (enabled) 5615 if (enabled)
5616 spec->gpio_led &= ~0x01;
5617 else
5618 spec->gpio_led |= 0x01; 5616 spec->gpio_led |= 0x01;
5617 else
5618 spec->gpio_led &= ~0x01;
5619 if (spec->gpio_led != oldval) 5619 if (spec->gpio_led != oldval)
5620 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA, 5620 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA,
5621 spec->gpio_led); 5621 spec->gpio_led);