ALSA: hda - Fix reverted LED setup for HP

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 12:03 pm

Gitweb:     http://git.kernel.org/linus/ba84bfcd2b6fdc5a9ac53a4ab103088c99f84a12
Commit:     ba84bfcd2b6fdc5a9ac53a4ab103088c99f84a12
Parent:     b4f8b5e2f5c7d71ae0cf18659e361088b812de1b
Author:     Takashi Iwai <tiwai@suse.de>
AuthorDate: Sat May 30 08:59:03 2009 +0200
Committer:  Takashi Iwai <tiwai@suse.de>
CommitDate: Sat May 30 08:59:03 2009 +0200

    ALSA: hda - Fix reverted LED setup for HP
    
    The commit 86d190e77c44cb057742dcc871b12ebd4633c387 reverted the bit
    flip of LED GPIO for HP DX and DV4-1222nr.  Fixed now.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/pci/hda/patch_sigmatel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index a1b4c94..a915f40 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -4666,9 +4666,9 @@ static int stac92xx_hp_check_power_status(struct hda_codec *codec,
 	if (nid == 0x10) {
 		if (snd_hda_codec_amp_read(codec, nid, 0, HDA_OUTPUT, 0) &
 		    HDA_AMP_MUTE)
-			spec->gpio_data |= spec->gpio_led; /* white */
-		else
 			spec->gpio_data &= ~spec->gpio_led; /* orange */
+		else
+			spec->gpio_data |= spec->gpio_led; /* white */
 
 		stac_gpio_set(codec, spec->gpio_mask,
 			      spec->gpio_dir,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ALSA: hda - Fix reverted LED setup for HP, Linux Kernel Mailing ..., (Fri Jun 12, 12:03 pm)