All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Peter Zubaj <pzad@pobox.sk>
Cc: alsa-devel@alsa-project.org
Subject: Re: Re: [PATCH] Audigy SB0090 identification
Date: Fri, 01 Apr 2005 12:27:24 +0200	[thread overview]
Message-ID: <s5hr7hueqr7.wl@alsa2.suse.de> (raw)
In-Reply-To: <424C5C55.8000506@pobox.sk>

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

At Thu, 31 Mar 2005 22:23:49 +0200,
Peter Zubaj wrote:
> 
> [1  <text/plain; ISO-8859-1 (7bit)>]
> Please, forget previous patch - it was not good. This one is ok.
> 
> Description : This add identification of Audigy 1 model SB0090 and fixes 
> problems with ac97 codec (mic not working).
> 
> Signed-off: Peter Zubaj <pzad@pobox.sk>

Thanks, applied to CVS.

> ------------------------------------
> 
> I think Audigy 1 doesn't have spdif bug (this si why there is no 
> .spdif_bug initialization). For me looks like this card identification 
> will break AC3 pasthrough for all audigy 1 (I am not sure).  AFAIK all 
> audigy cards have ac97 except Audigy 2 Platinium EX and Audigy 2 
> Notebook (this is not supported).

How about the patch below?  The new field "revision" is added, there.


> One question: All subsystem ids are 0xXXXX1102 except for Audigy 1 ES, 
> is this good ?

I don't know of Audigy 1 ES - it's from Creative?
It's marked also as buggy spdif.  Is it confirmed?


Takashi

[-- Attachment #2: Type: text/plain, Size: 2306 bytes --]

Index: alsa-kernel/include/emu10k1.h
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/include/emu10k1.h,v
retrieving revision 1.62
diff -u -r1.62 emu10k1.h
--- alsa-kernel/include/emu10k1.h	30 Mar 2005 13:19:22 -0000	1.62
+++ alsa-kernel/include/emu10k1.h	1 Apr 2005 10:23:09 -0000
@@ -1040,6 +1040,7 @@
 	u32 vendor;
 	u32 device;
 	u32 subsystem;
+	unsigned char revision;
 	unsigned char emu10k1_chip; /* Original SB Live. Not SB Live 24bit. */
 	unsigned char emu10k2_chip; /* Audigy 1 or Audigy 2. */
 	unsigned char ca0102_chip;  /* Audigy 1 or Audigy 2. Not SB Audigy 2 Value. */
Index: alsa-kernel/pci/emu10k1/emu10k1_main.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/emu10k1/emu10k1_main.c,v
retrieving revision 1.52
diff -u -r1.52 emu10k1_main.c
--- alsa-kernel/pci/emu10k1/emu10k1_main.c	1 Apr 2005 10:13:33 -0000	1.52
+++ alsa-kernel/pci/emu10k1/emu10k1_main.c	1 Apr 2005 10:23:09 -0000
@@ -679,6 +679,14 @@
 	 .spk71 = 1,
 	 .spdif_bug = 1,
 	 .ac97_chip = 1} ,
+	{.vendor = 0x1102, .device = 0x0004, .revision = 0x04,
+	 .driver = "Audigy2", .name = "Audigy 2 [Unknown]",
+	 .id = "Audigy2",
+	 .emu10k2_chip = 1,
+	 .ca0102_chip = 1,
+	 .ca0151_chip = 1,
+	 .spdif_bug = 1,
+	 .ac97_chip = 1} ,
 	{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x10020052,
 	 .driver = "Audigy", .name = "Audigy 1 ES [SB0160]", 
 	 .id = "Audigy",
@@ -693,11 +701,10 @@
 	 .ca0102_chip = 1,
 	 .ac97_chip = 1} ,
 	{.vendor = 0x1102, .device = 0x0004,
-	 .driver = "Audigy", .name = "Audigy 1 or 2 [Unknown]", 
+	 .driver = "Audigy", .name = "Audigy 1 [Unknown]", 
 	 .id = "Audigy",
 	 .emu10k2_chip = 1,
 	 .ca0102_chip = 1,
-	 .spdif_bug = 1,
 	 .ac97_chip = 1} ,
 	{.vendor = 0x1102, .device = 0x0002, .subsystem = 0x40011102,
 	 .driver = "EMU10K1", .name = "E-mu APS [4001]", 
@@ -781,8 +788,11 @@
 
 	for (c = emu_chip_details; c->vendor; c++) {
 		if (c->vendor == pci->vendor && c->device == pci->device) {
-			if (c->subsystem == emu->serial) break;
-			if (c->subsystem == 0) break;
+			if (c->subsystem && c->subsystem != emu->serial)
+				continue;
+			if (c->revision && c->revision != emu->revision)
+				continue;
+			break;
 		}
 	}
 	if (c->vendor == 0) {

      reply	other threads:[~2005-04-01 10:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-31 20:23 [PATCH] Audigy SB0090 identification Peter Zubaj
2005-04-01 10:27 ` Takashi Iwai [this message]

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=s5hr7hueqr7.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=pzad@pobox.sk \
    /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.