hda: add sigmatel 9205 eapd support
PATCH 1/1 hda: add sigmatel 9205 eapd support
Adds support for handling EAPD on 9205 codecs
pci/hda/patch_sigmatel.c +12 -0
@@ -1859,6 +1859,18 @@ static int patch_stac9205(struct hda_cod 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);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Takashi Iwai
AppliedAt Fri, 15 Dec 2006 16:08:59 -0600,
Quoted 4 lines · Matt Porter
Adds support for handling EAPD on 9205 codecs
Signed-off-by Matt Porter <[email protected]>
Applied to ALSA HG tree. Thanks.
Takashi
Quoted 25 lines
diff -r
cdbbd773cd9epci/hda/patch_sigmatel.cpci/hda/patch_sigmatel.c +12
-1@@ -1859,6 +1859,18 @@ static int patch_stac9205(struct hda_cod 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); -------------------------------------------------------------------------
Quoted 9 lines
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV