2007-08-01 10:44:27

by Takashi Iwai

[permalink] [raw]
Subject: Re: CS5530 Alsa driver fails

At Wed, 1 Aug 2007 00:53:10 +0100,
Alan Cox wrote:
>
> > After "modprobe snd-cs5530" I have:
> > CS5530: XpressAudio at 0x220
> > CS5530: MPU at 0x330
> > CS5530: IRQ: 9 DMA8: 0 DMA16: 5
> > sb: can't grab irq 9
> > CS5530: Could not create SoundBlaster
> > CS5530_Audio: probe of 0000:00:12.3 failed with error -16
>
> Might be worth setting the IRQ to sharable. I've never seen a 5530 with
> the sound IRQ shared so I don't know if that works and is a valid
> configuration for the VSA firmware

The relevant patch is below. Please give it a try.


Takashi

diff -r e173dbb87aa6 sound/isa/sb/sb_common.c
--- a/sound/isa/sb/sb_common.c Wed Aug 01 12:22:07 2007 +0200
+++ b/sound/isa/sb/sb_common.c Wed Aug 01 12:42:39 2007 +0200
@@ -234,7 +234,9 @@ int snd_sbdsp_create(struct snd_card *ca
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);


2007-08-01 12:11:55

by Rafał Bilski

[permalink] [raw]
Subject: Re: CS5530 Alsa driver fails

>> Might be worth setting the IRQ to sharable. I've never seen a 5530 with
>> the sound IRQ shared so I don't know if that works and is a valid
>> configuration for the VSA firmware
>
> The relevant patch is below. Please give it a try.
>
>
> Takashi

> - if (request_irq(irq, irq_handler, hardware == SB_HW_ALS4000 ?
> + if (request_irq(irq, irq_handler,
> + (hardware == SB_HW_ALS4000 ||
> + hardware == SB_HW_CS5530) ?

CS5530: XpressAudio at 0x220
CS5530: MPU at 0x330
CS5530: IRQ: 9 DMA8: 0 DMA16: 5
ALSA sound/isa/sb/sb_common.c:91: snd_sbdsp_reset [0x220] failed...
CS5530: Could not create SoundBlaster

Does this mean that interrupt cannot be shared? Or is this something
worse?

Thanks
Rafa?


----------------------------------------------------------------------
Dowiedz sie, co naprawde podnieca kobiety. Wiecej wiesz, latwiej je
oczarujesz

>>>http://link.interia.pl/f1b17