From: Matthew Ranostay Date: Thu, 24 Jan 2008 14:32:15 +0000 (+0100) Subject: [ALSA] hda: STAC9205 GPIO line fix X-Git-Tag: v2.6.25-rc1~1127^2~43 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2e7d624ad3519809c5ff5ff53171e07aeeb7f68;p=linux-2.6 [ALSA] hda: STAC9205 GPIO line fix Fixed issue that the incorrect GPIO line was being pulled high for some STAC9205 based laptops. Signed-off-by: Matthew Ranostay Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index b8152efbfc..3b8b860b3d 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -3661,11 +3661,11 @@ static int patch_stac9205(struct hda_codec *codec) stac92xx_set_config_reg(codec, 0x1f, 0x01441030); stac92xx_set_config_reg(codec, 0x20, 0x1c410030); - spec->gpio_mask = 0x00000007; /* GPIO0-2 */ - /* GPIO0 High = EAPD, GPIO1 Low = DRM, - * GPIO2 High = Headphone Mute + spec->gpio_mask = 0x0000000b; + /* GPIO0 High = EAPD, GPIO1 Low = Headphone Mute, + * GPIO3 High = DRM */ - spec->gpio_data = 0x00000005; + spec->gpio_data = 0x00000009; break; default: /* GPIO0 High = EAPD */