From: Matt Porter <mporter@embeddedalley.com>
To: alsa-devel@alsa-project.org, tiwai@suse.de
Subject: [PATCH] hda: add sigmatel 9205 eapd support
Date: Fri, 15 Dec 2006 16:08:59 -0600 [thread overview]
Message-ID: <20061215220859.GA31145@gate.crashing.org> (raw)
Adds support for handling EAPD on 9205 codecs
Signed-off-by: Matt Porter <mporter@embeddedalley.com>
diff -r cdbbd773cd9e pci/hda/patch_sigmatel.c
--- a/pci/hda/patch_sigmatel.c Wed Dec 13 11:21:55 2006 +0000
+++ b/pci/hda/patch_sigmatel.c Wed Dec 13 15:19:46 2006 -0500
@@ -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
next reply other threads:[~2006-12-15 22:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-15 22:08 Matt Porter [this message]
2006-12-19 10:32 ` [PATCH] hda: add sigmatel 9205 eapd support Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061215220859.GA31145@gate.crashing.org \
--to=mporter@embeddedalley.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox