aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/cmipci.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2007-09-03 03:55:49 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:59:44 -0400
commitc78c950d28df984e39ad028a90bcdadcd3eda3b6 (patch)
tree3353f01703a224b0c9be3b3d7bbb93cebea7c799 /sound/pci/cmipci.c
parent8992e18db32f5df55fd4b458def7dccd2a5c3266 (diff)
[ALSA] cmipci: do not check for integrated FM/MIDI ports with chip version 37
Integrated MPU-401/OPL3 ports are available with chip version 39 and later, so we do not test for the port with version 37. Now that the test is known to work, we can again enable the MIDI port by default. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/cmipci.c')
-rw-r--r--sound/pci/cmipci.c6
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;