All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Ranostay <mranostay@embeddedalley.com>
To: alsa-devel@alsa-project.org
Cc: Takashi Iwai <tiwai@suse.de>,
	"Tellman, Steven" <Steven.Tellman@idt.com>,
	Tim Gardner <tim.gardner@canonical.com>
Subject: [PATCH] hda: STAC9228 DMIC
Date: Thu, 01 Nov 2007 16:51:00 -0400	[thread overview]
Message-ID: <472A3C34.2080503@embeddedalley.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

Added support for the dmics and enabled EAPD for several laptops with 
STAC9228 cards.
---
Signed-off-by:  Matthew Ranostay <mranostay@gmail.com>

[-- Attachment #2: stac9228_eapd_dmic.patch --]
[-- Type: text/plain, Size: 898 bytes --]

diff -r 808153682813 pci/hda/patch_sigmatel.c
--- a/pci/hda/patch_sigmatel.c	Fri Oct 26 15:10:15 2007 +0200
+++ b/pci/hda/patch_sigmatel.c	Thu Nov 01 15:46:17 2007 -0500
@@ -2778,14 +2778,21 @@ static int patch_stac927x(struct hda_cod
 		spec->dmic_nids = stac927x_dmic_nids;
 		spec->num_dmics = STAC927X_NUM_DMICS;
 		spec->dmux_nid = 0x1b;
+		
+		/* Enable DMIC0 */
+		stac92xx_set_config_reg(codec, 0x13, 0x90a60040);
+		
+		/* GPIO2 High = Enable EAPD */
+		spec->gpio_mask = spec->gpio_data = 0x00000004;
 		break;
 	default:
-		spec->num_dmics = 0;	
+		spec->num_dmics = 0;
+		
+		/* GPIO0 High = Enable EAPD */
+		spec->gpio_mask = spec->gpio_data = 0x00000001;
 	}
 
 	spec->multiout.dac_nids = spec->dac_nids;
-	/* GPIO0 High = Enable EAPD */
-	spec->gpio_mask = spec->gpio_data = 0x00000001;
 	stac92xx_enable_gpio_mask(codec); 
 	
 	err = stac92xx_parse_auto_config(codec, 0x1e, 0x20);

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

             reply	other threads:[~2007-11-01 20:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 20:51 Matthew Ranostay [this message]
2007-11-03 13:54 ` [PATCH] hda: STAC9228 DMIC Tim Gardner
2007-11-05 11:41 ` 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=472A3C34.2080503@embeddedalley.com \
    --to=mranostay@embeddedalley.com \
    --cc=Steven.Tellman@idt.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tim.gardner@canonical.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.