diff options
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
| -rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index cbaa00aa5b92..4e3fc95b7b4f 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
| @@ -1859,6 +1859,18 @@ static int patch_stac9205(struct hda_codec *codec) | |||
| 1859 | 1859 | ||
| 1860 | spec->multiout.dac_nids = spec->dac_nids; | 1860 | spec->multiout.dac_nids = spec->dac_nids; |
| 1861 | 1861 | ||
| 1862 | /* Configure GPIO0 as EAPD output */ | ||
| 1863 | snd_hda_codec_write(codec, codec->afg, 0, | ||
| 1864 | AC_VERB_SET_GPIO_DIRECTION, 0x00000001); | ||
| 1865 | /* Configure GPIO0 as CMOS */ | ||
| 1866 | snd_hda_codec_write(codec, codec->afg, 0, 0x7e7, 0x00000000); | ||
| 1867 | /* Assert GPIO0 high */ | ||
| 1868 | snd_hda_codec_write(codec, codec->afg, 0, | ||
| 1869 | AC_VERB_SET_GPIO_DATA, 0x00000001); | ||
| 1870 | /* Enable GPIO0 */ | ||
| 1871 | snd_hda_codec_write(codec, codec->afg, 0, | ||
| 1872 | AC_VERB_SET_GPIO_MASK, 0x00000001); | ||
| 1873 | |||
| 1862 | err = stac92xx_parse_auto_config(codec, 0x1f, 0x20); | 1874 | err = stac92xx_parse_auto_config(codec, 0x1f, 0x20); |
| 1863 | if (err < 0) { | 1875 | if (err < 0) { |
| 1864 | stac92xx_free(codec); | 1876 | stac92xx_free(codec); |
