Skip to contentSkip to conversation

emu10k1 patches for 1.0.11

PATCH Lee Revell 3 participants 4 messages Dec 16, 2005 – Dec 22, 2005

lore
Share & tools
lore

Lee Revell

author
#0 lore raw

These were in my CVS tree.

Add some new PCI IDs.

p16v: Change Unknown to Side channels.

Index: alsa-kernel/pci/emu10k1/emu10k1_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emu10k1_main.c,v retrieving revision 1.79

pci/emu10k1/emu10k1_main.c +20 -3
diff -u -r1.79 emu10k1_main.c
@@ -728,7 +728,17 @@
 	return snd_emu10k1_free(emu);
 }
 
-static struct snd_emu_chip_details emu_chip_details[] = {
+static emu_chip_details_t emu_chip_details[] = {
+	/* Tested by Christian Parpart <trapni at gentoo.org> 10th Dec 2005 */
+	{.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10211102,
+	 .driver = "Audigy4", .name = "Audigy 4 64bit [SB0610]", 
+	 .id = "Audigy4",
+	 .emu10k2_chip = 1,
+	 .ca0102_chip = 1,
+	 .ca0151_chip = 1,
+	 .spk71 = 1,
+	 .spdif_bug = 1,
+	 .ac97_chip = 1} ,
 	/* Audigy 2 Value AC3 out does not work yet. Need to find out how to turn off interpolators.*/
 	/* Tested by [email protected] 3rd July 2005 */
 	{.vendor = 0x1102, .device = 0x0008, .subsystem = 0x10011102,
@@ -847,7 +857,7 @@
 	 .spdif_bug = 1,
 	 .ac97_chip = 1} ,
 	{.vendor = 0x1102, .device = 0x0004, .subsystem = 0x00511102,
-	 .driver = "Audigy", .name = "Audigy 1 [SB0090]", 
+	 .driver = "Audigy", .name = "Audigy 1 Player [SB0090]", 
 	 .id = "Audigy",
 	 .emu10k2_chip = 1,
 	 .ca0102_chip = 1,
@@ -876,9 +886,16 @@
 	 .emu10k1_chip = 1,
 	 .ac97_chip = 1,
 	 .sblive51 = 1} ,
+	/* Tested by Alexandr 25th Nov 2005 */
+	{.vendor = 0x1102, .device = 0x0002, .subsystem = 0x80661102,
+	 .driver = "EMU10K1", .name = "SB Live 5.1 [SB0220]", 
+	 .id = "Live",
+	 .emu10k1_chip = 1,
+	 .ac97_chip = 1,
+	 .sblive51 = 1} ,
 	/* Tested by Thomas Zehetbauer 27th Aug 2005 */
 	{.vendor = 0x1102, .device = 0x0002, .subsystem = 0x80651102,
-	 .driver = "EMU10K1", .name = "SB Live 5.1 [SB0220]", 
+	 .driver = "EMU10K1", .name = "SB Live 5.1 [SB0222]", 
 	 .id = "Live",
 	 .emu10k1_chip = 1,
 	 .ac97_chip = 1,

Index: alsa-kernel/pci/emu10k1/p16v.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/p16v.c,v retrieving revision 1.15

pci/emu10k1/p16v.c +23 -23

118 lines not on this page · raw message

Index: alsa-kernel/pci/emu10k1/p16v.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/p16v.h,v retrieving revision 1.1

pci/emu10k1/p16v.h +2 -2
diff -u -r1.1 p16v.h
@@ -260,7 +260,7 @@
 						 * 0xXXXXXXX2 = PCM0 Right.
 						 * 0xXXXXXXX4 = PCM1 Left. (Center/LFE)
 						 * 0xXXXXXXX8 = PCM1 Right.
-						 * 0xXXXXXX1X = PCM2 Left. (Unknown)
+						 * 0xXXXXXX1X = PCM2 Left. (Side)
 						 * 0xXXXXXX2X = PCM2 Right.
 						 * 0xXXXXXX4X = PCM3 Left. (Rear)
 						 * 0xXXXXXX8X = PCM3 Right.
@@ -278,7 +278,7 @@
 						/* 0 -> Not playback sound, irq still running */
 						/* 0xXXXXXX10 = PCM0 Left/Right On. (Front)
 						 * 0xXXXXXX20 = PCM1 Left/Right On. (Center/LFE)
-						 * 0xXXXXXX40 = PCM2 Left/Right On. (Unknown)
+						 * 0xXXXXXX40 = PCM2 Left/Right On. (Side)
 						 * 0xXXXXXX80 = PCM3 Left/Right On. (Rear)
 						 */
 #define PLAYBACK_SPDIF_SELECT     0x70          /* Default: 12030F00 */

-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#1 lore raw
Quoted 10 lines · Lee Revell

These were in my CVS tree.

Add some new PCI IDs.

p16v: Change Unknown to Side channels.

Lee,

Changing Unknown to Side is ok, but the PCI IDs look very wrong at the moment.
I am still waiting for confirmation from the users that the patch fixes the problem.
the entry for the "Audigy 4 64bit [SB0610]" is just plain wrong.

I think it would be better to separate up the patch, one for p16v changes, and then separate ones for each PCI IDs change.

James

#3 lore raw
In reply to Lee Revell
Quoted 18 lines · Lee Revell

These were in my CVS tree.

Add some new PCI IDs.

p16v: Change Unknown to Side channels.

Index: alsa-kernel/pci/emu10k1/emu10k1_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emu10k1_main.c,v retrieving revision 1.79
diff -u -r1.79 emu10k1_main.c
--- alsa-kernel/pci/emu10k1/emu10k1_main.c 6 Dec 2005 14:10:57
-0000 1.79
+++ alsa-kernel/pci/emu10k1/emu10k1_main.c 16 Dec 2005 22:13:47 -0000

pci/emu10k1/emu10k1_main.c line 732

Quoted 6 lines
pci/emu10k1/emu10k1_main.c +1 -1
@@ -728,7 +728,17 @@
        return snd_emu10k1_free(emu);
 }
 
-static struct snd_emu_chip_details emu_chip_details[] = {
+static emu_chip_details_t emu_chip_details[] = {
 

emu_chip_details_t is wrong.

#2 lore raw
In reply to James Courtier-Dutton

At Fri, 16 Dec 2005 22:27:53 +0000,

Quoted 11 lines · James Courtier-Dutton

On 16/12/05, Lee Revell <[email protected]> wrote:

These were in my CVS tree.

Add some new PCI IDs.

p16v: Change Unknown to Side channels.

Quoted 8 lines

Lee,

Changing Unknown to Side is ok, but the PCI IDs look very wrong at the moment. I am still waiting for confirmation from the users that the patch fixes the problem. the entry for the "Audigy 4 64bit [SB0610]" is just plain wrong.

I think it would be better to separate up the patch, one for p16v changes, and then separate ones for each PCI IDs change.

The rename of unknown to side is included in my clean-up patch for p16v.c, which is applied right now.

Takashi

-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click