Skip to contentSkip to conversation

CS5530 Alsa driver fails

DISCUSSION Rafał Bilski 3 participants 4 messages Jul 31, 2007 – Aug 1, 2007 Sound

lore
Share & tools
lore
#0 lore raw

Hello,

Linux: 2.6.23-rc1-git3
Hardware: CX5530

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

Thank You
Rafał

~ $ cat /proc/interrupts
CPU0

 0:      26624    XT-PIC-XT        timer
 2:          0    XT-PIC-XT        cascade
 4:        428    XT-PIC-XT        serial
 8:          0    XT-PIC-XT        rtc
 9:      10793    XT-PIC-XT        ohci_hcd:usb1
10:       1326    XT-PIC-XT        eth0
NMI:          0
ERR:          0

~ $ lspci -v
00:00.0 Host bridge: Cyrix Corporation PCI Master
Flags: bus master, medium devsel, latency 0

00:0f.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
Subsystem: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at f800 [size=256]
Memory at 10010000 (32-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 10000000 [disabled] [size=64K]
Capabilities: [40] Power Management version 2

00:12.0 ISA bridge: Cyrix Corporation 5530 Legacy [Kahlua]
Flags: bus master, medium devsel, latency 0

00:12.1 Bridge: Cyrix Corporation 5530 SMI [Kahlua]
Flags: medium devsel
Memory at 40012000 (32-bit, non-prefetchable) [size=256]

00:12.2 IDE interface: Cyrix Corporation 5530 IDE [Kahlua] (prog-if 80 [Master])

       Flags: medium devsel
       [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
       [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
       [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
       [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
       I/O ports at 1000 [disabled] [size=128]

00:12.3 Multimedia audio controller: Cyrix Corporation 5530 Audio [Kahlua]
Flags: medium devsel
Memory at 40011000 (32-bit, non-prefetchable) [size=128]

00:12.4 VGA compatible controller: Cyrix Corporation 5530 Video [Kahlua] (prog-if 00 [VGA])
Flags: medium devsel
Memory at 40010000 (32-bit, non-prefetchable) [size=4K]

00:13.0 USB Controller: Compaq Computer Corporation ZFMicro Chipset USB (rev 06) (prog-if 10 [OHCI])
Subsystem: Compaq Computer Corporation ZFMicro Chipset USB
Flags: bus master, medium devsel, latency 64, IRQ 9
Memory at 000cc000 (32-bit, non-prefetchable) [size=4K]

----------------------------------------------------------------------
Kobiety klamia o wiele skuteczniej niz mezczyzni.
Sprawdz, jak sie na nich poznac

Quoted 1 line
Quoted 1 line
Quoted 1 line

http://link.interia.pl/f1b16

#1 lore raw
Quoted 7 lines

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

#2 lore raw

At Wed, 1 Aug 2007 00:53:10 +0100,

Quoted 9 lines · Alan Cox
Quoted 8 lines

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

Quoted 3 lines

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

sound/isa/sb/sb_common.c +3 -1
diff -r e173dbb87aa6 sound/isa/sb/sb_common.c
@@ -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);
#3 lore raw

sound/isa/sb/sb_common.c int snd_sbdsp_create(struct snd_card *ca · line 239

Quoted 13 lines
Quoted 3 lines

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

sound/isa/sb/sb_common.c +3 -1
-	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

Quoted 1 line
Quoted 1 line
Quoted 1 line

http://link.interia.pl/f1b17