From b7ae7c80ecad08fd8d3c6b84ae63e89c1f726653 Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Mon, 18 Dec 2006 13:17:28 +0100 Subject: [PATCH] --- yaml --- r: 47151 b: refs/heads/master c: 333824034a19baf71b2bd5fe2153630982f379b0 h: refs/heads/master i: 47149: b5809baedc58070ae75240f927667f544642a2a0 47147: 0c76c429c3103db4e622cd12deda03e3c76ad3b0 47143: e6a608463f05b1831686d93ad9554df311147951 47135: b1213fa5705cf32385e201615d892c5975a511d5 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_sigmatel.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d037c349724d..4775f5dbf050 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cdf88efa03907a884177b226321bb41bc17c407f +refs/heads/master: 333824034a19baf71b2bd5fe2153630982f379b0 diff --git a/trunk/sound/pci/hda/patch_sigmatel.c b/trunk/sound/pci/hda/patch_sigmatel.c index cbaa00aa5b92..4e3fc95b7b4f 100644 --- a/trunk/sound/pci/hda/patch_sigmatel.c +++ b/trunk/sound/pci/hda/patch_sigmatel.c @@ -1859,6 +1859,18 @@ static int patch_stac9205(struct hda_codec *codec) spec->multiout.dac_nids = spec->dac_nids; + /* Configure GPIO0 as EAPD output */ + snd_hda_codec_write(codec, codec->afg, 0, + AC_VERB_SET_GPIO_DIRECTION, 0x00000001); + /* Configure GPIO0 as CMOS */ + snd_hda_codec_write(codec, codec->afg, 0, 0x7e7, 0x00000000); + /* Assert GPIO0 high */ + snd_hda_codec_write(codec, codec->afg, 0, + AC_VERB_SET_GPIO_DATA, 0x00000001); + /* Enable GPIO0 */ + snd_hda_codec_write(codec, codec->afg, 0, + AC_VERB_SET_GPIO_MASK, 0x00000001); + err = stac92xx_parse_auto_config(codec, 0x1f, 0x20); if (err < 0) { stac92xx_free(codec);