diff options
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/als4000.c | 5 | ||||
-rw-r--r-- | sound/pci/au88x0/au88x0_mpu401.c | 6 | ||||
-rw-r--r-- | sound/pci/azt3328.c | 5 | ||||
-rw-r--r-- | sound/pci/cmipci.c | 5 | ||||
-rw-r--r-- | sound/pci/es1938.c | 5 | ||||
-rw-r--r-- | sound/pci/es1968.c | 5 | ||||
-rw-r--r-- | sound/pci/fm801.c | 5 | ||||
-rw-r--r-- | sound/pci/ice1712/ice1712.c | 10 | ||||
-rw-r--r-- | sound/pci/maestro3.c | 4 | ||||
-rw-r--r-- | sound/pci/oxygen/oxygen_lib.c | 6 | ||||
-rw-r--r-- | sound/pci/riptide/riptide.c | 2 | ||||
-rw-r--r-- | sound/pci/sonicvibes.c | 7 | ||||
-rw-r--r-- | sound/pci/trident/trident.c | 5 | ||||
-rw-r--r-- | sound/pci/via82xx.c | 5 | ||||
-rw-r--r-- | sound/pci/ymfpci/ymfpci.c | 5 |
15 files changed, 46 insertions, 34 deletions
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index a9c1af33f276..04628696eb08 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -931,8 +931,9 @@ static int __devinit snd_card_als4000_probe(struct pci_dev *pci, | |||
931 | 931 | ||
932 | if ((err = snd_mpu401_uart_new( card, 0, MPU401_HW_ALS4000, | 932 | if ((err = snd_mpu401_uart_new( card, 0, MPU401_HW_ALS4000, |
933 | iobase + ALS4K_IOB_30_MIDI_DATA, | 933 | iobase + ALS4K_IOB_30_MIDI_DATA, |
934 | MPU401_INFO_INTEGRATED, | 934 | MPU401_INFO_INTEGRATED | |
935 | pci->irq, 0, &chip->rmidi)) < 0) { | 935 | MPU401_INFO_IRQ_HOOK, |
936 | -1, &chip->rmidi)) < 0) { | ||
936 | printk(KERN_ERR "als4000: no MPU-401 device at 0x%lx?\n", | 937 | printk(KERN_ERR "als4000: no MPU-401 device at 0x%lx?\n", |
937 | iobase + ALS4K_IOB_30_MIDI_DATA); | 938 | iobase + ALS4K_IOB_30_MIDI_DATA); |
938 | goto out_err; | 939 | goto out_err; |
diff --git a/sound/pci/au88x0/au88x0_mpu401.c b/sound/pci/au88x0/au88x0_mpu401.c index 0dc8d259d1ed..e6c6a0febb75 100644 --- a/sound/pci/au88x0/au88x0_mpu401.c +++ b/sound/pci/au88x0/au88x0_mpu401.c | |||
@@ -84,7 +84,7 @@ static int __devinit snd_vortex_midi(vortex_t * vortex) | |||
84 | #ifdef VORTEX_MPU401_LEGACY | 84 | #ifdef VORTEX_MPU401_LEGACY |
85 | if ((temp = | 85 | if ((temp = |
86 | snd_mpu401_uart_new(vortex->card, 0, MPU401_HW_MPU401, 0x330, | 86 | snd_mpu401_uart_new(vortex->card, 0, MPU401_HW_MPU401, 0x330, |
87 | 0, 0, 0, &rmidi)) != 0) { | 87 | MPU401_INFO_IRQ_HOOK, -1, &rmidi)) != 0) { |
88 | hwwrite(vortex->mmio, VORTEX_CTRL, | 88 | hwwrite(vortex->mmio, VORTEX_CTRL, |
89 | (hwread(vortex->mmio, VORTEX_CTRL) & | 89 | (hwread(vortex->mmio, VORTEX_CTRL) & |
90 | ~CTRL_MIDI_PORT) & ~CTRL_MIDI_EN); | 90 | ~CTRL_MIDI_PORT) & ~CTRL_MIDI_EN); |
@@ -94,8 +94,8 @@ static int __devinit snd_vortex_midi(vortex_t * vortex) | |||
94 | port = (unsigned long)(vortex->mmio + VORTEX_MIDI_DATA); | 94 | port = (unsigned long)(vortex->mmio + VORTEX_MIDI_DATA); |
95 | if ((temp = | 95 | if ((temp = |
96 | snd_mpu401_uart_new(vortex->card, 0, MPU401_HW_AUREAL, port, | 96 | snd_mpu401_uart_new(vortex->card, 0, MPU401_HW_AUREAL, port, |
97 | MPU401_INFO_INTEGRATED | MPU401_INFO_MMIO, | 97 | MPU401_INFO_INTEGRATED | MPU401_INFO_MMIO | |
98 | 0, 0, &rmidi)) != 0) { | 98 | MPU401_INFO_IRQ_HOOK, -1, &rmidi)) != 0) { |
99 | hwwrite(vortex->mmio, VORTEX_CTRL, | 99 | hwwrite(vortex->mmio, VORTEX_CTRL, |
100 | (hwread(vortex->mmio, VORTEX_CTRL) & | 100 | (hwread(vortex->mmio, VORTEX_CTRL) & |
101 | ~CTRL_MIDI_PORT) & ~CTRL_MIDI_EN); | 101 | ~CTRL_MIDI_PORT) & ~CTRL_MIDI_EN); |
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index 579fc0dce128..d24fe425e87f 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -2652,8 +2652,9 @@ snd_azf3328_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
2652 | since our hardware ought to be similar, thus use same ID. */ | 2652 | since our hardware ought to be similar, thus use same ID. */ |
2653 | err = snd_mpu401_uart_new( | 2653 | err = snd_mpu401_uart_new( |
2654 | card, 0, | 2654 | card, 0, |
2655 | MPU401_HW_AZT2320, chip->mpu_io, MPU401_INFO_INTEGRATED, | 2655 | MPU401_HW_AZT2320, chip->mpu_io, |
2656 | pci->irq, 0, &chip->rmidi | 2656 | MPU401_INFO_INTEGRATED | MPU401_INFO_IRQ_HOOK, |
2657 | -1, &chip->rmidi | ||
2657 | ); | 2658 | ); |
2658 | if (err < 0) { | 2659 | if (err < 0) { |
2659 | snd_printk(KERN_ERR "azf3328: no MPU-401 device at 0x%lx?\n", | 2660 | snd_printk(KERN_ERR "azf3328: no MPU-401 device at 0x%lx?\n", |
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 9cf99fb7eb9c..da9c73211eca 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -3228,8 +3228,9 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc | |||
3228 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI, | 3228 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI, |
3229 | iomidi, | 3229 | iomidi, |
3230 | (integrated_midi ? | 3230 | (integrated_midi ? |
3231 | MPU401_INFO_INTEGRATED : 0), | 3231 | MPU401_INFO_INTEGRATED : 0) | |
3232 | cm->irq, 0, &cm->rmidi)) < 0) { | 3232 | MPU401_INFO_IRQ_HOOK, |
3233 | -1, &cm->rmidi)) < 0) { | ||
3233 | printk(KERN_ERR "cmipci: no UART401 device at 0x%lx\n", iomidi); | 3234 | printk(KERN_ERR "cmipci: no UART401 device at 0x%lx\n", iomidi); |
3234 | } | 3235 | } |
3235 | } | 3236 | } |
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 26a5a2f25d4b..718a2643474e 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -1854,8 +1854,9 @@ static int __devinit snd_es1938_probe(struct pci_dev *pci, | |||
1854 | } | 1854 | } |
1855 | } | 1855 | } |
1856 | if (snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, | 1856 | if (snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, |
1857 | chip->mpu_port, MPU401_INFO_INTEGRATED, | 1857 | chip->mpu_port, |
1858 | chip->irq, 0, &chip->rmidi) < 0) { | 1858 | MPU401_INFO_INTEGRATED | MPU401_INFO_IRQ_HOOK, |
1859 | -1, &chip->rmidi) < 0) { | ||
1859 | printk(KERN_ERR "es1938: unable to initialize MPU-401\n"); | 1860 | printk(KERN_ERR "es1938: unable to initialize MPU-401\n"); |
1860 | } else { | 1861 | } else { |
1861 | // this line is vital for MIDI interrupt handling on ess-solo1 | 1862 | // this line is vital for MIDI interrupt handling on ess-solo1 |
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index 99ea9320c6b5..407e4abc4356 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -2843,8 +2843,9 @@ static int __devinit snd_es1968_probe(struct pci_dev *pci, | |||
2843 | if (enable_mpu[dev]) { | 2843 | if (enable_mpu[dev]) { |
2844 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, | 2844 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, |
2845 | chip->io_port + ESM_MPU401_PORT, | 2845 | chip->io_port + ESM_MPU401_PORT, |
2846 | MPU401_INFO_INTEGRATED, | 2846 | MPU401_INFO_INTEGRATED | |
2847 | chip->irq, 0, &chip->rmidi)) < 0) { | 2847 | MPU401_INFO_IRQ_HOOK, |
2848 | -1, &chip->rmidi)) < 0) { | ||
2848 | printk(KERN_WARNING "es1968: skipping MPU-401 MIDI support..\n"); | 2849 | printk(KERN_WARNING "es1968: skipping MPU-401 MIDI support..\n"); |
2849 | } | 2850 | } |
2850 | } | 2851 | } |
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index f9123f09e83e..c55b1b319b74 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -1306,8 +1306,9 @@ static int __devinit snd_card_fm801_probe(struct pci_dev *pci, | |||
1306 | } | 1306 | } |
1307 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_FM801, | 1307 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_FM801, |
1308 | FM801_REG(chip, MPU401_DATA), | 1308 | FM801_REG(chip, MPU401_DATA), |
1309 | MPU401_INFO_INTEGRATED, | 1309 | MPU401_INFO_INTEGRATED | |
1310 | chip->irq, 0, &chip->rmidi)) < 0) { | 1310 | MPU401_INFO_IRQ_HOOK, |
1311 | -1, &chip->rmidi)) < 0) { | ||
1311 | snd_card_free(card); | 1312 | snd_card_free(card); |
1312 | return err; | 1313 | return err; |
1313 | } | 1314 | } |
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 0ccc0eb75775..8531b983f3af 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
@@ -2748,8 +2748,9 @@ static int __devinit snd_ice1712_probe(struct pci_dev *pci, | |||
2748 | if (!c->no_mpu401) { | 2748 | if (!c->no_mpu401) { |
2749 | err = snd_mpu401_uart_new(card, 0, MPU401_HW_ICE1712, | 2749 | err = snd_mpu401_uart_new(card, 0, MPU401_HW_ICE1712, |
2750 | ICEREG(ice, MPU1_CTRL), | 2750 | ICEREG(ice, MPU1_CTRL), |
2751 | (c->mpu401_1_info_flags | MPU401_INFO_INTEGRATED), | 2751 | c->mpu401_1_info_flags | |
2752 | ice->irq, 0, &ice->rmidi[0]); | 2752 | MPU401_INFO_INTEGRATED | MPU401_INFO_IRQ_HOOK, |
2753 | -1, &ice->rmidi[0]); | ||
2753 | if (err < 0) { | 2754 | if (err < 0) { |
2754 | snd_card_free(card); | 2755 | snd_card_free(card); |
2755 | return err; | 2756 | return err; |
@@ -2764,8 +2765,9 @@ static int __devinit snd_ice1712_probe(struct pci_dev *pci, | |||
2764 | /* 2nd port used */ | 2765 | /* 2nd port used */ |
2765 | err = snd_mpu401_uart_new(card, 1, MPU401_HW_ICE1712, | 2766 | err = snd_mpu401_uart_new(card, 1, MPU401_HW_ICE1712, |
2766 | ICEREG(ice, MPU2_CTRL), | 2767 | ICEREG(ice, MPU2_CTRL), |
2767 | (c->mpu401_2_info_flags | MPU401_INFO_INTEGRATED), | 2768 | c->mpu401_2_info_flags | |
2768 | ice->irq, 0, &ice->rmidi[1]); | 2769 | MPU401_INFO_INTEGRATED | MPU401_INFO_IRQ_HOOK, |
2770 | -1, &ice->rmidi[1]); | ||
2769 | 2771 | ||
2770 | if (err < 0) { | 2772 | if (err < 0) { |
2771 | snd_card_free(card); | 2773 | snd_card_free(card); |
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 0378126e6272..2fd4bf2d6653 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -2820,8 +2820,8 @@ snd_m3_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
2820 | /* TODO enable MIDI IRQ and I/O */ | 2820 | /* TODO enable MIDI IRQ and I/O */ |
2821 | err = snd_mpu401_uart_new(chip->card, 0, MPU401_HW_MPU401, | 2821 | err = snd_mpu401_uart_new(chip->card, 0, MPU401_HW_MPU401, |
2822 | chip->iobase + MPU401_DATA_PORT, | 2822 | chip->iobase + MPU401_DATA_PORT, |
2823 | MPU401_INFO_INTEGRATED, | 2823 | MPU401_INFO_INTEGRATED | MPU401_INFO_IRQ_HOOK, |
2824 | chip->irq, 0, &chip->rmidi); | 2824 | -1, &chip->rmidi); |
2825 | if (err < 0) | 2825 | if (err < 0) |
2826 | printk(KERN_WARNING "maestro3: no MIDI support.\n"); | 2826 | printk(KERN_WARNING "maestro3: no MIDI support.\n"); |
2827 | #endif | 2827 | #endif |
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c index 82311fcb86f6..53e5508abcbf 100644 --- a/sound/pci/oxygen/oxygen_lib.c +++ b/sound/pci/oxygen/oxygen_lib.c | |||
@@ -678,15 +678,15 @@ int oxygen_pci_probe(struct pci_dev *pci, int index, char *id, | |||
678 | goto err_card; | 678 | goto err_card; |
679 | 679 | ||
680 | if (chip->model.device_config & (MIDI_OUTPUT | MIDI_INPUT)) { | 680 | if (chip->model.device_config & (MIDI_OUTPUT | MIDI_INPUT)) { |
681 | unsigned int info_flags = MPU401_INFO_INTEGRATED; | 681 | unsigned int info_flags = |
682 | MPU401_INFO_INTEGRATED | MPU401_INFO_IRQ_HOOK; | ||
682 | if (chip->model.device_config & MIDI_OUTPUT) | 683 | if (chip->model.device_config & MIDI_OUTPUT) |
683 | info_flags |= MPU401_INFO_OUTPUT; | 684 | info_flags |= MPU401_INFO_OUTPUT; |
684 | if (chip->model.device_config & MIDI_INPUT) | 685 | if (chip->model.device_config & MIDI_INPUT) |
685 | info_flags |= MPU401_INFO_INPUT; | 686 | info_flags |= MPU401_INFO_INPUT; |
686 | err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI, | 687 | err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI, |
687 | chip->addr + OXYGEN_MPU401, | 688 | chip->addr + OXYGEN_MPU401, |
688 | info_flags, 0, 0, | 689 | info_flags, -1, &chip->midi); |
689 | &chip->midi); | ||
690 | if (err < 0) | 690 | if (err < 0) |
691 | goto err_card; | 691 | goto err_card; |
692 | } | 692 | } |
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index e34ae14908b3..88cc776aa38b 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c | |||
@@ -2109,7 +2109,7 @@ snd_card_riptide_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) | |||
2109 | val = mpu_port[dev]; | 2109 | val = mpu_port[dev]; |
2110 | pci_write_config_word(chip->pci, PCI_EXT_MPU_Base, val); | 2110 | pci_write_config_word(chip->pci, PCI_EXT_MPU_Base, val); |
2111 | err = snd_mpu401_uart_new(card, 0, MPU401_HW_RIPTIDE, | 2111 | err = snd_mpu401_uart_new(card, 0, MPU401_HW_RIPTIDE, |
2112 | val, 0, chip->irq, 0, | 2112 | val, MPU401_INFO_IRQ_HOOK, -1, |
2113 | &chip->rmidi); | 2113 | &chip->rmidi); |
2114 | if (err < 0) | 2114 | if (err < 0) |
2115 | snd_printk(KERN_WARNING | 2115 | snd_printk(KERN_WARNING |
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index 2571a67b389a..c5008166cf1f 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -1493,9 +1493,10 @@ static int __devinit snd_sonic_probe(struct pci_dev *pci, | |||
1493 | return err; | 1493 | return err; |
1494 | } | 1494 | } |
1495 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_SONICVIBES, | 1495 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_SONICVIBES, |
1496 | sonic->midi_port, MPU401_INFO_INTEGRATED, | 1496 | sonic->midi_port, |
1497 | sonic->irq, 0, | 1497 | MPU401_INFO_INTEGRATED | |
1498 | &midi_uart)) < 0) { | 1498 | MPU401_INFO_IRQ_HOOK, |
1499 | -1, &midi_uart)) < 0) { | ||
1499 | snd_card_free(card); | 1500 | snd_card_free(card); |
1500 | return err; | 1501 | return err; |
1501 | } | 1502 | } |
diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c index d8a128f6fc02..5e707effdc7c 100644 --- a/sound/pci/trident/trident.c +++ b/sound/pci/trident/trident.c | |||
@@ -148,8 +148,9 @@ static int __devinit snd_trident_probe(struct pci_dev *pci, | |||
148 | if (trident->device != TRIDENT_DEVICE_ID_SI7018 && | 148 | if (trident->device != TRIDENT_DEVICE_ID_SI7018 && |
149 | (err = snd_mpu401_uart_new(card, 0, MPU401_HW_TRID4DWAVE, | 149 | (err = snd_mpu401_uart_new(card, 0, MPU401_HW_TRID4DWAVE, |
150 | trident->midi_port, | 150 | trident->midi_port, |
151 | MPU401_INFO_INTEGRATED, | 151 | MPU401_INFO_INTEGRATED | |
152 | trident->irq, 0, &trident->rmidi)) < 0) { | 152 | MPU401_INFO_IRQ_HOOK, |
153 | -1, &trident->rmidi)) < 0) { | ||
153 | snd_card_free(card); | 154 | snd_card_free(card); |
154 | return err; | 155 | return err; |
155 | } | 156 | } |
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index f03fd620a2a0..35d5f4313d99 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -2068,8 +2068,9 @@ static int __devinit snd_via686_init_misc(struct via82xx *chip) | |||
2068 | pci_write_config_byte(chip->pci, VIA_PNP_CONTROL, legacy_cfg); | 2068 | pci_write_config_byte(chip->pci, VIA_PNP_CONTROL, legacy_cfg); |
2069 | if (chip->mpu_res) { | 2069 | if (chip->mpu_res) { |
2070 | if (snd_mpu401_uart_new(chip->card, 0, MPU401_HW_VIA686A, | 2070 | if (snd_mpu401_uart_new(chip->card, 0, MPU401_HW_VIA686A, |
2071 | mpu_port, MPU401_INFO_INTEGRATED, | 2071 | mpu_port, MPU401_INFO_INTEGRATED | |
2072 | chip->irq, 0, &chip->rmidi) < 0) { | 2072 | MPU401_INFO_IRQ_HOOK, -1, |
2073 | &chip->rmidi) < 0) { | ||
2073 | printk(KERN_WARNING "unable to initialize MPU-401" | 2074 | printk(KERN_WARNING "unable to initialize MPU-401" |
2074 | " at 0x%lx, skipping\n", mpu_port); | 2075 | " at 0x%lx, skipping\n", mpu_port); |
2075 | legacy &= ~VIA_FUNC_ENABLE_MIDI; | 2076 | legacy &= ~VIA_FUNC_ENABLE_MIDI; |
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index 511d57653124..3253b04da184 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -305,8 +305,9 @@ static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci, | |||
305 | if (chip->mpu_res) { | 305 | if (chip->mpu_res) { |
306 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_YMFPCI, | 306 | if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_YMFPCI, |
307 | mpu_port[dev], | 307 | mpu_port[dev], |
308 | MPU401_INFO_INTEGRATED, | 308 | MPU401_INFO_INTEGRATED | |
309 | pci->irq, 0, &chip->rawmidi)) < 0) { | 309 | MPU401_INFO_IRQ_HOOK, |
310 | -1, &chip->rawmidi)) < 0) { | ||
310 | printk(KERN_WARNING "ymfpci: cannot initialize MPU401 at 0x%lx, skipping...\n", mpu_port[dev]); | 311 | printk(KERN_WARNING "ymfpci: cannot initialize MPU401 at 0x%lx, skipping...\n", mpu_port[dev]); |
311 | legacy_ctrl &= ~YMFPCI_LEGACY_MIEN; /* disable MPU401 irq */ | 312 | legacy_ctrl &= ~YMFPCI_LEGACY_MIEN; /* disable MPU401 irq */ |
312 | pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl); | 313 | pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl); |