[ALSA] Allow shared IRQ for CS5530 device
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Aug 2007 10:54:25 +0000 (12:54 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 13:59:32 +0000 (15:59 +0200)
CS5530 is a PCI device and often shares the IRQ although the SB common
routine tries to allocate it exclusively.  This patch allows shared IRQ
for CS5530.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/isa/sb/sb_common.c

index efa9d5c2558a7a5b4cfcf75890523fcf6faafb79..37470c3010efcc82c022642e217e92ead9822b50 100644 (file)
@@ -234,7 +234,9 @@ int snd_sbdsp_create(struct snd_card *card,
        chip->dma16 = -1;
        chip->port = port;
        
-       if (request_irq(irq, irq_handler, hardware == SB_HW_ALS4000 ?
+       if (request_irq(irq, irq_handler,
+                       (hardware == SB_HW_ALS4000 ||
+                        hardware == SB_HW_CS5530) ?
                        IRQF_SHARED : IRQF_DISABLED,
                        "SoundBlaster", (void *) chip)) {
                snd_printk(KERN_ERR "sb: can't grab irq %d\n", irq);