diff options
Diffstat (limited to 'sound/pci/oxygen/oxygen_lib.c')
-rw-r--r-- | sound/pci/oxygen/oxygen_lib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c index 82311fcb86f6..92e2d67f16a1 100644 --- a/sound/pci/oxygen/oxygen_lib.c +++ b/sound/pci/oxygen/oxygen_lib.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/mutex.h> | 22 | #include <linux/mutex.h> |
23 | #include <linux/pci.h> | 23 | #include <linux/pci.h> |
24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
25 | #include <linux/module.h> | ||
25 | #include <sound/ac97_codec.h> | 26 | #include <sound/ac97_codec.h> |
26 | #include <sound/asoundef.h> | 27 | #include <sound/asoundef.h> |
27 | #include <sound/core.h> | 28 | #include <sound/core.h> |
@@ -678,15 +679,15 @@ int oxygen_pci_probe(struct pci_dev *pci, int index, char *id, | |||
678 | goto err_card; | 679 | goto err_card; |
679 | 680 | ||
680 | if (chip->model.device_config & (MIDI_OUTPUT | MIDI_INPUT)) { | 681 | if (chip->model.device_config & (MIDI_OUTPUT | MIDI_INPUT)) { |
681 | unsigned int info_flags = MPU401_INFO_INTEGRATED; | 682 | unsigned int info_flags = |
683 | MPU401_INFO_INTEGRATED | MPU401_INFO_IRQ_HOOK; | ||
682 | if (chip->model.device_config & MIDI_OUTPUT) | 684 | if (chip->model.device_config & MIDI_OUTPUT) |
683 | info_flags |= MPU401_INFO_OUTPUT; | 685 | info_flags |= MPU401_INFO_OUTPUT; |
684 | if (chip->model.device_config & MIDI_INPUT) | 686 | if (chip->model.device_config & MIDI_INPUT) |
685 | info_flags |= MPU401_INFO_INPUT; | 687 | info_flags |= MPU401_INFO_INPUT; |
686 | err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI, | 688 | err = snd_mpu401_uart_new(card, 0, MPU401_HW_CMIPCI, |
687 | chip->addr + OXYGEN_MPU401, | 689 | chip->addr + OXYGEN_MPU401, |
688 | info_flags, 0, 0, | 690 | info_flags, -1, &chip->midi); |
689 | &chip->midi); | ||
690 | if (err < 0) | 691 | if (err < 0) |
691 | goto err_card; | 692 | goto err_card; |
692 | } | 693 | } |