diff options
Diffstat (limited to 'sound/pci/cmipci.c')
-rw-r--r-- | sound/pci/cmipci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index af266eb83059..fdc4615ea0e7 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -2798,7 +2798,7 @@ static int __devinit snd_cmipci_create_fm(struct cmipci *cm, long fm_port) | |||
2798 | if (!fm_port) | 2798 | if (!fm_port) |
2799 | goto disable_fm; | 2799 | goto disable_fm; |
2800 | 2800 | ||
2801 | if (cm->chip_version > 33) { | 2801 | if (cm->chip_version >= 39) { |
2802 | /* first try FM regs in PCI port range */ | 2802 | /* first try FM regs in PCI port range */ |
2803 | iosynth = cm->iobase + CM_REG_FM_PCI; | 2803 | iosynth = cm->iobase + CM_REG_FM_PCI; |
2804 | err = snd_opl3_create(cm->card, iosynth, iosynth + 2, | 2804 | err = snd_opl3_create(cm->card, iosynth, iosynth + 2, |
@@ -2990,8 +2990,7 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc | |||
2990 | return err; | 2990 | return err; |
2991 | } | 2991 | } |
2992 | 2992 | ||
2993 | val = 0; | 2993 | if (cm->chip_version >= 39) { |
2994 | if (cm->chip_version > 33 && mpu_port[dev] == 1) { | ||
2995 | val = snd_cmipci_read_b(cm, CM_REG_MPU_PCI + 1); | 2994 | val = snd_cmipci_read_b(cm, CM_REG_MPU_PCI + 1); |
2996 | if (val != 0x00 && val != 0xff) { | 2995 | if (val != 0x00 && val != 0xff) { |
2997 | iomidi = cm->iobase + CM_REG_MPU_PCI; | 2996 | iomidi = cm->iobase + CM_REG_MPU_PCI; |
@@ -2999,6 +2998,7 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc | |||
2999 | } | 2998 | } |
3000 | } | 2999 | } |
3001 | if (!integrated_midi) { | 3000 | if (!integrated_midi) { |
3001 | val = 0; | ||
3002 | iomidi = mpu_port[dev]; | 3002 | iomidi = mpu_port[dev]; |
3003 | switch (iomidi) { | 3003 | switch (iomidi) { |
3004 | case 0x320: val = CM_VMPU_320; break; | 3004 | case 0x320: val = CM_VMPU_320; break; |