alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: tiwai@suse.de, alsa-devel@alsa-project.org
Cc: David Henningsson <david.henningsson@canonical.com>
Subject: [PATCH] hda-emu: Add idt_set_gpio verb for stac92xx
Date: Thu, 16 Aug 2012 14:25:58 +0200	[thread overview]
Message-ID: <1345119958-8259-1-git-send-email-david.henningsson@canonical.com> (raw)

According to Takashi, this verb is valid and given by Sigmatel.

Also merge two identical arrays and sort the table a little.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
 hda-spec.c |   66 ++++++++++++++++++++++++++++--------------------------------
 1 file changed, 31 insertions(+), 35 deletions(-)

diff --git a/hda-spec.c b/hda-spec.c
index dd43ee9..eebaa39 100644
--- a/hda-spec.c
+++ b/hda-spec.c
@@ -155,15 +155,10 @@ static struct xhda_verb_table idt_92hd8xx_verbs[] = {
 /*
  * STAC codecs
  */
-static struct xhda_verb_table stac927x_verbs[] = {
+static struct xhda_verb_table stac92xx_verbs[] = {
 	{ 0xfeb, get_cached_verb, "get_analog_loop" }, /* undocumented */
 	{ 0x7eb, set_cached_verb, "set_analog_loop" },
-	{ } /* terminator */
-};
-
-static struct xhda_verb_table stac9205_verbs[] = {
-	{ 0xfe0, get_cached_verb, "get_analog_loop" }, /* undocumented */
-	{ 0x7e0, set_cached_verb, "set_analog_loop" },
+	{ 0x7e7, set_cached_verb, "idt_set_gpio" },
 	{ } /* terminator */
 };
 
@@ -271,34 +266,35 @@ static struct verb_ext_list extensions[] = {
 	{ .id = 0x111d76e5, .verbs = idt_92hd8xx_verbs },
 	{ .id = 0x111d76e7, .verbs = idt_92hd8xx_verbs },
 
-	{ .id = 0x83847618, .verbs = stac927x_verbs },
-	{ .id = 0x83847619, .verbs = stac927x_verbs },
-	{ .id = 0x83847616, .verbs = stac927x_verbs },
-	{ .id = 0x83847617, .verbs = stac927x_verbs },
-	{ .id = 0x83847614, .verbs = stac927x_verbs },
-	{ .id = 0x83847615, .verbs = stac927x_verbs },
-	{ .id = 0x83847620, .verbs = stac927x_verbs },
-	{ .id = 0x83847621, .verbs = stac927x_verbs },
-	{ .id = 0x83847622, .verbs = stac927x_verbs },
-	{ .id = 0x83847623, .verbs = stac927x_verbs },
-	{ .id = 0x83847624, .verbs = stac927x_verbs },
-	{ .id = 0x83847625, .verbs = stac927x_verbs },
-	{ .id = 0x83847626, .verbs = stac927x_verbs },
-	{ .id = 0x83847627, .verbs = stac927x_verbs },
-	{ .id = 0x83847628, .verbs = stac927x_verbs },
-	{ .id = 0x83847629, .verbs = stac927x_verbs },
-	{ .id = 0x83847645, .verbs = stac927x_verbs },
-	{ .id = 0x83847646, .verbs = stac927x_verbs },
-
-	{ .id = 0x83847698, .verbs = stac9205_verbs },
-	{ .id = 0x838476a0, .verbs = stac9205_verbs },
-	{ .id = 0x838476a1, .verbs = stac9205_verbs },
-	{ .id = 0x838476a2, .verbs = stac9205_verbs },
-	{ .id = 0x838476a3, .verbs = stac9205_verbs },
-	{ .id = 0x838476a4, .verbs = stac9205_verbs },
-	{ .id = 0x838476a5, .verbs = stac9205_verbs },
-	{ .id = 0x838476a6, .verbs = stac9205_verbs },
-	{ .id = 0x838476a7, .verbs = stac9205_verbs },
+	{ .id = 0x83847614, .verbs = stac92xx_verbs },
+	{ .id = 0x83847615, .verbs = stac92xx_verbs },
+	{ .id = 0x83847616, .verbs = stac92xx_verbs },
+	{ .id = 0x83847617, .verbs = stac92xx_verbs },
+	{ .id = 0x83847618, .verbs = stac92xx_verbs },
+	{ .id = 0x83847619, .verbs = stac92xx_verbs },
+	{ .id = 0x83847620, .verbs = stac92xx_verbs },
+	{ .id = 0x83847621, .verbs = stac92xx_verbs },
+	{ .id = 0x83847622, .verbs = stac92xx_verbs },
+	{ .id = 0x83847623, .verbs = stac92xx_verbs },
+	{ .id = 0x83847624, .verbs = stac92xx_verbs },
+	{ .id = 0x83847625, .verbs = stac92xx_verbs },
+	{ .id = 0x83847626, .verbs = stac92xx_verbs },
+	{ .id = 0x83847627, .verbs = stac92xx_verbs },
+	{ .id = 0x83847628, .verbs = stac92xx_verbs },
+	{ .id = 0x83847629, .verbs = stac92xx_verbs },
+	{ .id = 0x83847645, .verbs = stac92xx_verbs },
+	{ .id = 0x83847646, .verbs = stac92xx_verbs },
+
+	{ .id = 0x83847690, .verbs = stac92xx_verbs },
+	{ .id = 0x83847698, .verbs = stac92xx_verbs },
+	{ .id = 0x838476a0, .verbs = stac92xx_verbs },
+	{ .id = 0x838476a1, .verbs = stac92xx_verbs },
+	{ .id = 0x838476a2, .verbs = stac92xx_verbs },
+	{ .id = 0x838476a3, .verbs = stac92xx_verbs },
+	{ .id = 0x838476a4, .verbs = stac92xx_verbs },
+	{ .id = 0x838476a5, .verbs = stac92xx_verbs },
+	{ .id = 0x838476a6, .verbs = stac92xx_verbs },
+	{ .id = 0x838476a7, .verbs = stac92xx_verbs },
 
 	{ .id = 0x11061708, .verbs = vt1708b_verbs },
 	{ .id = 0x11061709, .verbs = vt1708b_verbs },
-- 
1.7.9.5

             reply	other threads:[~2012-08-16 11:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16 12:25 David Henningsson [this message]
2012-08-16 12:29 ` [PATCH] hda-emu: Add idt_set_gpio verb for stac92xx Takashi Iwai
2012-08-16 12:59   ` David Henningsson

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=1345119958-8259-1-git-send-email-david.henningsson@canonical.com \
    --to=david.henningsson@canonical.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;
as well as URLs for NNTP newsgroup(s).