Skip to contentSkip to conversation

Audigy4 support

PATCH wwp 3 participants 8 messages Feb 22, 2006 – Feb 27, 2006

lore
Share & tools
lore

wwp

author
#0 lore raw

Hello all,

I've got a brand new Audigy4 PCI sound-card, running on Debian unstable (kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2).

I'm able to get PCM out but can't get line-in to work: the alsa mixer allows un-muting line-in but I can't get the input selector in audacity for instance.

The exact model is a Creative SoundBlaster Audigy 4 retail (purchase date:
20060219, UK) w/ remote controler RM-1500.

0000:00:0a.0 0401: 1102:0008
Here was lspci says:

0000:00:0a.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value
Subsystem: Creative Labs: Unknown device 1021
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (500ns min, 5000ns max)
Interrupt: pin A routed to IRQ 12
Region 0: I/O ports at d400 [size=64]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

I've found that the emu10k1 sources (checked at 1.0.11-rc3) don't include the card IDs, would the attached patch do it? Would that one be enough to get proper line-in support?

BTW, is it normal that the chip_detail table shows .id Audigy2 for Audigy4 cards? Is emu10k1 falling back to Audigy2 Value when it doesn't know the exact card IDs?

Here are some references more:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1868
http://www.creative.com/products/product.asp?category=1&subcategory=434&product=14103

Regards,

Signature · 1 line
wwp
emu10k1_main.c renamed from emu10k1_main.c.orig +10 -0
@@ -824,6 +824,16 @@
 	 .emu10k2_chip = 1,
 	 .ca0102_chip = 1,
 	 .emu1212m = 1} ,
+	/* Tested by claws 22nd February 2006 */
+	{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x20081102,
+	 .driver = "Audigy2", .name = "Audigy 4 [SB0400]", 
+	 .id = "Audigy2",
+	 .emu10k2_chip = 1,
+	 .ca0102_chip = 1,
+	 .ca0151_chip = 1,
+	 .spk71 = 1,
+	 .spdif_bug = 1,
+	 .ac97_chip = 1} ,
 	/* Tested by [email protected] 3rd July 2005 */
 	{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x20071102,
 	 .driver = "Audigy2", .name = "Audigy 4 PRO [SB0380]", 
p16v.c renamed from p16v.c.orig +1 -0
@@ -118,6 +118,7 @@
  * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:1007 -> Audigy2 6.1    Model:SB0240
  * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:1002 -> Audigy2 Platinum  Model:SB msb0240230009266
  * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:2007 -> Audigy4 Pro Model:SB0380 M1SB0380472001901E
+ * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:2008 -> Audigy4 Model:SB0400
  *
  */
 
#1 lore raw
Quoted 3 lines · wwp

I've got a brand new Audigy4 PCI sound-card, running on Debian unstable
(kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2).

                             ^^^^^^^^^^^^^^^^^^^

What is this notation? You have 2 different ALSA versions or a mismatched alsa-lib/alsa-driver?

Lee

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

author
#2 lore raw

Hello Lee,

Quoted 7 lines · On Wed, 22 Feb 2006 14:11:39 -0500 Lee Revell <[email protected]> wrote:
Quoted 3 lines · wwp

I've got a brand new Audigy4 PCI sound-card, running on Debian unstable
(kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2).

                             ^^^^^^^^^^^^^^^^^^^

What is this notation? You have 2 different ALSA versions or a mismatched alsa-lib/alsa-driver?

Well.. the debian unstable package name is '1.0.110+1.0.11rc2-2' :-). Anyway, cat /proc/asound/version shows:
Advanced Linux Sound Architecture Driver Version 1.0.10rc3 (Mon Nov 07 13:30:21 2005 UTC).

Regards,

Signature · 1 line
wwp
#3 lore raw
In reply to wwp

At Wed, 22 Feb 2006 19:40:29 +0100,

Quoted 31 lines · wwp

[1 <multipart/mixed (7bit)>]
[1.1 <text/plain; US-ASCII (quoted-printable)>]
Hello all,

I've got a brand new Audigy4 PCI sound-card, running on Debian unstable (kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2).

I'm able to get PCM out but can't get line-in to work: the alsa mixer allows un-muting line-in but I can't get the input selector in audacity for instance.

The exact model is a Creative SoundBlaster Audigy 4 retail (purchase date:
20060219, UK) w/ remote controler RM-1500.

0000:00:0a.0 0401: 1102:0008
Here was lspci says:

0000:00:0a.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value
Subsystem: Creative Labs: Unknown device 1021
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (500ns min, 5000ns max)
Interrupt: pin A routed to IRQ 12
Region 0: I/O ports at d400 [size=64]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Quoted 3 lines

I've found that the emu10k1 sources (checked at 1.0.11-rc3) don't include the card IDs, would the attached patch do it? Would that one be enough to get proper line-in support?

Are you sue that the patch really works for you? 1102:2008 are _not_ subsystem IDs but the normal PCI IDs.

The subsystem number in the emu10k1's chip table is what you get as the serial number in /proc/asound/cards (perhaps 0x10211102).

Quoted 3 lines

BTW, is it normal that the chip_detail table shows .id Audigy2 for Audigy4 cards? Is emu10k1 falling back to Audigy2 Value when it doesn't know the exact card IDs?

It's correct behavior. "Audigy2" is just the driver model name. As long as Audigy4 uses the same configuration as Audigy2, there is no reason to introduce a new incompatibility.

thanks,

Takashi

Quoted 40 lines

Here are some references more:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1868
http://www.creative.com/products/product.asp?category=1&subcategory=434&product=14103

Regards,

Signature · 2 lines
wwp
[1.2 alsa-driver-1.0.11rc3-audigy4-sb0400.diff <text/x-patch (quoted-printable)>]
emu10k1_main.c renamed from emu10k1_main.c.orig +10 -0
@@ -824,6 +824,16 @@
 	 .emu10k2_chip = 1,
 	 .ca0102_chip = 1,
 	 .emu1212m = 1} ,
+	/* Tested by claws 22nd February 2006 */
+	{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x20081102,
+	 .driver = "Audigy2", .name = "Audigy 4 [SB0400]", 
+	 .id = "Audigy2",
+	 .emu10k2_chip = 1,
+	 .ca0102_chip = 1,
+	 .ca0151_chip = 1,
+	 .spk71 = 1,
+	 .spdif_bug = 1,
+	 .ac97_chip = 1} ,
 	/* Tested by [email protected] 3rd July 2005 */
 	{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x20071102,
 	 .driver = "Audigy2", .name = "Audigy 4 PRO [SB0380]", 
p16v.c renamed from p16v.c.orig +1 -0
@@ -118,6 +118,7 @@
  * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:1007 -> Audigy2 6.1    Model:SB0240
  * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:1002 -> Audigy2 Platinum  Model:SB msb0240230009266
  * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:2007 -> Audigy4 Pro Model:SB0380 M1SB0380472001901E
+ * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:2008 -> Audigy4 Model:SB0400
  *
  */
 
Quoted 2 lines

[2 signature.asc <application/pgp-signature (7bit)>]

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

author
#4 lore raw

Hello Takashi,

Quoted 39 lines · On Fri, 24 Feb 2006 19:25:54 +0100 Takashi Iwai <[email protected]> wrote:

At Wed, 22 Feb 2006 19:40:29 +0100,

Quoted 29 lines · wwp

[1 <multipart/mixed (7bit)>]
[1.1 <text/plain; US-ASCII (quoted-printable)>]
Hello all,

I've got a brand new Audigy4 PCI sound-card, running on Debian unstable (kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2).

I'm able to get PCM out but can't get line-in to work: the alsa mixer allows un-muting line-in but I can't get the input selector in audacity for instance.

The exact model is a Creative SoundBlaster Audigy 4 retail (purchase date:
20060219, UK) w/ remote controler RM-1500.

0000:00:0a.0 0401: 1102:0008
Here was lspci says:

0000:00:0a.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value Subsystem: Creative Labs: Unknown device 1021
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV-
VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (500ns min, 5000ns max) Interrupt: pin A routed to IRQ 12

		 Region 0: I/O ports at d400 [size=64]
		 Capabilities: [dc] Power Management version 2
				 Flags: PMEClk- DSI+ D1+ D2+
Quoted 7 lines

AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME-

I've found that the emu10k1 sources (checked at 1.0.11-rc3) don't include the card IDs, would the attached patch do it? Would that one be enough to get proper line-in support?

Quoted 5 lines

Are you sue that the patch really works for you? 1102:2008 are _not_ subsystem IDs but the normal PCI IDs.

The subsystem number in the emu10k1's chip table is what you get as the serial number in /proc/asound/cards (perhaps 0x10211102).

Well, I never said that the patch worked neither that I've applied it :-). No, I just wrote it as I assumed, wrongly, that it was a possible solution to submit before I set up a customized kernel configuration from the sources. Sorry for this confusion.

Here's what cat /proc/asound/cards shows:

0 [Audigy2 ]: Audigy2 - Audigy 2 Value [Unknown]

                     Audigy 2 Value [Unknown] (rev.0, serial:0x10211102) at 0xd400, irq 12
1 [UART           ]: MPU-401 UART - MPU-401 UART
                     MPU-401 UART at 0x330, irq 5

Now.. what to do? Should I provide more information? What to expect?

Quoted 7 lines
Quoted 3 lines

BTW, is it normal that the chip_detail table shows .id Audigy2 for Audigy4 cards? Is emu10k1 falling back to Audigy2 Value when it doesn't know the exact card IDs?

It's correct behavior. "Audigy2" is just the driver model name. As long as Audigy4 uses the same configuration as Audigy2, there is no reason to introduce a new incompatibility.

Thanks for this clarification!

Regards,

Quoted 45 lines
Quoted 44 lines

Here are some references more:
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1868
http://www.creative.com/products/product.asp?category=1&subcategory=434&product=14103

Regards,

Signature · 5 lines
wwp
[1.2 alsa-driver-1.0.11rc3-audigy4-sb0400.diff <text/x-patch
(quoted-printable)>] --- emu10k1_main.c.orig	2006-02-22
18:24:06.000000000 +0100 +++ emu10k1_main.c	2006-02-22
18:24:12.000000000 +0100 @@ -824,6 +824,16 @@
emu10k1_main.c renamed from emu10k1_main.c.orig +10 -0
 	 .emu10k2_chip = 1,
 	 .ca0102_chip = 1,
 	 .emu1212m = 1} ,
+	/* Tested by claws 22nd February 2006 */
+	{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x20081102,
+	 .driver = "Audigy2", .name = "Audigy 4 [SB0400]", 
+	 .id = "Audigy2",
+	 .emu10k2_chip = 1,
+	 .ca0102_chip = 1,
+	 .ca0151_chip = 1,
+	 .spk71 = 1,
+	 .spdif_bug = 1,
+	 .ac97_chip = 1} ,
 	/* Tested by [email protected] 3rd July 2005 */
 	{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x20071102,
 	 .driver = "Audigy2", .name = "Audigy 4 PRO [SB0380]", 
p16v.c renamed from p16v.c.orig +0 -0
@@ -118,6 +118,7 @@
  * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:1007 -> Audigy2 6.1

Model:SB0240
* Class 0401: 1102:0004 (rev 04) Subsystem: 1102:1002 -> Audigy2
Platinum Model:SB msb0240230009266
* Class 0401: 1102:0004 (rev 04) Subsystem: 1102:2007 -> Audigy4 Pro
Model:SB0380 M1SB0380472001901E
+ * Class 0401: 1102:0004 (rev 04) Subsystem: 1102:2008 -> Audigy4 Model:SB0400 *
*/

[2 signature.asc <application/pgp-signature (7bit)>]

Signature · 1 line
wwp
#5 lore raw

At Fri, 24 Feb 2006 19:58:35 +0100,

Quoted 58 lines · wwp

Hello Takashi,

Quoted 39 lines · On Fri, 24 Feb 2006 19:25:54 +0100 Takashi Iwai <[email protected]> wrote:

At Wed, 22 Feb 2006 19:40:29 +0100,

Quoted 29 lines · wwp

[1 <multipart/mixed (7bit)>]
[1.1 <text/plain; US-ASCII (quoted-printable)>]
Hello all,

I've got a brand new Audigy4 PCI sound-card, running on Debian unstable (kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2).

I'm able to get PCM out but can't get line-in to work: the alsa mixer allows un-muting line-in but I can't get the input selector in audacity for instance.

The exact model is a Creative SoundBlaster Audigy 4 retail (purchase date:
20060219, UK) w/ remote controler RM-1500.

0000:00:0a.0 0401: 1102:0008
Here was lspci says:

0000:00:0a.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value Subsystem: Creative Labs: Unknown device 1021
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV-
VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (500ns min, 5000ns max) Interrupt: pin A routed to IRQ 12

		 Region 0: I/O ports at d400 [size=64]
		 Capabilities: [dc] Power Management version 2
				 Flags: PMEClk- DSI+ D1+ D2+
Quoted 7 lines

AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME-

I've found that the emu10k1 sources (checked at 1.0.11-rc3) don't include the card IDs, would the attached patch do it? Would that one be enough to get proper line-in support?

Quoted 5 lines

Are you sue that the patch really works for you? 1102:2008 are _not_ subsystem IDs but the normal PCI IDs.

The subsystem number in the emu10k1's chip table is what you get as the serial number in /proc/asound/cards (perhaps 0x10211102).

Well, I never said that the patch worked neither that I've applied it :-). No, I just wrote it as I assumed, wrongly, that it was a possible solution to submit before I set up a customized kernel configuration from the sources. Sorry for this confusion.

Here's what cat /proc/asound/cards shows:

Quoted 7 lines

0 [Audigy2 ]: Audigy2 - Audigy 2 Value [Unknown]

                     Audigy 2 Value [Unknown] (rev.0, serial:0x10211102) at 0xd400, irq 12
1 [UART           ]: MPU-401 UART - MPU-401 UART
                     MPU-401 UART at 0x330, irq 5

Now.. what to do? Should I provide more information? What to expect?

Try subsystem=0x10211102 module option with snd-emu10k1. It assumes that the subsystem is the given model.

If that works, please create a write patch with correct parameters :)
.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20121102
...
and check whether the driver works without extra module option.

thanks,

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

author
#6 lore raw

Hello Takashi,

Quoted 68 lines · On Fri, 24 Feb 2006 20:02:22 +0100 Takashi Iwai <[email protected]> wrote:

At Fri, 24 Feb 2006 19:58:35 +0100,

Quoted 58 lines · wwp

Hello Takashi,

Quoted 39 lines · On Fri, 24 Feb 2006 19:25:54 +0100 Takashi Iwai <[email protected]> wrote:

At Wed, 22 Feb 2006 19:40:29 +0100,

Quoted 29 lines · wwp

[1 <multipart/mixed (7bit)>]
[1.1 <text/plain; US-ASCII (quoted-printable)>]
Hello all,

I've got a brand new Audigy4 PCI sound-card, running on Debian unstable (kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2).

I'm able to get PCM out but can't get line-in to work: the alsa mixer allows un-muting line-in but I can't get the input selector in audacity for instance.

The exact model is a Creative SoundBlaster Audigy 4 retail (purchase
date: 20060219, UK) w/ remote controler RM-1500.

0000:00:0a.0 0401: 1102:0008
Here was lspci says:

0000:00:0a.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value Subsystem: Creative Labs: Unknown device 1021
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV-
VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 32 (500ns min, 5000ns max) Interrupt: pin A routed to IRQ 12 Region 0: I/O ports at d400 [size=64]

		 Capabilities: [dc] Power Management version 2
				 Flags: PMEClk- DSI+ D1+ D2+
Quoted 7 lines

AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME-

I've found that the emu10k1 sources (checked at 1.0.11-rc3) don't include the card IDs, would the attached patch do it? Would that one be enough to get proper line-in support?

Quoted 5 lines

Are you sue that the patch really works for you? 1102:2008 are _not_ subsystem IDs but the normal PCI IDs.

The subsystem number in the emu10k1's chip table is what you get as the serial number in /proc/asound/cards (perhaps 0x10211102).

Well, I never said that the patch worked neither that I've applied it :-). No, I just wrote it as I assumed, wrongly, that it was a possible solution to submit before I set up a customized kernel configuration from the sources. Sorry for this confusion.

Here's what cat /proc/asound/cards shows:

Quoted 7 lines

0 [Audigy2 ]: Audigy2 - Audigy 2 Value [Unknown]

                     Audigy 2 Value [Unknown] (rev.0, serial:0x10211102)
at 0xd400, irq 12 1 [UART           ]: MPU-401 UART - MPU-401 UART
                     MPU-401 UART at 0x330, irq 5

Now.. what to do? Should I provide more information? What to expect?

Quoted 7 lines

Try subsystem=0x10211102 module option with snd-emu10k1. It assumes that the subsystem is the given model.

If that works, please create a write patch with correct parameters :)
.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20121102
...
and check whether the driver works without extra module option.

Ouch! Seems that my cable was the culprit, line-in works now w/ a new cable (wtf??). I'm really sorry for the noise. Anyway I'm still interested in making Alsa recognizing this card.. what's next step, do you have all the necessary information now?

Regards,

Signature · 1 line
wwp
#7 lore raw

At Sat, 25 Feb 2006 12:01:57 +0100,

Quoted 82 lines · wwp

Hello Takashi,

Quoted 68 lines · On Fri, 24 Feb 2006 20:02:22 +0100 Takashi Iwai <[email protected]> wrote:

At Fri, 24 Feb 2006 19:58:35 +0100,

Quoted 58 lines · wwp

Hello Takashi,

Quoted 39 lines · On Fri, 24 Feb 2006 19:25:54 +0100 Takashi Iwai <[email protected]> wrote:

At Wed, 22 Feb 2006 19:40:29 +0100,

Quoted 29 lines · wwp

[1 <multipart/mixed (7bit)>]
[1.1 <text/plain; US-ASCII (quoted-printable)>]
Hello all,

I've got a brand new Audigy4 PCI sound-card, running on Debian unstable (kernel 2.6.15, feat. Alsa 1.0.10+1.0.11-rc2-2).

I'm able to get PCM out but can't get line-in to work: the alsa mixer allows un-muting line-in but I can't get the input selector in audacity for instance.

The exact model is a Creative SoundBlaster Audigy 4 retail (purchase
date: 20060219, UK) w/ remote controler RM-1500.

0000:00:0a.0 0401: 1102:0008
Here was lspci says:

0000:00:0a.0 Multimedia audio controller: Creative Labs SB0400 Audigy2 Value Subsystem: Creative Labs: Unknown device 1021
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV-
VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 32 (500ns min, 5000ns max) Interrupt: pin A routed to IRQ 12 Region 0: I/O ports at d400 [size=64]

		 Capabilities: [dc] Power Management version 2
				 Flags: PMEClk- DSI+ D1+ D2+
Quoted 7 lines

AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME-

I've found that the emu10k1 sources (checked at 1.0.11-rc3) don't include the card IDs, would the attached patch do it? Would that one be enough to get proper line-in support?

Quoted 5 lines

Are you sue that the patch really works for you? 1102:2008 are _not_ subsystem IDs but the normal PCI IDs.

The subsystem number in the emu10k1's chip table is what you get as the serial number in /proc/asound/cards (perhaps 0x10211102).

Well, I never said that the patch worked neither that I've applied it :-). No, I just wrote it as I assumed, wrongly, that it was a possible solution to submit before I set up a customized kernel configuration from the sources. Sorry for this confusion.

Here's what cat /proc/asound/cards shows:

Quoted 7 lines

0 [Audigy2 ]: Audigy2 - Audigy 2 Value [Unknown]

                     Audigy 2 Value [Unknown] (rev.0, serial:0x10211102)
at 0xd400, irq 12 1 [UART           ]: MPU-401 UART - MPU-401 UART
                     MPU-401 UART at 0x330, irq 5

Now.. what to do? Should I provide more information? What to expect?

Quoted 7 lines

Try subsystem=0x10211102 module option with snd-emu10k1. It assumes that the subsystem is the given model.

If that works, please create a write patch with correct parameters :)
.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20121102
...
and check whether the driver works without extra module option.

Quoted 4 lines

Ouch! Seems that my cable was the culprit, line-in works now w/ a new cable (wtf??). I'm really sorry for the noise. Anyway I'm still interested in making Alsa recognizing this card.. what's next step, do you have all the necessary information now?

OK, that's good to hear the driver works :)

To get rid of 'unknown' state, try the patch below.
It also adds 7.1-output capability. Try speaker-test for testing 7.1 output.

Takashi

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.79

pci/emu10k1/emu10k1_main.c +7 -0
diff -u -r1.79 emu10k1_main.c
@@ -777,6 +777,13 @@
 
 static struct snd_emu_chip_details emu_chip_details[] = {
 	/* Audigy 2 Value AC3 out does not work yet. Need to find out how to turn off interpolators.*/
+	{.vendor = 0x1102, .device = 0x0008, .subsystem = 0x20121102,
+	 .driver = "Audigy2", .name = "Audigy 4 [SB0400]", 
+	 .id = "Audigy2",
+	 .emu10k2_chip = 1,
+	 .ca0108_chip = 1,
+	 .spk71 = 1,
+	 .ac97_chip = 1} ,
 	/* Tested by [email protected] 3rd July 2005 */
 	/* DSP: CA0108-IAT
 	 * DAC: CS4382-KQ