aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1/emu10k1_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/emu10k1/emu10k1_main.c')
-rw-r--r--sound/pci/emu10k1/emu10k1_main.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c
index a3a1a10fb0c9..c6d53b459254 100644
--- a/sound/pci/emu10k1/emu10k1_main.c
+++ b/sound/pci/emu10k1/emu10k1_main.c
@@ -679,6 +679,14 @@ static emu_chip_details_t emu_chip_details[] = {
679 .spk71 = 1, 679 .spk71 = 1,
680 .spdif_bug = 1, 680 .spdif_bug = 1,
681 .ac97_chip = 1} , 681 .ac97_chip = 1} ,
682 {.vendor = 0x1102, .device = 0x0004, .revision = 0x04,
683 .driver = "Audigy2", .name = "Audigy 2 [Unknown]",
684 .id = "Audigy2",
685 .emu10k2_chip = 1,
686 .ca0102_chip = 1,
687 .ca0151_chip = 1,
688 .spdif_bug = 1,
689 .ac97_chip = 1} ,
682 {.vendor = 0x1102, .device = 0x0004, .subsystem = 0x10020052, 690 {.vendor = 0x1102, .device = 0x0004, .subsystem = 0x10020052,
683 .driver = "Audigy", .name = "Audigy 1 ES [SB0160]", 691 .driver = "Audigy", .name = "Audigy 1 ES [SB0160]",
684 .id = "Audigy", 692 .id = "Audigy",
@@ -693,11 +701,10 @@ static emu_chip_details_t emu_chip_details[] = {
693 .ca0102_chip = 1, 701 .ca0102_chip = 1,
694 .ac97_chip = 1} , 702 .ac97_chip = 1} ,
695 {.vendor = 0x1102, .device = 0x0004, 703 {.vendor = 0x1102, .device = 0x0004,
696 .driver = "Audigy", .name = "Audigy 1 or 2 [Unknown]", 704 .driver = "Audigy", .name = "Audigy 1 [Unknown]",
697 .id = "Audigy", 705 .id = "Audigy",
698 .emu10k2_chip = 1, 706 .emu10k2_chip = 1,
699 .ca0102_chip = 1, 707 .ca0102_chip = 1,
700 .spdif_bug = 1,
701 .ac97_chip = 1} , 708 .ac97_chip = 1} ,
702 {.vendor = 0x1102, .device = 0x0002, .subsystem = 0x40011102, 709 {.vendor = 0x1102, .device = 0x0002, .subsystem = 0x40011102,
703 .driver = "EMU10K1", .name = "E-mu APS [4001]", 710 .driver = "EMU10K1", .name = "E-mu APS [4001]",
@@ -781,8 +788,11 @@ int __devinit snd_emu10k1_create(snd_card_t * card,
781 788
782 for (c = emu_chip_details; c->vendor; c++) { 789 for (c = emu_chip_details; c->vendor; c++) {
783 if (c->vendor == pci->vendor && c->device == pci->device) { 790 if (c->vendor == pci->vendor && c->device == pci->device) {
784 if (c->subsystem == emu->serial) break; 791 if (c->subsystem && c->subsystem != emu->serial)
785 if (c->subsystem == 0) break; 792 continue;
793 if (c->revision && c->revision != emu->revision)
794 continue;
795 break;
786 } 796 }
787 } 797 }
788 if (c->vendor == 0) { 798 if (c->vendor == 0) {